You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/coherence/coherence-default-trait-impl.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0199]: implementing the trait `MySafeTrait` is not unsafe
2
2
--> $DIR/coherence-default-trait-impl.rs:8:1
3
3
|
4
4
LL | unsafe impl MySafeTrait for Foo {}
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
help: remove `unsafe` from this trait implementation
8
8
|
@@ -14,7 +14,7 @@ error[E0200]: the trait `MyUnsafeTrait` requires an `unsafe impl` declaration
14
14
--> $DIR/coherence-default-trait-impl.rs:13:1
15
15
|
16
16
LL | impl MyUnsafeTrait for Foo {}
17
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
18
18
|
19
19
= note: the trait `MyUnsafeTrait` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword
= note: the trait `Drop` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword
13
8
help: add `unsafe` to this trait implementation
@@ -18,13 +13,8 @@ LL | unsafe impl<#[may_dangle] A, B: fmt::Debug> Drop for Pt<A, B> {
18
13
error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
= note: the trait `Drop` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword
Copy file name to clipboardExpand all lines: src/test/ui/error-codes/E0200.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0200]: the trait `Bar` requires an `unsafe impl` declaration
2
2
--> $DIR/E0200.rs:5:1
3
3
|
4
4
LL | impl Bar for Foo { }
5
-
| ^^^^^^^^^^^^^^^^^^^^
5
+
| ^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: the trait `Bar` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword
Copy file name to clipboardExpand all lines: src/test/ui/traits/safety-trait-impl-cc.stderr
+2-6
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,8 @@
1
1
error[E0200]: the trait `Foo` requires an `unsafe impl` declaration
2
2
--> $DIR/safety-trait-impl-cc.rs:9:1
3
3
|
4
-
LL | / impl lib::Foo for Bar {
5
-
LL | | fn foo(&self) -> isize {
6
-
LL | | panic!();
7
-
LL | | }
8
-
LL | | }
9
-
| |_^
4
+
LL | impl lib::Foo for Bar {
5
+
| ^^^^^^^^^^^^^^^^^^^^^
10
6
|
11
7
= note: the trait `Foo` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword
Copy file name to clipboardExpand all lines: src/test/ui/traits/safety-trait-impl.stderr
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ error[E0200]: the trait `UnsafeTrait` requires an `unsafe impl` declaration
2
2
--> $DIR/safety-trait-impl.rs:14:1
3
3
|
4
4
LL | impl UnsafeTrait for u16 { }
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: the trait `UnsafeTrait` enforces invariants that the compiler can't check. Review the trait documentation and make sure this implementation upholds those invariants before adding the `unsafe` keyword
8
8
help: add `unsafe` to this trait implementation
@@ -14,7 +14,7 @@ error[E0199]: implementing the trait `SafeTrait` is not unsafe
14
14
--> $DIR/safety-trait-impl.rs:16:1
15
15
|
16
16
LL | unsafe impl SafeTrait for u32 { }
17
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
18
|
19
19
help: remove `unsafe` from this trait implementation
0 commit comments