Skip to content

Commit fd67621

Browse files
committed
Bless ui test runners
1 parent b140add commit fd67621

32 files changed

Lines changed: 53 additions & 53 deletions

tests/ui/abi/bad-custom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async unsafe extern "custom" fn no_async_fn() {
100100
}
101101

102102
fn no_promotion_to_fn_trait(f: unsafe extern "custom" fn()) -> impl Fn() {
103-
//~^ ERROR expected a `Fn()` closure, found `unsafe extern "custom" fn()`
103+
//~^ ERROR expected an `Fn()` closure, found `unsafe extern "custom" fn()`
104104
f
105105
}
106106

tests/ui/associated-types/normalization-ice-issue-149746.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ trait Owner { type Ty<T: FnMut()>; }
44
impl Owner for () { type Ty<T: FnMut()> = T; }
55
pub struct Warns<T> {
66
_significant_drop: <() as Owner>::Ty<T>,
7-
//~^ ERROR expected a `FnMut()` closure, found `T`
7+
//~^ ERROR expected an `FnMut()` closure, found `T`
88
field: String,
99
}
1010
pub fn test<T>(w: Warns<T>) {
11-
//~^ ERROR expected a `FnMut()` closure, found `T`
11+
//~^ ERROR expected an `FnMut()` closure, found `T`
1212
_ = || w.field
13-
//~^ ERROR expected a `FnMut()` closure, found `T`
14-
//~| ERROR expected a `FnMut()` closure, found `T`
13+
//~^ ERROR expected an `FnMut()` closure, found `T`
14+
//~| ERROR expected an `FnMut()` closure, found `T`
1515
//~| WARN: changes to closure capture in Rust 2021 will affect drop order
1616
}
1717
fn main() {}

tests/ui/async-await/async-fn/impl-header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ impl async Fn<()> for F {}
66
//~^ ERROR `async` trait implementations are unsupported
77
//~| ERROR the precise format of `Fn`-family traits' type parameters is subject to change
88
//~| ERROR manual implementations of `Fn` are experimental
9-
//~| ERROR expected a `FnMut()` closure, found `F`
9+
//~| ERROR expected an `FnMut()` closure, found `F`
1010
//~| ERROR not all trait items implemented, missing: `call`
1111

1212
fn main() {}

tests/ui/cast/raw-ptr-to-dyn-fn-raw-ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ fn main() {
44
let ptr: *mut () = core::ptr::null_mut();
55
let _: &mut dyn Fn() = unsafe {
66
&mut *(ptr as *mut dyn Fn())
7-
//~^ ERROR expected a `Fn()` closure, found `()`
7+
//~^ ERROR expected an `Fn()` closure, found `()`
88
};
99
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
fn main() {
22
let x = Some(1);
33
let y = x.or_else(4);
4-
//~^ ERROR expected a `FnOnce()` closure, found `{integer}`
4+
//~^ ERROR expected an `FnOnce()` closure, found `{integer}`
55
}

tests/ui/contracts/empty-ensures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ extern crate core;
66
use core::contracts::ensures;
77

88
#[ensures()]
9-
//~^ ERROR expected a `Fn(&_)` closure, found `()` [E0277]
9+
//~^ ERROR expected an `Fn(&_)` closure, found `()` [E0277]
1010
fn foo(x: u32) -> u32 {
1111
x * 2
1212
}

tests/ui/expr/malformed_closure/block_instead_of_closure_in_arg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
fn main() {
22
let number = 2;
3-
Some(true).filter({ //~ ERROR expected a `FnOnce(&bool)` closure, found `bool`
3+
Some(true).filter({ //~ ERROR expected an `FnOnce(&bool)` closure, found `bool`
44
if number % 2 == 0 {
55
number == 0
66
} else {

tests/ui/expr/malformed_closure/ruby_style_closure_successful_parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const x: usize =42;
22
fn main() {
3-
let p = Some(45).and_then({|x| //~ ERROR expected a `FnOnce({integer})` closure, found `Option<usize>`
3+
let p = Some(45).and_then({|x| //~ ERROR expected an `FnOnce({integer})` closure, found `Option<usize>`
44
1 + 1;
55
Some(x * 2)
66
});

tests/ui/extern/extern-wrong-value-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ fn main() {
77
// extern functions are extern "C" fn
88
let _x: extern "C" fn() = f; // OK
99
is_fn(f);
10-
//~^ ERROR expected a `Fn()` closure, found `extern "C" fn() {f}`
10+
//~^ ERROR expected an `Fn()` closure, found `extern "C" fn() {f}`
1111
}

tests/ui/feature-gates/feature-gate-unboxed-closures-manual-impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct Foo;
99
impl Fn<()> for Foo {
1010
//~^ ERROR the precise format of `Fn`-family traits' type parameters is subject to change
1111
//~| ERROR manual implementations of `Fn` are experimental
12-
//~| ERROR expected a `FnMut()` closure, found `Foo`
12+
//~| ERROR expected an `FnMut()` closure, found `Foo`
1313
extern "rust-call" fn call(self, args: ()) -> () {}
1414
//~^ ERROR "rust-call" ABI is experimental and subject to change
1515
//~| ERROR `call` has an incompatible type for trait
@@ -26,7 +26,7 @@ struct Bar;
2626
impl FnMut<()> for Bar {
2727
//~^ ERROR the precise format of `Fn`-family traits' type parameters is subject to change
2828
//~| ERROR manual implementations of `FnMut` are experimental
29-
//~| ERROR expected a `FnOnce()` closure, found `Bar`
29+
//~| ERROR expected an `FnOnce()` closure, found `Bar`
3030
extern "rust-call" fn call_mut(&self, args: ()) -> () {}
3131
//~^ ERROR "rust-call" ABI is experimental and subject to change
3232
//~| ERROR incompatible type for trait

0 commit comments

Comments
 (0)