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

Commit d199d09

Browse files
simon-perriardjyn514
authored andcommitted
make it compile with 1.56.0
1 parent 90c949f commit d199d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rustc-dev-guide/examples/rustc-driver-example.rs

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