Skip to content

Commit 453eba0

Browse files
committed
Update ui tests.
1 parent d010c46 commit 453eba0

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

tests/ui/borrowck/issue-64453.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: `Arguments::<'a>::new_const` is not yet stable as a const fn
1+
error: `Arguments::<'a>::new_str` is not yet stable as a const fn
22
--> $DIR/issue-64453.rs:4:31
33
|
44
LL | static settings_dir: String = format!("");

tests/ui/fmt/send-sync.stderr

+6-20
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,27 @@
1-
error[E0277]: `core::fmt::rt::Opaque` cannot be shared between threads safely
1+
error[E0277]: `Arguments<'_>` cannot be sent between threads safely
22
--> $DIR/send-sync.rs:8:10
33
|
44
LL | send(format_args!("{:?}", c));
5-
| ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::rt::Opaque` cannot be shared between threads safely
5+
| ---- ^^^^^^^^^^^^^^^^^^^^^^^ `Arguments<'_>` cannot be sent between threads safely
66
| |
77
| required by a bound introduced by this call
88
|
9-
= help: within `[core::fmt::rt::Argument<'_>]`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque`
10-
= note: required because it appears within the type `&core::fmt::rt::Opaque`
11-
note: required because it appears within the type `Argument<'_>`
12-
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
13-
= note: required because it appears within the type `[Argument<'_>]`
14-
= note: required for `&[core::fmt::rt::Argument<'_>]` to implement `Send`
15-
note: required because it appears within the type `Arguments<'_>`
16-
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
9+
= help: the trait `Send` is not implemented for `Arguments<'_>`
1710
note: required by a bound in `send`
1811
--> $DIR/send-sync.rs:1:12
1912
|
2013
LL | fn send<T: Send>(_: T) {}
2114
| ^^^^ required by this bound in `send`
2215

23-
error[E0277]: `core::fmt::rt::Opaque` cannot be shared between threads safely
16+
error[E0277]: `Arguments<'_>` cannot be shared between threads safely
2417
--> $DIR/send-sync.rs:9:10
2518
|
2619
LL | sync(format_args!("{:?}", c));
27-
| ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::rt::Opaque` cannot be shared between threads safely
20+
| ---- ^^^^^^^^^^^^^^^^^^^^^^^ `Arguments<'_>` cannot be shared between threads safely
2821
| |
2922
| required by a bound introduced by this call
3023
|
31-
= help: within `Arguments<'_>`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque`
32-
= note: required because it appears within the type `&core::fmt::rt::Opaque`
33-
note: required because it appears within the type `Argument<'_>`
34-
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
35-
= note: required because it appears within the type `[Argument<'_>]`
36-
= note: required because it appears within the type `&[Argument<'_>]`
37-
note: required because it appears within the type `Arguments<'_>`
38-
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
24+
= help: the trait `Sync` is not implemented for `Arguments<'_>`
3925
note: required by a bound in `sync`
4026
--> $DIR/send-sync.rs:2:12
4127
|

0 commit comments

Comments
 (0)