diff options
| author | maxcabrajac <max@cabrajac.com> | 2024-10-24 10:41:44 -0300 |
|---|---|---|
| committer | maxcabrajac <max@cabrajac.com> | 2024-10-24 11:10:49 -0300 |
| commit | 64a34518356426beb5ab8f89c2ef754f3ac03614 (patch) | |
| tree | 7dbad1f3bf2e555c0210bfc3c2a3e87650876d1e /compiler/rustc_lint/src/early.rs | |
| parent | 5ae4d75effa366176dd75cd0d5662da26385cfc5 (diff) | |
| download | rust-64a34518356426beb5ab8f89c2ef754f3ac03614.tar.gz rust-64a34518356426beb5ab8f89c2ef754f3ac03614.zip | |
Pass Ident by reference in ast Visitor
Diffstat (limited to 'compiler/rustc_lint/src/early.rs')
| -rw-r--r-- | compiler/rustc_lint/src/early.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/early.rs b/compiler/rustc_lint/src/early.rs index 2285877c9ef..faf3cf1482c 100644 --- a/compiler/rustc_lint/src/early.rs +++ b/compiler/rustc_lint/src/early.rs @@ -190,7 +190,7 @@ impl<'a, T: EarlyLintPass> ast_visit::Visitor<'a> for EarlyContextAndPass<'a, T> ast_visit::walk_ty(self, t); } - fn visit_ident(&mut self, ident: Ident) { + fn visit_ident(&mut self, ident: &Ident) { lint_callback!(self, check_ident, ident); } |
