@@ -9,6 +9,7 @@ LL |     println!("{:?}{:?}", { &temp() }, ());
99   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
1010   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
1111   = note: consider using a `let` binding to create a longer lived value
12+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
1213   = note: `#[warn(macro_extended_temporary_scopes)]` (part of `#[warn(future_incompatible)]`) on by default
1314
1415warning: temporary lifetime will be shortened in Rust 1.92
@@ -22,6 +23,7 @@ LL |     println!("{:?}{:?}", (), if cond() { &format!("") } else { "" });
2223   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2324   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
2425   = note: consider using a `let` binding to create a longer lived value
26+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
2527   = note: this warning originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info)
2628
2729warning: temporary lifetime will be shortened in Rust 1.92
@@ -35,6 +37,7 @@ LL |     println!("{:?}{:?}", (), if cond() { &"".to_string() } else { "" });
3537   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3638   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
3739   = note: consider using a `let` binding to create a longer lived value
40+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
3841
3942warning: temporary lifetime will be shortened in Rust 1.92
4043  --> $DIR/macro-extended-temporary-scopes.rs:39:43
@@ -47,6 +50,7 @@ LL |     println!("{:?}{:?}", (), if cond() { &("string".to_owned() + "string")
4750   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4851   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
4952   = note: consider using a `let` binding to create a longer lived value
53+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
5054
5155warning: temporary lifetime will be shortened in Rust 1.92
5256  --> $DIR/macro-extended-temporary-scopes.rs:58:17
6064   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
6165   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
6266   = note: consider using a `let` binding to create a longer lived value
67+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
6368
6469warning: temporary lifetime will be shortened in Rust 1.92
6570  --> $DIR/macro-extended-temporary-scopes.rs:54:14
@@ -73,6 +78,7 @@ LL |         } else {
7378   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
7479   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
7580   = note: consider using a `let` binding to create a longer lived value
81+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
7682
7783warning: temporary lifetime will be shortened in Rust 1.92
7884  --> $DIR/macro-extended-temporary-scopes.rs:50:14
@@ -86,6 +92,7 @@ LL |         } else if cond() {
8692   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8793   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
8894   = note: consider using a `let` binding to create a longer lived value
95+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
8996
9097warning: temporary lifetime will be shortened in Rust 1.92
9198  --> $DIR/macro-extended-temporary-scopes.rs:46:14
@@ -99,6 +106,7 @@ LL |         } else if cond() {
99106   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
100107   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
101108   = note: consider using a `let` binding to create a longer lived value
109+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
102110
103111warning: temporary lifetime will be shortened in Rust 1.92
104112  --> $DIR/macro-extended-temporary-scopes.rs:65:18
@@ -111,6 +119,7 @@ LL |     pin!(pin!({ &temp() }));
111119   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
112120   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
113121   = note: consider using a `let` binding to create a longer lived value
122+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
114123
115124warning: temporary lifetime will be shortened in Rust 1.92
116125  --> $DIR/macro-extended-temporary-scopes.rs:96:13
@@ -123,6 +132,7 @@ LL |     pin!({ &(1 / 0) });
123132   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
124133   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
125134   = note: consider using a `let` binding to create a longer lived value
135+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
126136
127137warning: temporary lifetime will be shortened in Rust 1.92
128138  --> $DIR/macro-extended-temporary-scopes.rs:99:17
@@ -135,6 +145,7 @@ LL |     pin!({ &mut [()] });
135145   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
136146   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
137147   = note: consider using a `let` binding to create a longer lived value
148+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
138149
139150warning: temporary lifetime will be shortened in Rust 1.92
140151  --> $DIR/macro-extended-temporary-scopes.rs:102:13
@@ -147,6 +158,7 @@ LL |     pin!({ &Some(String::new()) });
147158   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
148159   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
149160   = note: consider using a `let` binding to create a longer lived value
161+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
150162
151163warning: temporary lifetime will be shortened in Rust 1.92
152164  --> $DIR/macro-extended-temporary-scopes.rs:105:13
@@ -159,6 +171,7 @@ LL |     pin!({ &(|| ())() });
159171   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
160172   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
161173   = note: consider using a `let` binding to create a longer lived value
174+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
162175
163176warning: temporary lifetime will be shortened in Rust 1.92
164177  --> $DIR/macro-extended-temporary-scopes.rs:108:13
@@ -171,6 +184,7 @@ LL |     pin!({ &|| &local });
171184   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
172185   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
173186   = note: consider using a `let` binding to create a longer lived value
187+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
174188
175189warning: temporary lifetime will be shortened in Rust 1.92
176190  --> $DIR/macro-extended-temporary-scopes.rs:111:13
@@ -183,6 +197,7 @@ LL |     pin!({ &CONST_STRING });
183197   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
184198   = note: for more information, see <https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#macro-extended-temporary-scopes>
185199   = note: consider using a `let` binding to create a longer lived value
200+    = note: some temporaries were previously incorrectly lifetime-extended since Rust 1.89 in formatting macros, and since Rust 1.88 in `pin!()`
186201
187202warning: 15 warnings emitted
188203
0 commit comments