Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 81d42b5

Browse files
simon-perriardjyn514
authored andcommitted
make it compile with 1.56.0 no warning
1 parent 5c79aa7 commit 81d42b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rustc-dev-guide/examples/rustc-driver-getting-diagnostics.rs

Lines changed: 1 addition & 1 deletion
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)