We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2fc963 commit 6a27fc2Copy full SHA for 6a27fc2
examples/rustc-driver-example.rs
@@ -73,7 +73,7 @@ fn main() {
73
println!("{:#?}", parse);
74
// Analyze the program and inspect the types of definitions.
75
queries.global_ctxt().unwrap().take().enter(|tcx| {
76
- for (_, item) in &tcx.hir().krate().items {
+ for item in tcx.hir().items() {
77
match item.kind {
78
rustc_hir::ItemKind::Static(_, _, _) | rustc_hir::ItemKind::Fn(_, _, _) => {
79
let name = item.ident;
0 commit comments