about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/reachable.rs
diff options
context:
space:
mode:
authorNoratrieb <48135649+Noratrieb@users.noreply.github.com>2025-05-24 19:50:11 +0200
committerNoratrieb <48135649+Noratrieb@users.noreply.github.com>2025-05-24 20:31:37 +0200
commitfa2bb599bcf36b5390d5c8156cba6bc980ddbfca (patch)
tree8bb73e707c9bae7d88428dc2d673a185d566b0ca /compiler/rustc_passes/src/reachable.rs
parente88e85463468ce5d5ce468414eb69e3b15fa8d42 (diff)
downloadrust-fa2bb599bcf36b5390d5c8156cba6bc980ddbfca.tar.gz
rust-fa2bb599bcf36b5390d5c8156cba6bc980ddbfca.zip
Cleanup CodegenFnAttrFlags
- Rename `USED` to `USED_COMPILER` to better reflect its behavior.
- Reorder some items to group the used and allocator flags together
- Renumber them without gaps
Diffstat (limited to 'compiler/rustc_passes/src/reachable.rs')
-rw-r--r--compiler/rustc_passes/src/reachable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/reachable.rs b/compiler/rustc_passes/src/reachable.rs
index f0e8fa986fe..7e15267a953 100644
--- a/compiler/rustc_passes/src/reachable.rs
+++ b/compiler/rustc_passes/src/reachable.rs
@@ -427,7 +427,7 @@ fn has_custom_linkage(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
         // FIXME(nbdd0121): `#[used]` are marked as reachable here so it's picked up by
         // `linked_symbols` in cg_ssa. They won't be exported in binary or cdylib due to their
         // `SymbolExportLevel::Rust` export level but may end up being exported in dylibs.
-        || codegen_attrs.flags.contains(CodegenFnAttrFlags::USED)
+        || codegen_attrs.flags.contains(CodegenFnAttrFlags::USED_COMPILER)
         || codegen_attrs.flags.contains(CodegenFnAttrFlags::USED_LINKER)
 }