Skip to content

Commit 493cf0c

Browse files
committed
Bless ui tests
1 parent 2f555de commit 493cf0c

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/test/ui/closures/closure-expected.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ LL | let y = x.or_else(4);
1111
note: required by a bound in `Option::<T>::or_else`
1212
--> $SRC_DIR/core/src/option.rs:LL:COL
1313
|
14-
LL | pub fn or_else<F: FnOnce() -> Option<T>>(self, f: F) -> Option<T> {
15-
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::or_else`
14+
LL | F: ~const FnOnce() -> Option<T>,
15+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::or_else`
1616

1717
error: aborting due to previous error
1818

src/test/ui/closures/coerce-unsafe-to-closure.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ LL | let x: Option<&[u8]> = Some("foo").map(std::mem::transmute);
1010
note: required by a bound in `Option::<T>::map`
1111
--> $SRC_DIR/core/src/option.rs:LL:COL
1212
|
13-
LL | pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Option<U> {
14-
| ^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map`
13+
LL | F: ~const FnOnce(T) -> U,
14+
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map`
1515

1616
error: aborting due to previous error
1717

src/test/ui/expr/malformed_closure/ruby_style_closure.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ LL | | });
2323
note: required by a bound in `Option::<T>::and_then`
2424
--> $SRC_DIR/core/src/option.rs:LL:COL
2525
|
26-
LL | pub fn and_then<U, F: FnOnce(T) -> Option<U>>(self, f: F) -> Option<U> {
27-
| ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::and_then`
26+
LL | F: ~const FnOnce(T) -> Option<U>,
27+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::and_then`
2828

2929
error: aborting due to 2 previous errors
3030

src/test/ui/issues/issue-47706-trait.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ LL | None::<()>.map(Self::f);
1111
note: required by a bound in `Option::<T>::map`
1212
--> $SRC_DIR/core/src/option.rs:LL:COL
1313
|
14-
LL | pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Option<U> {
15-
| ^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map`
14+
LL | F: ~const FnOnce(T) -> U,
15+
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map`
1616

1717
error: aborting due to previous error
1818

src/test/ui/issues/issue-47706.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ LL | self.foo.map(Foo::new)
1212
note: required by a bound in `Option::<T>::map`
1313
--> $SRC_DIR/core/src/option.rs:LL:COL
1414
|
15-
LL | pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Option<U> {
16-
| ^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map`
15+
LL | F: ~const FnOnce(T) -> U,
16+
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Option::<T>::map`
1717

1818
error[E0593]: function is expected to take 0 arguments, but it takes 1 argument
1919
--> $DIR/issue-47706.rs:27:9

src/test/ui/suggestions/as-ref-2.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ LL | let _y = foo;
1111
note: this function takes ownership of the receiver `self`, which moves `foo`
1212
--> $SRC_DIR/core/src/option.rs:LL:COL
1313
|
14-
LL | pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Option<U> {
15-
| ^^^^
14+
LL | pub const fn map<U, F>(self, f: F) -> Option<U>
15+
| ^^^^
1616
help: consider calling `.as_ref()` to borrow the type's contents
1717
|
1818
LL | let _x: Option<Struct> = foo.as_ref().map(|s| bar(&s));

0 commit comments

Comments
 (0)