about summary refs log tree commit diff
path: root/tests/incremental/hashes/enum_constructors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-23 11:26:01 +0000
committerbors <bors@rust-lang.org>2023-04-23 11:26:01 +0000
commit9e540df7931a32ca286eb2e907afde78b718fd17 (patch)
tree8fcbde75f770f1283b96c9f98a418c7129584167 /tests/incremental/hashes/enum_constructors.rs
parentf12a7fa00fb7a99a92661bb9ae2b768dac0c5d40 (diff)
parentb8c67d82d3b4f152a38711de3466875b270e33de (diff)
downloadrust-9e540df7931a32ca286eb2e907afde78b718fd17.tar.gz
rust-9e540df7931a32ca286eb2e907afde78b718fd17.zip
Auto merge of #107404 - cjgillot:const-debuginfo, r=oli-obk
Turn on ConstDebugInfo pass.

Split from https://github.com/rust-lang/rust/pull/103657

Moving those constant into debuginfo allows to shrink the number of locals and the actual size of the MIR body.
Diffstat (limited to 'tests/incremental/hashes/enum_constructors.rs')
-rw-r--r--tests/incremental/hashes/enum_constructors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/incremental/hashes/enum_constructors.rs b/tests/incremental/hashes/enum_constructors.rs
index db367d07094..f685fe46d70 100644
--- a/tests/incremental/hashes/enum_constructors.rs
+++ b/tests/incremental/hashes/enum_constructors.rs
@@ -334,9 +334,9 @@ pub fn change_constructor_variant_c_like() {
 }
 
 #[cfg(not(any(cfail1,cfail4)))]
-#[rustc_clean(cfg="cfail2", except="hir_owner_nodes")]
+#[rustc_clean(cfg="cfail2", except="hir_owner_nodes,optimized_mir")]
 #[rustc_clean(cfg="cfail3")]
-#[rustc_clean(cfg="cfail5", except="hir_owner_nodes")]
+#[rustc_clean(cfg="cfail5", except="hir_owner_nodes,optimized_mir")]
 #[rustc_clean(cfg="cfail6")]
 pub fn change_constructor_variant_c_like() {
     let _x = Clike::C;