diff options
| author | Gary Guo <gary@garyguo.net> | 2022-05-07 02:57:42 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2022-05-07 03:32:27 +0100 |
| commit | b1c6c0648e430ffc8a9acd5e90c7984d76067cd8 (patch) | |
| tree | 44bf422767cbed7c779420c0a42a8471e67df929 /compiler/rustc_ast | |
| parent | d93b03793d4b6bcbc5cd5c0715df31bfcff15845 (diff) | |
| download | rust-b1c6c0648e430ffc8a9acd5e90c7984d76067cd8.tar.gz rust-b1c6c0648e430ffc8a9acd5e90c7984d76067cd8.zip | |
Permit asm_const and asm_sym to reference outer generic params
Diffstat (limited to 'compiler/rustc_ast')
| -rw-r--r-- | compiler/rustc_ast/src/visit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/visit.rs b/compiler/rustc_ast/src/visit.rs index cc772ac74f2..42213cf6966 100644 --- a/compiler/rustc_ast/src/visit.rs +++ b/compiler/rustc_ast/src/visit.rs @@ -326,7 +326,7 @@ pub fn walk_item<'a, V: Visitor<'a>>(visitor: &mut V, item: &'a Item) { ItemKind::ForeignMod(ref foreign_module) => { walk_list!(visitor, visit_foreign_item, &foreign_module.items); } - ItemKind::GlobalAsm(ref asm) => walk_inline_asm(visitor, asm), + ItemKind::GlobalAsm(ref asm) => visitor.visit_inline_asm(asm), ItemKind::TyAlias(box TyAlias { ref generics, ref bounds, ref ty, .. }) => { visitor.visit_generics(generics); walk_list!(visitor, visit_param_bound, bounds, BoundKind::Bound); @@ -897,7 +897,7 @@ pub fn walk_expr<'a, V: Visitor<'a>>(visitor: &mut V, expression: &'a Expr) { } ExprKind::MacCall(ref mac) => visitor.visit_mac_call(mac), ExprKind::Paren(ref subexpression) => visitor.visit_expr(subexpression), - ExprKind::InlineAsm(ref asm) => walk_inline_asm(visitor, asm), + ExprKind::InlineAsm(ref asm) => visitor.visit_inline_asm(asm), ExprKind::Yield(ref optional_expression) => { walk_list!(visitor, visit_expr, optional_expression); } |
