Skip to content

Commit 983c12f

Browse files
committed
update ui tests
1 parent bef6f3e commit 983c12f

11 files changed

+23
-126
lines changed

src/test/rustdoc/intra-doc/prim-self.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![deny(rustdoc::broken_intra_doc_links)]
2+
#![rustc_coherence_is_core]
23
#![allow(incomplete_features)] // inherent_associated_types
34
#![feature(lang_items)]
45
#![feature(no_core)]

src/test/ui/error-codes/E0118-2.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/test/ui/error-codes/E0118-2.stderr

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/test/ui/error-codes/E0118.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/test/ui/error-codes/E0118.stderr

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/test/ui/error-codes/E0390.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error[E0390]: only a single inherent implementation marked with `#[lang = "mut_ptr"]` is allowed for the `*mut T` primitive
2-
--> $DIR/E0390.rs:5:1
1+
error[E0390]: cannot define inherent `impl` for primitive types
2+
--> $DIR/E0390.rs:5:6
33
|
44
LL | impl *mut Foo {}
5-
| ^^^^^^^^^^^^^^^^
5+
| ^^^^^^^^
66
|
7-
= help: consider using a trait
7+
= help: consider using a trait instead
88

99
error: aborting due to previous error
1010

src/test/ui/kinds-of-primitive-impl.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
impl u8 {
2-
//~^ error: only a single inherent implementation marked with `#[lang = "u8"]` is allowed for the `u8` primitive
2+
//~^ error: cannot define inherent `impl` for primitive types
33
pub const B: u8 = 0;
44
}
55

66
impl str {
7-
//~^ error: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
7+
//~^ error: cannot define inherent `impl` for primitive types
88
fn foo() {}
99
fn bar(self) {}
1010
}
1111

1212
impl char {
13-
//~^ error: only a single inherent implementation marked with `#[lang = "char"]` is allowed for the `char` primitive
13+
//~^ error: cannot define inherent `impl` for primitive types
1414
pub const B: u8 = 0;
1515
pub const C: u8 = 0;
1616
fn foo() {}

src/test/ui/kinds-of-primitive-impl.stderr

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,26 @@
1-
error[E0390]: only a single inherent implementation marked with `#[lang = "u8"]` is allowed for the `u8` primitive
2-
--> $DIR/kinds-of-primitive-impl.rs:1:1
1+
error[E0390]: cannot define inherent `impl` for primitive types
2+
--> $DIR/kinds-of-primitive-impl.rs:1:6
33
|
4-
LL | / impl u8 {
5-
LL | |
6-
LL | | pub const B: u8 = 0;
7-
LL | | }
8-
| |_^
4+
LL | impl u8 {
5+
| ^^
96
|
10-
= help: consider using a trait to implement this constant
7+
= help: consider using a trait instead
118

12-
error[E0390]: only a single inherent implementation marked with `#[lang = "str"]` is allowed for the `str` primitive
13-
--> $DIR/kinds-of-primitive-impl.rs:6:1
9+
error[E0390]: cannot define inherent `impl` for primitive types
10+
--> $DIR/kinds-of-primitive-impl.rs:6:6
1411
|
15-
LL | / impl str {
16-
LL | |
17-
LL | | fn foo() {}
18-
LL | | fn bar(self) {}
19-
LL | | }
20-
| |_^
12+
LL | impl str {
13+
| ^^^
2114
|
22-
= help: consider using a trait to implement these methods
15+
= help: consider using a trait instead
2316

24-
error[E0390]: only a single inherent implementation marked with `#[lang = "char"]` is allowed for the `char` primitive
25-
--> $DIR/kinds-of-primitive-impl.rs:12:1
17+
error[E0390]: cannot define inherent `impl` for primitive types
18+
--> $DIR/kinds-of-primitive-impl.rs:12:6
2619
|
27-
LL | / impl char {
28-
LL | |
29-
LL | | pub const B: u8 = 0;
30-
LL | | pub const C: u8 = 0;
31-
LL | | fn foo() {}
32-
LL | | fn bar(self) {}
33-
LL | | }
34-
| |_^
20+
LL | impl char {
21+
| ^^^^
3522
|
36-
= help: consider using a trait to implement these associated items
23+
= help: consider using a trait instead
3724

3825
error: aborting due to 3 previous errors
3926

src/test/ui/lang-items/lang-item-correct-generics.rs

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/test/ui/single-primitive-inherent-impl.rs

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)