Skip to content

Commit 19f2cef

Browse files
committed
bless batch
1 parent 6f9f78c commit 19f2cef

13 files changed

Lines changed: 31 additions & 10 deletions

‎tests/ui/abi/extern/extern-c-method-return-struct.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/26997>.
12
//@ build-pass
3+
24
#![allow(dead_code)]
35
pub struct Foo {
46
x: isize,

‎tests/ui/binop/binop-mutate-lhs-in-rhs.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/27054>.
12
//@ run-pass
3+
24
fn main() {
35
let x = &mut 1;
46
assert_eq!(*x + { *x=2; 1 }, 2);

‎tests/ui/coercion/infer-coerce-unsized-trait-object.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/27105>.
12
//@ check-pass
3+
24
use std::cell::RefCell;
35
use std::rc::Rc;
46

‎tests/ui/drop/dst-coerce-unsized-drop.rs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/26709>.
2+
//! Test value is still getting dropped after unsized coerce.
3+
//!
4+
//! Fat pointer was passed in two immediate args, but the drop invocation
5+
//! used to accept one, which led to ICE.
16
//@ run-pass
7+
28
struct Wrapper<'a, T: ?Sized>(&'a mut i32, #[allow(dead_code)] T);
39

410
impl<'a, T: ?Sized> Drop for Wrapper<'a, T> {

‎tests/ui/drop/enum-destructor-on-unwind.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/26655>.
2+
//! Check that the destructors of simple enums are run on unwinding.
13
//@ run-pass
24
//@ needs-unwind
35
//@ needs-threads
46
//@ ignore-backends: gcc
57

6-
// Check that the destructors of simple enums are run on unwinding
7-
88
use std::sync::atomic::{Ordering, AtomicUsize};
99
use std::thread;
1010

‎tests/ui/functional-struct-update/fru-on-enum-variant.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/26948>.
2+
13
fn main() {
24
enum Foo { A { x: u32 } }
35
let orig = Foo::A { x: 5 };

‎tests/ui/functional-struct-update/fru-on-enum-variant.stderr‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0436]: functional record update syntax requires a struct
2-
--> $DIR/issue-26948.rs:4:22
2+
--> $DIR/fru-on-enum-variant.rs:6:22
33
|
44
LL | Foo::A { x: 6, ..orig };
55
| ^^^^

‎tests/ui/label/loop-label-included-in-span.rs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// Regression test for #27042. Test that a loop's label is included in its span.
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/27042>.
2+
//! Test that a loop's label is included in its span.
23
34
fn main() {
45
let _: i32 =

‎tests/ui/label/loop-label-included-in-span.stderr‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
warning: denote infinite loops with `loop { ... }`
2-
--> $DIR/issue-27042.rs:8:9
2+
--> $DIR/loop-label-included-in-span.rs:9:9
33
|
44
LL | / 'b:
55
LL | |
@@ -9,7 +9,7 @@ LL | | while true { break }; // but here we cite the whole loop
99
= note: `#[warn(while_true)]` on by default
1010

1111
error[E0308]: mismatched types
12-
--> $DIR/issue-27042.rs:6:16
12+
--> $DIR/loop-label-included-in-span.rs:7:16
1313
|
1414
LL | let _: i32 =
1515
| - expected because of this assignment
@@ -25,7 +25,7 @@ LL | loop { break 42 };
2525
| ++
2626

2727
error[E0308]: mismatched types
28-
--> $DIR/issue-27042.rs:8:9
28+
--> $DIR/loop-label-included-in-span.rs:9:9
2929
|
3030
LL | let _: i32 =
3131
| --- expected due to this
@@ -35,7 +35,7 @@ LL | | while true { break }; // but here we cite the whole loop
3535
| |____________________________^ expected `i32`, found `()`
3636

3737
error[E0308]: mismatched types
38-
--> $DIR/issue-27042.rs:12:9
38+
--> $DIR/loop-label-included-in-span.rs:13:9
3939
|
4040
LL | / 'c:
4141
LL | | for _ in None { break }; // but here we cite the whole loop
@@ -44,7 +44,7 @@ LL | | for _ in None { break }; // but here we cite the whole loop
4444
= note: `for` loops evaluate to unit type `()`
4545

4646
error[E0308]: mismatched types
47-
--> $DIR/issue-27042.rs:15:9
47+
--> $DIR/loop-label-included-in-span.rs:16:9
4848
|
4949
LL | let _: i32 =
5050
| --- expected due to this

‎tests/ui/traits/default-method/trait-object-lifetime-bound.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/26802>.
12
//@ run-pass
3+
24
trait Foo<'a> {
35
fn bar<'b>(&self, x: &'b u8) -> u8 where 'a: 'b { *x+7 }
46
}

0 commit comments

Comments
 (0)