make it compile with 1.56.0
This commit is contained in:
parent
6643adf704
commit
80eae9a303
|
|
@ -73,7 +73,7 @@ fn main() {
|
||||||
println!("{:#?}", parse);
|
println!("{:#?}", parse);
|
||||||
// Analyze the program and inspect the types of definitions.
|
// Analyze the program and inspect the types of definitions.
|
||||||
queries.global_ctxt().unwrap().take().enter(|tcx| {
|
queries.global_ctxt().unwrap().take().enter(|tcx| {
|
||||||
for (_, item) in &tcx.hir().krate().items {
|
for item in tcx.hir().items() {
|
||||||
match item.kind {
|
match item.kind {
|
||||||
rustc_hir::ItemKind::Static(_, _, _) | rustc_hir::ItemKind::Fn(_, _, _) => {
|
rustc_hir::ItemKind::Static(_, _, _) | rustc_hir::ItemKind::Fn(_, _, _) => {
|
||||||
let name = item.ident;
|
let name = item.ident;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue