make it compile with 1.56.0 no warning
This commit is contained in:
parent
f7192cb802
commit
8240b96f33
|
|
@ -81,7 +81,7 @@ fn main() {
|
||||||
compiler.enter(|queries| {
|
compiler.enter(|queries| {
|
||||||
queries.global_ctxt().unwrap().take().enter(|tcx| {
|
queries.global_ctxt().unwrap().take().enter(|tcx| {
|
||||||
// Run the analysis phase on the local crate to trigger the type error.
|
// Run the analysis phase on the local crate to trigger the type error.
|
||||||
tcx.analysis(rustc_hir::def_id::LOCAL_CRATE);
|
let _ = tcx.analysis(());
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue