From d7184b76a74f495c6f4af7b9c69129f4fe59bfdb Mon Sep 17 00:00:00 2001 From: SynapLink Date: Mon, 27 Apr 2026 20:43:24 +0200 Subject: [PATCH] tests: remove obsolete class attribute tests --- tests/ui/attributes/class-attributes-1.rs | 19 -------------- tests/ui/attributes/class-attributes-2.rs | 31 ----------------------- 2 files changed, 50 deletions(-) delete mode 100644 tests/ui/attributes/class-attributes-1.rs delete mode 100644 tests/ui/attributes/class-attributes-2.rs diff --git a/tests/ui/attributes/class-attributes-1.rs b/tests/ui/attributes/class-attributes-1.rs deleted file mode 100644 index ba41bceb3c71..000000000000 --- a/tests/ui/attributes/class-attributes-1.rs +++ /dev/null @@ -1,19 +0,0 @@ -//@ check-pass -//@ pp-exact - Make sure we actually print the attributes - -#![feature(rustc_attrs)] - -struct Cat { - name: String, -} - -impl Drop for Cat { - #[rustc_dummy] - fn drop(&mut self) { println!("{} landed on hir feet" , self . name); } -} - - -#[rustc_dummy] -fn cat(name: String) -> Cat { Cat{name: name,} } - -fn main() { let _kitty = cat("Spotty".to_string()); } diff --git a/tests/ui/attributes/class-attributes-2.rs b/tests/ui/attributes/class-attributes-2.rs deleted file mode 100644 index 875f83cc2da0..000000000000 --- a/tests/ui/attributes/class-attributes-2.rs +++ /dev/null @@ -1,31 +0,0 @@ -//@ check-pass - -#![feature(rustc_attrs)] - -struct Cat { - name: String, -} - -impl Drop for Cat { - #[rustc_dummy] - /** - Actually, cats don't always land on their feet when you drop them. - */ - fn drop(&mut self) { - println!("{} landed on hir feet", self.name); - } -} - -#[rustc_dummy] -/** -Maybe it should technically be a kitten_maker. -*/ -fn cat(name: String) -> Cat { - Cat { - name: name - } -} - -fn main() { - let _kitty = cat("Spotty".to_string()); -}