Skip to content

Commit 60256a3

Browse files
committed
aux: add const {Meta,}Sized to minicore
Now that `MetaSized` and `Sized` are const traits, this must be reflected in minicore.
1 parent 92c7a29 commit 60256a3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tests/auxiliary/minicore.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
f16,
2727
f128,
2828
asm_experimental_arch,
29+
const_trait_impl,
2930
unboxed_closures
3031
)]
3132
#![allow(unused, improper_ctypes_definitions, internal_features)]
@@ -44,9 +45,11 @@ macro_rules! impl_marker_trait {
4445
pub trait PointeeSized {}
4546

4647
#[lang = "metasized"]
48+
#[const_trait]
4749
pub trait MetaSized: PointeeSized {}
4850

4951
#[lang = "sized"]
52+
#[const_trait]
5053
pub trait Sized: MetaSized {}
5154

5255
#[lang = "legacy_receiver"]

tests/ui/traits/const-traits/auxiliary/minicore.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
pub trait PointeeSized {}
2323

2424
#[lang = "metasized"]
25+
#[const_trait]
2526
pub trait MetaSized: PointeeSized {}
2627

2728
#[lang = "sized"]
29+
#[const_trait]
2830
pub trait Sized: MetaSized {}
2931

3032
#[lang = "copy"]

0 commit comments

Comments
 (0)