Skip to content

Commit 94e9e67

Browse files
simon-perriardjyn514
authored andcommitted
make it compile with 1.56.0 no warning
1 parent 1f0c4f0 commit 94e9e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rustc-driver-getting-diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn main() {
8181
compiler.enter(|queries| {
8282
queries.global_ctxt().unwrap().take().enter(|tcx| {
8383
// Run the analysis phase on the local crate to trigger the type error.
84-
tcx.analysis(rustc_hir::def_id::LOCAL_CRATE);
84+
let _ = tcx.analysis(());
8585
});
8686
});
8787
});

0 commit comments

Comments
 (0)