diff options
| author | Ralf Jung <post@ralfj.de> | 2025-01-04 11:30:31 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-01-04 11:35:31 +0100 |
| commit | be65012aa34aa3b8d27e0e372b9eb86743d5aa8f (patch) | |
| tree | dc1f494a710d956e2ea18047b87a81225857db00 /compiler/rustc_lint/src/builtin.rs | |
| parent | c528b8c67895bfe7fdcdfeb56ec5bf6ef928dcd7 (diff) | |
| download | rust-be65012aa34aa3b8d27e0e372b9eb86743d5aa8f.tar.gz rust-be65012aa34aa3b8d27e0e372b9eb86743d5aa8f.zip | |
turn hir::ItemKind::Fn into a named-field variant
Diffstat (limited to 'compiler/rustc_lint/src/builtin.rs')
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 6e823957cc6..2feed5e80dc 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -1030,7 +1030,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidNoMangleItems { } }; match it.kind { - hir::ItemKind::Fn(.., generics, _) => { + hir::ItemKind::Fn { generics, .. } => { if let Some(no_mangle_attr) = attr::find_by_name(attrs, sym::no_mangle) { check_no_mangle_on_generic_fn(no_mangle_attr, None, generics, it.span); } |
