Skip to content

Commit 6a27fc2

Browse files
simon-perriardjyn514
authored andcommitted
make it compile with 1.56.0
1 parent a2fc963 commit 6a27fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rustc-driver-example.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn main() {
7373
println!("{:#?}", parse);
7474
// Analyze the program and inspect the types of definitions.
7575
queries.global_ctxt().unwrap().take().enter(|tcx| {
76-
for (_, item) in &tcx.hir().krate().items {
76+
for item in tcx.hir().items() {
7777
match item.kind {
7878
rustc_hir::ItemKind::Static(_, _, _) | rustc_hir::ItemKind::Fn(_, _, _) => {
7979
let name = item.ident;

0 commit comments

Comments
 (0)