diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-10-25 20:15:15 +0400 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-11-21 22:40:06 +0300 |
| commit | 7a5376d23cb3324edcfaa278a9387898960d5f7c (patch) | |
| tree | 4bb2b3044fc029c8fb3d1a4cbbf91907c214540e /compiler/rustc_lint/src | |
| parent | 1cbc45942d5c0f6eb5d94e3b10762ba541958035 (diff) | |
| download | rust-7a5376d23cb3324edcfaa278a9387898960d5f7c.tar.gz rust-7a5376d23cb3324edcfaa278a9387898960d5f7c.zip | |
Unreserve braced enum variants in value namespace
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/early.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/early.rs b/compiler/rustc_lint/src/early.rs index fc760ee3b8f..a7a4d0ca527 100644 --- a/compiler/rustc_lint/src/early.rs +++ b/compiler/rustc_lint/src/early.rs @@ -159,8 +159,8 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T> } fn visit_variant_data(&mut self, s: &'a ast::VariantData) { - if let Some(ctor_hir_id) = s.ctor_id() { - self.check_id(ctor_hir_id); + if let Some(ctor_node_id) = s.ctor_node_id() { + self.check_id(ctor_node_id); } ast_visit::walk_struct_def(self, s); } |
