about summary refs log tree commit diff
path: root/tests/ui/symbol-names
diff options
context:
space:
mode:
authortiif <pekyuan@gmail.com>2025-09-15 09:01:22 +0000
committertiif <pekyuan@gmail.com>2025-09-15 09:01:22 +0000
commit0bd2ee3a0c260894eb92f5f0f5f8dd56182cda3f (patch)
tree64f36788ab56aa8659b6ba6ff15e2a29aec8c98b /tests/ui/symbol-names
parent1a02cd531d6b5ff154078208daf7816b1657f389 (diff)
downloadrust-0bd2ee3a0c260894eb92f5f0f5f8dd56182cda3f.tar.gz
rust-0bd2ee3a0c260894eb92f5f0f5f8dd56182cda3f.zip
Fix the testcases to not use UnsizedConstParamTy
Diffstat (limited to 'tests/ui/symbol-names')
-rw-r--r--tests/ui/symbol-names/const-generics-structural-demangling.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/symbol-names/const-generics-structural-demangling.rs b/tests/ui/symbol-names/const-generics-structural-demangling.rs
index 06e3ce51fa6..0b4af61f991 100644
--- a/tests/ui/symbol-names/const-generics-structural-demangling.rs
+++ b/tests/ui/symbol-names/const-generics-structural-demangling.rs
@@ -6,7 +6,7 @@
 #![feature(adt_const_params, unsized_const_params, decl_macro, rustc_attrs)]
 #![allow(incomplete_features)]
 
-use std::marker::UnsizedConstParamTy;
+use std::marker::ConstParamTy;
 
 pub struct RefByte<const RB: &'static u8>;
 
@@ -42,7 +42,7 @@ pub struct TupleByteBool<const TBB: (u8, bool)>;
 //~| ERROR demangling-alt(<c::TupleByteBool<{(1, false)}>>)
 impl TupleByteBool<{ (1, false) }> {}
 
-#[derive(PartialEq, Eq, UnsizedConstParamTy)]
+#[derive(PartialEq, Eq, ConstParamTy)]
 pub enum MyOption<T> {
     Some(T),
     None,
@@ -66,7 +66,7 @@ impl OptionUsize<{ MyOption::None }> {}
 //~| ERROR demangling-alt(<c::OptionUsize<{c::MyOption::<usize>::Some(0)}>>)
 impl OptionUsize<{ MyOption::Some(0) }> {}
 
-#[derive(PartialEq, Eq, UnsizedConstParamTy)]
+#[derive(PartialEq, Eq, ConstParamTy)]
 pub struct Foo {
     s: &'static str,
     ch: char,
@@ -83,7 +83,7 @@ impl Foo_<{ Foo { s: "abc", ch: 'x', slice: &[1, 2, 3] } }> {}
 // NOTE(eddyb) this tests specifically the use of disambiguators in field names,
 // using macros 2.0 hygiene to create a `struct` with conflicting field names.
 macro duplicate_field_name_test($x:ident) {
-    #[derive(PartialEq, Eq, UnsizedConstParamTy)]
+    #[derive(PartialEq, Eq, ConstParamTy)]
     pub struct Bar {
         $x: u8,
         x: u16,