We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f0c4f0 commit 94e9e67Copy full SHA for 94e9e67
examples/rustc-driver-getting-diagnostics.rs
@@ -81,7 +81,7 @@ fn main() {
81
compiler.enter(|queries| {
82
queries.global_ctxt().unwrap().take().enter(|tcx| {
83
// Run the analysis phase on the local crate to trigger the type error.
84
- tcx.analysis(rustc_hir::def_id::LOCAL_CRATE);
+ let _ = tcx.analysis(());
85
});
86
87
0 commit comments