Skip to content

Commit 53661bd

Browse files
committed
comments
1 parent 462064c commit 53661bd

File tree

49 files changed

+91
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+91
-21
lines changed

tests/ui/cast/array-field-ptr-cast.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/14845
2+
13
struct X {
24
a: [u8; 1]
35
}

tests/ui/issues/issue-14845.stderr renamed to tests/ui/cast/array-field-ptr-cast.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0606]: casting `&[u8; 1]` as `*mut u8` is invalid
2-
--> $DIR/issue-14845.rs:7:14
2+
--> $DIR/array-field-ptr-cast.rs:9:14
33
|
44
LL | let _f = &x.a as *mut u8;
55
| ^^^^^^^^^^^^^^^
66

77
error[E0606]: casting `&[u8; 1]` as `*mut u8` is invalid
8-
--> $DIR/issue-14845.rs:10:14
8+
--> $DIR/array-field-ptr-cast.rs:12:14
99
|
1010
LL | let _v = &local as *mut u8;
1111
| ^^^^^^^^^^^^^^^^^

tests/ui/cast/trait-object-size-error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/14366
2+
13
fn main() {
24
let _x = "test" as &dyn (::std::any::Any);
35
//~^ ERROR the size for values of type

tests/ui/issues/issue-14366.stderr renamed to tests/ui/cast/trait-object-size-error.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: the size for values of type `str` cannot be known at compilation time
2-
--> $DIR/issue-14366.rs:2:14
2+
--> $DIR/trait-object-size-error.rs:4:14
33
|
44
LL | let _x = "test" as &dyn (::std::any::Any);
55
| ^^^^^^ doesn't have a size known at compile-time

tests/ui/closures/boxed-closure-lifetime.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/13808
2+
13
//@ run-pass
24
#![allow(dead_code)]
35
#![allow(unused_variables)]

tests/ui/coercion/method-return-trait-object.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/14399
2+
13
//@ run-pass
24
// #14399
35
// We'd previously ICE if we had a method call whose return

tests/ui/issues/issue-14399.stderr renamed to tests/ui/coercion/method-return-trait-object.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: method `foo` is never used
2-
--> $DIR/issue-14399.rs:11:14
2+
--> $DIR/method-return-trait-object.rs:13:14
33
|
44
LL | trait A { fn foo(&self) {} }
55
| - ^^^

tests/ui/consts/module-const-array-size.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/13763
2+
13
//@ run-pass
24
#![allow(dead_code)]
35

tests/ui/drop/panic-during-drop.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/14875
2+
13
//@ run-pass
24
//@ needs-unwind
35

tests/ui/extern/macro-use-extern-std.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/14330
2+
13
//@ check-pass
24
#![allow(unused_imports)]
35

0 commit comments

Comments
 (0)