Skip to content

Commit 1872955

Browse files
authored
fix: Failing tests on rustc nightly (#15679)
Fixes #15678
2 parents 2251525 + da33254 commit 1872955

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

tests/testsuite/custom_target.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,18 @@ const MINIMAL_LIB: &str = r#"
1111
#![feature(lang_items)]
1212
#![no_core]
1313
14+
#[lang = "pointee_sized"]
15+
pub trait PointeeSized {
16+
// Empty.
17+
}
18+
19+
#[lang = "meta_sized"]
20+
pub trait MetaSized: PointeeSized {
21+
// Empty.
22+
}
23+
1424
#[lang = "sized"]
15-
pub trait Sized {
25+
pub trait Sized: MetaSized {
1626
// Empty.
1727
}
1828
#[lang = "copy"]

tests/testsuite/doc.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,14 @@ fn doc_target() {
815815
#![feature(no_core, lang_items)]
816816
#![no_core]
817817
818+
#[lang = "pointee_sized"]
819+
trait PointeeSized {}
820+
821+
#[lang = "meta_sized"]
822+
trait MetaSized: PointeeSized {}
823+
818824
#[lang = "sized"]
819-
trait Sized {}
825+
trait Sized: MetaSized {}
820826
821827
extern {
822828
pub static A: u32;

0 commit comments

Comments
 (0)