Update tests.
This commit is contained in:
parent
0a28977740
commit
9cc5949f9f
4 changed files with 31 additions and 31 deletions
|
@ -15,14 +15,14 @@
|
||||||
let mut _13: &[&str; 3]; // in scope 0 at $DIR/lifetimes.rs:+10:19: +10:28
|
let mut _13: &[&str; 3]; // in scope 0 at $DIR/lifetimes.rs:+10:19: +10:28
|
||||||
let _14: &[&str; 3]; // in scope 0 at $DIR/lifetimes.rs:+10:19: +10:28
|
let _14: &[&str; 3]; // in scope 0 at $DIR/lifetimes.rs:+10:19: +10:28
|
||||||
let _15: [&str; 3]; // in scope 0 at $DIR/lifetimes.rs:+10:19: +10:28
|
let _15: [&str; 3]; // in scope 0 at $DIR/lifetimes.rs:+10:19: +10:28
|
||||||
let mut _16: &[core::fmt::ArgumentV1<'_>]; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
let mut _16: &[core::fmt::rt::Argument<'_>]; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
let mut _17: &[core::fmt::ArgumentV1<'_>; 2]; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
let mut _17: &[core::fmt::rt::Argument<'_>; 2]; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
let _18: &[core::fmt::ArgumentV1<'_>; 2]; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
let _18: &[core::fmt::rt::Argument<'_>; 2]; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
let _19: [core::fmt::ArgumentV1<'_>; 2]; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
let _19: [core::fmt::rt::Argument<'_>; 2]; // in scope 0 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
let mut _20: core::fmt::ArgumentV1<'_>; // in scope 0 at $DIR/lifetimes.rs:+10:20: +10:23
|
let mut _20: core::fmt::rt::Argument<'_>; // in scope 0 at $DIR/lifetimes.rs:+10:20: +10:23
|
||||||
let mut _21: &std::boxed::Box<dyn std::fmt::Display>; // in scope 0 at $DIR/lifetimes.rs:+10:20: +10:23
|
let mut _21: &std::boxed::Box<dyn std::fmt::Display>; // in scope 0 at $DIR/lifetimes.rs:+10:20: +10:23
|
||||||
let _22: &std::boxed::Box<dyn std::fmt::Display>; // in scope 0 at $DIR/lifetimes.rs:+10:20: +10:23
|
let _22: &std::boxed::Box<dyn std::fmt::Display>; // in scope 0 at $DIR/lifetimes.rs:+10:20: +10:23
|
||||||
let mut _23: core::fmt::ArgumentV1<'_>; // in scope 0 at $DIR/lifetimes.rs:+10:24: +10:27
|
let mut _23: core::fmt::rt::Argument<'_>; // in scope 0 at $DIR/lifetimes.rs:+10:24: +10:27
|
||||||
let mut _24: &u32; // in scope 0 at $DIR/lifetimes.rs:+10:24: +10:27
|
let mut _24: &u32; // in scope 0 at $DIR/lifetimes.rs:+10:24: +10:27
|
||||||
let _25: &u32; // in scope 0 at $DIR/lifetimes.rs:+10:24: +10:27
|
let _25: &u32; // in scope 0 at $DIR/lifetimes.rs:+10:24: +10:27
|
||||||
let mut _27: bool; // in scope 0 at $DIR/lifetimes.rs:+12:1: +12:2
|
let mut _27: bool; // in scope 0 at $DIR/lifetimes.rs:+12:1: +12:2
|
||||||
|
@ -113,11 +113,11 @@
|
||||||
StorageLive(_22); // scope 4 at $DIR/lifetimes.rs:+10:20: +10:23
|
StorageLive(_22); // scope 4 at $DIR/lifetimes.rs:+10:20: +10:23
|
||||||
_22 = &_8; // scope 4 at $DIR/lifetimes.rs:+10:20: +10:23
|
_22 = &_8; // scope 4 at $DIR/lifetimes.rs:+10:20: +10:23
|
||||||
_21 = &(*_22); // scope 4 at $DIR/lifetimes.rs:+10:20: +10:23
|
_21 = &(*_22); // scope 4 at $DIR/lifetimes.rs:+10:20: +10:23
|
||||||
_20 = core::fmt::ArgumentV1::<'_>::new_display::<Box<dyn std::fmt::Display>>(move _21) -> [return: bb3, unwind unreachable]; // scope 4 at $DIR/lifetimes.rs:+10:20: +10:23
|
_20 = core::fmt::rt::Argument::<'_>::new_display::<Box<dyn std::fmt::Display>>(move _21) -> [return: bb3, unwind unreachable]; // scope 4 at $DIR/lifetimes.rs:+10:20: +10:23
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
// + span: $DIR/lifetimes.rs:27:20: 27:23
|
// + span: $DIR/lifetimes.rs:27:20: 27:23
|
||||||
// + user_ty: UserType(4)
|
// + user_ty: UserType(4)
|
||||||
// + literal: Const { ty: for<'b> fn(&'b Box<dyn std::fmt::Display>) -> core::fmt::ArgumentV1<'b> {core::fmt::ArgumentV1::<'_>::new_display::<Box<dyn std::fmt::Display>>}, val: Value(<ZST>) }
|
// + literal: Const { ty: for<'b> fn(&'b Box<dyn std::fmt::Display>) -> core::fmt::rt::Argument<'b> {core::fmt::rt::Argument::<'_>::new_display::<Box<dyn std::fmt::Display>>}, val: Value(<ZST>) }
|
||||||
}
|
}
|
||||||
|
|
||||||
bb3: {
|
bb3: {
|
||||||
|
@ -127,11 +127,11 @@
|
||||||
StorageLive(_25); // scope 4 at $DIR/lifetimes.rs:+10:24: +10:27
|
StorageLive(_25); // scope 4 at $DIR/lifetimes.rs:+10:24: +10:27
|
||||||
_25 = &_6; // scope 4 at $DIR/lifetimes.rs:+10:24: +10:27
|
_25 = &_6; // scope 4 at $DIR/lifetimes.rs:+10:24: +10:27
|
||||||
_24 = &(*_25); // scope 4 at $DIR/lifetimes.rs:+10:24: +10:27
|
_24 = &(*_25); // scope 4 at $DIR/lifetimes.rs:+10:24: +10:27
|
||||||
_23 = core::fmt::ArgumentV1::<'_>::new_display::<u32>(move _24) -> [return: bb4, unwind unreachable]; // scope 4 at $DIR/lifetimes.rs:+10:24: +10:27
|
_23 = core::fmt::rt::Argument::<'_>::new_display::<u32>(move _24) -> [return: bb4, unwind unreachable]; // scope 4 at $DIR/lifetimes.rs:+10:24: +10:27
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
// + span: $DIR/lifetimes.rs:27:24: 27:27
|
// + span: $DIR/lifetimes.rs:27:24: 27:27
|
||||||
// + user_ty: UserType(5)
|
// + user_ty: UserType(5)
|
||||||
// + literal: Const { ty: for<'b> fn(&'b u32) -> core::fmt::ArgumentV1<'b> {core::fmt::ArgumentV1::<'_>::new_display::<u32>}, val: Value(<ZST>) }
|
// + literal: Const { ty: for<'b> fn(&'b u32) -> core::fmt::rt::Argument<'b> {core::fmt::rt::Argument::<'_>::new_display::<u32>}, val: Value(<ZST>) }
|
||||||
}
|
}
|
||||||
|
|
||||||
bb4: {
|
bb4: {
|
||||||
|
@ -141,13 +141,13 @@
|
||||||
StorageDead(_20); // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
StorageDead(_20); // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
_18 = &_19; // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
_18 = &_19; // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
_17 = &(*_18); // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
_17 = &(*_18); // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
_16 = move _17 as &[core::fmt::ArgumentV1<'_>] (Pointer(Unsize)); // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
_16 = move _17 as &[core::fmt::rt::Argument<'_>] (Pointer(Unsize)); // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
StorageDead(_17); // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
StorageDead(_17); // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
_11 = Arguments::<'_>::new_v1(move _12, move _16) -> [return: bb5, unwind unreachable]; // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
_11 = Arguments::<'_>::new_v1(move _12, move _16) -> [return: bb5, unwind unreachable]; // scope 4 at $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
// mir::Constant
|
// mir::Constant
|
||||||
// + span: $SRC_DIR/std/src/macros.rs:LL:COL
|
// + span: $SRC_DIR/std/src/macros.rs:LL:COL
|
||||||
// + user_ty: UserType(3)
|
// + user_ty: UserType(3)
|
||||||
// + literal: Const { ty: fn(&[&'static str], &[core::fmt::ArgumentV1<'_>]) -> Arguments<'_> {Arguments::<'_>::new_v1}, val: Value(<ZST>) }
|
// + literal: Const { ty: fn(&[&'static str], &[core::fmt::rt::Argument<'_>]) -> Arguments<'_> {Arguments::<'_>::new_v1}, val: Value(<ZST>) }
|
||||||
}
|
}
|
||||||
|
|
||||||
bb5: {
|
bb5: {
|
||||||
|
|
|
@ -307,7 +307,7 @@ LL | println!("{} {:.*} {}", 1, 3.2, 4);
|
||||||
= note: expected reference `&usize`
|
= note: expected reference `&usize`
|
||||||
found reference `&{float}`
|
found reference `&{float}`
|
||||||
note: associated function defined here
|
note: associated function defined here
|
||||||
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
|
||||||
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error[E0308]: mismatched types
|
error[E0308]: mismatched types
|
||||||
|
@ -321,7 +321,7 @@ LL | println!("{} {:07$.*} {}", 1, 3.2, 4);
|
||||||
= note: expected reference `&usize`
|
= note: expected reference `&usize`
|
||||||
found reference `&{float}`
|
found reference `&{float}`
|
||||||
note: associated function defined here
|
note: associated function defined here
|
||||||
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
|
||||||
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to 38 previous errors
|
error: aborting due to 38 previous errors
|
||||||
|
|
|
@ -17,9 +17,9 @@ LL | format!("{:X}", "3");
|
||||||
NonZeroIsize
|
NonZeroIsize
|
||||||
and 21 others
|
and 21 others
|
||||||
= note: required for `&str` to implement `UpperHex`
|
= note: required for `&str` to implement `UpperHex`
|
||||||
note: required by a bound in `core::fmt::ArgumentV1::<'a>::new_upper_hex`
|
note: required by a bound in `core::fmt::rt::Argument::<'a>::new_upper_hex`
|
||||||
--> $SRC_DIR/core/src/fmt/mod.rs:LL:COL
|
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
|
||||||
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `arg_new` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely
|
error[E0277]: `core::fmt::rt::Opaque` cannot be shared between threads safely
|
||||||
--> $DIR/send-sync.rs:8:10
|
--> $DIR/send-sync.rs:8:10
|
||||||
|
|
|
|
||||||
LL | send(format_args!("{:?}", c));
|
LL | send(format_args!("{:?}", c));
|
||||||
| ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::Opaque` cannot be shared between threads safely
|
| ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::rt::Opaque` cannot be shared between threads safely
|
||||||
| |
|
| |
|
||||||
| required by a bound introduced by this call
|
| required by a bound introduced by this call
|
||||||
|
|
|
|
||||||
= help: within `[core::fmt::ArgumentV1<'_>]`, the trait `Sync` is not implemented for `core::fmt::Opaque`
|
= help: within `[core::fmt::rt::Argument<'_>]`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque`
|
||||||
= note: required because it appears within the type `&core::fmt::Opaque`
|
= note: required because it appears within the type `&core::fmt::rt::Opaque`
|
||||||
= note: required because it appears within the type `ArgumentV1<'_>`
|
= note: required because it appears within the type `Argument<'_>`
|
||||||
= note: required because it appears within the type `[ArgumentV1<'_>]`
|
= note: required because it appears within the type `[Argument<'_>]`
|
||||||
= note: required for `&[core::fmt::ArgumentV1<'_>]` to implement `Send`
|
= note: required for `&[core::fmt::rt::Argument<'_>]` to implement `Send`
|
||||||
= note: required because it appears within the type `Arguments<'_>`
|
= note: required because it appears within the type `Arguments<'_>`
|
||||||
note: required by a bound in `send`
|
note: required by a bound in `send`
|
||||||
--> $DIR/send-sync.rs:1:12
|
--> $DIR/send-sync.rs:1:12
|
||||||
|
@ -18,19 +18,19 @@ note: required by a bound in `send`
|
||||||
LL | fn send<T: Send>(_: T) {}
|
LL | fn send<T: Send>(_: T) {}
|
||||||
| ^^^^ required by this bound in `send`
|
| ^^^^ required by this bound in `send`
|
||||||
|
|
||||||
error[E0277]: `core::fmt::Opaque` cannot be shared between threads safely
|
error[E0277]: `core::fmt::rt::Opaque` cannot be shared between threads safely
|
||||||
--> $DIR/send-sync.rs:9:10
|
--> $DIR/send-sync.rs:9:10
|
||||||
|
|
|
|
||||||
LL | sync(format_args!("{:?}", c));
|
LL | sync(format_args!("{:?}", c));
|
||||||
| ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::Opaque` cannot be shared between threads safely
|
| ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::rt::Opaque` cannot be shared between threads safely
|
||||||
| |
|
| |
|
||||||
| required by a bound introduced by this call
|
| required by a bound introduced by this call
|
||||||
|
|
|
|
||||||
= help: within `Arguments<'_>`, the trait `Sync` is not implemented for `core::fmt::Opaque`
|
= help: within `Arguments<'_>`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque`
|
||||||
= note: required because it appears within the type `&core::fmt::Opaque`
|
= note: required because it appears within the type `&core::fmt::rt::Opaque`
|
||||||
= note: required because it appears within the type `ArgumentV1<'_>`
|
= note: required because it appears within the type `Argument<'_>`
|
||||||
= note: required because it appears within the type `[ArgumentV1<'_>]`
|
= note: required because it appears within the type `[Argument<'_>]`
|
||||||
= note: required because it appears within the type `&[ArgumentV1<'_>]`
|
= note: required because it appears within the type `&[Argument<'_>]`
|
||||||
= note: required because it appears within the type `Arguments<'_>`
|
= note: required because it appears within the type `Arguments<'_>`
|
||||||
note: required by a bound in `sync`
|
note: required by a bound in `sync`
|
||||||
--> $DIR/send-sync.rs:2:12
|
--> $DIR/send-sync.rs:2:12
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue