make it compile with 1.56.0 no warning

This commit is contained in:
Simon Perriard 2021-11-24 10:19:29 +01:00 committed by Joshua Nelson
parent f7192cb802
commit 8240b96f33
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ fn main() {
compiler.enter(|queries| {
queries.global_ctxt().unwrap().take().enter(|tcx| {
// Run the analysis phase on the local crate to trigger the type error.
tcx.analysis(rustc_hir::def_id::LOCAL_CRATE);
let _ = tcx.analysis(());
});
});
});