about summary refs log tree commit diff
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
commit8ad69573fa39ad50418cce830bce003dbe8cde64 (patch)
treea44182071ce43dff97b9111d7fd4ecf8dada539a
parente58e6974adb97376c244fce9bbf679f53c264e88 (diff)
downloadrust-8ad69573fa39ad50418cce830bce003dbe8cde64.tar.gz
rust-8ad69573fa39ad50418cce830bce003dbe8cde64.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
-rw-r--r--src/consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consts.rs b/src/consts.rs
index 033afc0f8fb..8aed04c836a 100644
--- a/src/consts.rs
+++ b/src/consts.rs
@@ -154,7 +154,7 @@ impl<'gcc, 'tcx> StaticCodegenMethods for CodegenCx<'gcc, 'tcx> {
             // TODO(antoyo): set link section.
         }
 
-        if attrs.flags.contains(CodegenFnAttrFlags::USED)
+        if attrs.flags.contains(CodegenFnAttrFlags::USED_COMPILER)
             || attrs.flags.contains(CodegenFnAttrFlags::USED_LINKER)
         {
             self.add_used_global(global.to_rvalue());