about summary refs log tree commit diff
path: root/compiler/rustc_attr_data_structures/src
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2024-12-09 19:00:43 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2025-01-23 17:19:53 +0000
commitcd848c9f3eebcb4a0940e1370d3e6ba9b0fe4bca (patch)
tree624c404e33ed83c8d84234c7c5337a8f6ffa68d3 /compiler/rustc_attr_data_structures/src
parentdee7d0e730a3a3ed98c89dd33c4ac16edc82de8a (diff)
downloadrust-cd848c9f3eebcb4a0940e1370d3e6ba9b0fe4bca.tar.gz
rust-cd848c9f3eebcb4a0940e1370d3e6ba9b0fe4bca.zip
Implement `optimize(none)` attribute
Diffstat (limited to 'compiler/rustc_attr_data_structures/src')
-rw-r--r--compiler/rustc_attr_data_structures/src/attributes.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_attr_data_structures/src/attributes.rs b/compiler/rustc_attr_data_structures/src/attributes.rs
index def6b16ee8a..810a254a7e1 100644
--- a/compiler/rustc_attr_data_structures/src/attributes.rs
+++ b/compiler/rustc_attr_data_structures/src/attributes.rs
@@ -38,7 +38,11 @@ pub enum InstructionSetAttr {
 #[derive(Clone, Encodable, Decodable, Debug, HashStable_Generic)]
 pub enum OptimizeAttr {
     None,
+    /// `#[optimize(none)]`
+    DoNotOptimize,
+    /// `#[optimize(speed)]`
     Speed,
+    /// `#[optimize(size)]`
     Size,
 }