Skip to content

Commit 972f455

Browse files
committed
comments
1 parent 372b1b8 commit 972f455

File tree

50 files changed

+98
-30
lines changed

Some content is hidden

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

50 files changed

+98
-30
lines changed

tests/ui/closures/unused-closure-warning.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/16256
2+
13
//@ run-pass
24

35
fn main() {

tests/ui/issues/issue-16256.stderr renamed to tests/ui/closures/unused-closure-warning.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: unused closure that must be used
2-
--> $DIR/issue-16256.rs:5:5
2+
--> $DIR/unused-closure-warning.rs:7:5
33
|
44
LL | |c: u8| buf.push(c);
55
| ^^^^^^^^^^^^^^^^^^^

tests/ui/coercion/array-slice-coercion-mismatch.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/15783
2+
13
//@ dont-require-annotations: NOTE
24

35
pub fn foo(params: Option<&[&str]>) -> usize {

tests/ui/issues/issue-15783.stderr renamed to tests/ui/coercion/array-slice-coercion-mismatch.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-15783.rs:10:19
2+
--> $DIR/array-slice-coercion-mismatch.rs:12:19
33
|
44
LL | let msg = foo(x);
55
| --- ^ expected `Option<&[&str]>`, found `Option<&[&str; 1]>`
@@ -9,7 +9,7 @@ LL | let msg = foo(x);
99
= note: expected enum `Option<&[&str]>`
1010
found enum `Option<&[&str; 1]>`
1111
note: function defined here
12-
--> $DIR/issue-15783.rs:3:8
12+
--> $DIR/array-slice-coercion-mismatch.rs:5:8
1313
|
1414
LL | pub fn foo(params: Option<&[&str]>) -> usize {
1515
| ^^^ -----------------------

tests/ui/derives/derive-partial-ord-discriminant-64bit.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/15523
2+
13
//@ run-pass
24
// Issue 15523: derive(PartialOrd) should use the provided
35
// discriminant values for the derived ordering.
@@ -28,7 +30,6 @@ fn main() {
2830
assert!(Eu64::Pos2 < Eu64::PosMax);
2931
assert!(Eu64::Pos1 < Eu64::PosMax);
3032

31-
3233
assert!(Ei64::Pos2 > Ei64::Pos1);
3334
assert!(Ei64::Pos2 > Ei64::Neg1);
3435
assert!(Ei64::Pos1 > Ei64::Neg1);

tests/ui/derives/derive-partial-ord-discriminant.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/15523
2+
13
//@ run-pass
24
// Issue 15523: derive(PartialOrd) should use the provided
35
// discriminant values for the derived ordering.

tests/ui/drop/early-return-drop-order.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/15763
2+
13
//@ run-pass
24
#![allow(unreachable_code)]
35

tests/ui/drop/enum-drop-impl.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/15063
2+
13
//@ run-pass
24
#![allow(dead_code)]
35
#![allow(unused_variables)]

tests/ui/drop/generic-drop-trait-bound.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/15858
2+
13
//@ run-pass
24
// FIXME(static_mut_refs): this could use an atomic
35
#![allow(static_mut_refs)]

tests/ui/issues/issue-15858.stderr renamed to tests/ui/drop/generic-drop-trait-bound.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: method `do_something` is never used
2-
--> $DIR/issue-15858.rs:7:8
2+
--> $DIR/generic-drop-trait-bound.rs:9:8
33
|
44
LL | trait Bar {
55
| --- method in this trait

0 commit comments

Comments
 (0)