From 412c98485a58302d5e760fd0e6d4f7ad9d9f00da Mon Sep 17 00:00:00 2001 From: r0cky Date: Sun, 26 Nov 2023 00:39:14 +0800 Subject: [PATCH] Update tests/codegen-units/ --- .../item-collection/instantiation-through-vtable.rs | 2 ++ .../codegen-units/item-collection/trait-method-default-impl.rs | 2 ++ tests/codegen-units/item-collection/unsizing.rs | 1 + 3 files changed, 5 insertions(+) diff --git a/tests/codegen-units/item-collection/instantiation-through-vtable.rs b/tests/codegen-units/item-collection/instantiation-through-vtable.rs index e78226d4083a4..d3133854b9eac 100644 --- a/tests/codegen-units/item-collection/instantiation-through-vtable.rs +++ b/tests/codegen-units/item-collection/instantiation-through-vtable.rs @@ -4,6 +4,8 @@ #![deny(dead_code)] #![feature(start)] +#![allow(dead_code)] + trait Trait { fn foo(&self) -> u32; fn bar(&self); diff --git a/tests/codegen-units/item-collection/trait-method-default-impl.rs b/tests/codegen-units/item-collection/trait-method-default-impl.rs index d953582cce9b6..677f3fbb50c71 100644 --- a/tests/codegen-units/item-collection/trait-method-default-impl.rs +++ b/tests/codegen-units/item-collection/trait-method-default-impl.rs @@ -3,6 +3,7 @@ #![deny(dead_code)] #![feature(start)] +#[allow(dead_code)] trait SomeTrait { fn foo(&self) { } fn bar(&self, x: T) -> T { x } @@ -16,6 +17,7 @@ impl SomeTrait for i8 { //~ MONO_ITEM fn ::foo } +#[allow(dead_code)] trait SomeGenericTrait { fn foo(&self) { } fn bar(&self, x: T1, y: T2) {} diff --git a/tests/codegen-units/item-collection/unsizing.rs b/tests/codegen-units/item-collection/unsizing.rs index 111a7231209a1..be5b91b791f40 100644 --- a/tests/codegen-units/item-collection/unsizing.rs +++ b/tests/codegen-units/item-collection/unsizing.rs @@ -10,6 +10,7 @@ use std::marker::Unsize; use std::ops::CoerceUnsized; +#[allow(dead_code)] trait Trait { fn foo(&self); }