提交 a0f06d11 编写于 作者: B bors

Auto merge of #72354 - tamird:remove-copyright, r=Mark-Simulacrum

Remove dangling COPYRIGHT references

Missed in 2a663555.

r? @Mark-Simulacrum
//~ ERROR 1:1: 1:1: can't find crate for `core` [E0463]
// http://rust-lang.org/COPYRIGHT.
//
// compile-flags: --target thumbv7em-none-eabihf
#![deny(unsafe_code)]
......
......@@ -3,9 +3,6 @@
// Line number < 10
type A = B; //~ ERROR
// http://rust-lang.org/COPYRIGHT.
//
// Line number >=10, <100
type C = D; //~ ERROR
......
......@@ -8,21 +8,21 @@ error[E0412]: cannot find type `B` in this scope
| similarly named type alias `A` defined here
error[E0412]: cannot find type `D` in this scope
--> $DIR/ui-testing-optout.rs:10:10
|
4 | type A = B;
| ----------- similarly named type alias `A` defined here
--> $DIR/ui-testing-optout.rs:7:10
|
4 | type A = B;
| ----------- similarly named type alias `A` defined here
...
10 | type C = D;
| ^ help: a type alias with a similar name exists: `A`
7 | type C = D;
| ^ help: a type alias with a similar name exists: `A`
error[E0412]: cannot find type `F` in this scope
--> $DIR/ui-testing-optout.rs:95:10
--> $DIR/ui-testing-optout.rs:92:10
|
4 | type A = B;
| ----------- similarly named type alias `A` defined here
...
95 | type E = F;
92 | type E = F;
| ^ help: a type alias with a similar name exists: `A`
error: aborting due to 3 previous errors
......
// http://rust-lang.org/COPYRIGHT.
//
fn f(p: *mut u8) {
*p = 0; //~ ERROR dereference of raw pointer is unsafe
return;
......
error[E0133]: dereference of raw pointer is unsafe and requires unsafe function or block
--> $DIR/unsafe-fn-assign-deref-ptr.rs:6:5
--> $DIR/unsafe-fn-assign-deref-ptr.rs:2:5
|
LL | *p = 0;
| ^^^^^^ dereference of raw pointer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册