Skip to content

Commit 054346b

Browse files
committed
Rename format_args_nl! to format_args_ln! for consistency
This provides consistency with `writeln!` and `println!` and `eprintln!`.
1 parent 43874a2 commit 054346b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+72
-71
lines changed

compiler/rustc_builtin_macros/src/format.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ pub fn expand_format_args<'cx>(
959959
expand_format_args_impl(ecx, sp, tts, false)
960960
}
961961

962-
pub fn expand_format_args_nl<'cx>(
962+
pub fn expand_format_args_ln<'cx>(
963963
ecx: &'cx mut ExtCtxt<'_>,
964964
sp: Span,
965965
tts: TokenStream,

compiler/rustc_builtin_macros/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn register_builtin_macros(resolver: &mut dyn ResolverExpand) {
7272
concat: concat::expand_concat,
7373
env: env::expand_env,
7474
file: source_util::expand_file,
75-
format_args_nl: format::expand_format_args_nl,
75+
format_args_ln: format::expand_format_args_ln,
7676
format_args: format::expand_format_args,
7777
const_format_args: format::expand_format_args,
7878
global_asm: asm::expand_global_asm,

compiler/rustc_span/src/symbol.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ symbols! {
703703
format,
704704
format_args,
705705
format_args_capture,
706+
format_args_ln,
706707
format_args_macro,
707-
format_args_nl,
708708
format_macro,
709709
fp,
710710
freeze,

library/core/src/macros/mod.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -549,13 +549,13 @@ macro_rules! write {
549549
#[macro_export]
550550
#[stable(feature = "rust1", since = "1.0.0")]
551551
#[cfg_attr(not(test), rustc_diagnostic_item = "writeln_macro")]
552-
#[allow_internal_unstable(format_args_nl)]
552+
#[allow_internal_unstable(format_args_ln)]
553553
macro_rules! writeln {
554554
($dst:expr $(,)?) => {
555555
$crate::write!($dst, "\n")
556556
};
557557
($dst:expr, $($arg:tt)*) => {{
558-
let result = $dst.write_fmt($crate::format_args_nl!($($arg)*));
558+
let result = $dst.write_fmt($crate::format_args_ln!($($arg)*));
559559
result
560560
}};
561561
}
@@ -897,15 +897,16 @@ pub(crate) mod builtin {
897897

898898
/// Same as [`format_args`], but adds a newline in the end.
899899
#[unstable(
900-
feature = "format_args_nl",
900+
feature = "format_args_ln",
901901
issue = "none",
902-
reason = "`format_args_nl` is only for internal \
902+
reason = "`format_args_ln` is only for internal \
903903
language use and is subject to change"
904904
)]
905905
#[allow_internal_unstable(fmt_internals)]
906-
#[rustc_builtin_macro]
906+
#[cfg_attr(bootstrap, rustc_builtin_macro(format_args_nl))]
907+
#[cfg_attr(not(bootstrap), rustc_builtin_macro)]
907908
#[macro_export]
908-
macro_rules! format_args_nl {
909+
macro_rules! format_args_ln {
909910
($fmt:expr) => {{ /* compiler built-in */ }};
910911
($fmt:expr, $($args:tt)*) => {{ /* compiler built-in */ }};
911912
}

library/core/src/prelude/v1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub use crate::hash::macros::Hash;
5656
#[doc(no_inline)]
5757
pub use crate::{
5858
assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
59-
format_args_nl, include, include_bytes, include_str, line, log_syntax, module_path, option_env,
59+
format_args_ln, include, include_bytes, include_str, line, log_syntax, module_path, option_env,
6060
stringify, trace_macros,
6161
};
6262

library/std/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
#![feature(core_panic)]
319319
#![feature(custom_test_frameworks)]
320320
#![feature(edition_panic)]
321-
#![feature(format_args_nl)]
321+
#![feature(format_args_ln)]
322322
#![feature(log_syntax)]
323323
#![feature(once_cell)]
324324
#![feature(saturating_int_impl)]
@@ -593,7 +593,7 @@ pub use core::{
593593
#[allow(deprecated)]
594594
pub use core::{
595595
assert, assert_matches, cfg, column, compile_error, concat, concat_idents, const_format_args,
596-
env, file, format_args, format_args_nl, include, include_bytes, include_str, line, log_syntax,
596+
env, file, format_args, format_args_ln, include, include_bytes, include_str, line, log_syntax,
597597
module_path, option_env, stringify, trace_macros,
598598
};
599599

library/std/src/macros.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ macro_rules! print {
9797
#[macro_export]
9898
#[stable(feature = "rust1", since = "1.0.0")]
9999
#[cfg_attr(not(test), rustc_diagnostic_item = "println_macro")]
100-
#[allow_internal_unstable(print_internals, format_args_nl)]
100+
#[allow_internal_unstable(print_internals, format_args_ln)]
101101
macro_rules! println {
102102
() => {
103103
$crate::print!("\n")
104104
};
105105
($($arg:tt)*) => {{
106-
$crate::io::_print($crate::format_args_nl!($($arg)*));
106+
$crate::io::_print($crate::format_args_ln!($($arg)*));
107107
}};
108108
}
109109

@@ -163,13 +163,13 @@ macro_rules! eprint {
163163
#[macro_export]
164164
#[stable(feature = "eprint", since = "1.19.0")]
165165
#[cfg_attr(not(test), rustc_diagnostic_item = "eprintln_macro")]
166-
#[allow_internal_unstable(print_internals, format_args_nl)]
166+
#[allow_internal_unstable(print_internals, format_args_ln)]
167167
macro_rules! eprintln {
168168
() => {
169169
$crate::eprint!("\n")
170170
};
171171
($($arg:tt)*) => {{
172-
$crate::io::_eprint($crate::format_args_nl!($($arg)*));
172+
$crate::io::_eprint($crate::format_args_ln!($($arg)*));
173173
}};
174174
}
175175

library/std/src/prelude/v1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub use crate::result::Result::{self, Err, Ok};
4040
#[doc(no_inline)]
4141
pub use core::prelude::v1::{
4242
assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
43-
format_args_nl, include, include_bytes, include_str, line, log_syntax, module_path, option_env,
43+
format_args_ln, include, include_bytes, include_str, line, log_syntax, module_path, option_env,
4444
stringify, trace_macros, Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd,
4545
};
4646

src/test/ui/borrowck/borrowck-and-init.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0381]: borrow of possibly-uninitialized variable: `i`
44
LL | println!("{}", i);
55
| ^ use of possibly-uninitialized `i`
66
|
7-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
7+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error: aborting due to previous error
1010

src/test/ui/borrowck/borrowck-break-uninit-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0381]: borrow of possibly-uninitialized variable: `x`
44
LL | println!("{}", x);
55
| ^ use of possibly-uninitialized `x`
66
|
7-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
7+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error: aborting due to previous error
1010

src/test/ui/borrowck/borrowck-break-uninit.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0381]: borrow of possibly-uninitialized variable: `x`
44
LL | println!("{}", x);
55
| ^ use of possibly-uninitialized `x`
66
|
7-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
7+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error: aborting due to previous error
1010

src/test/ui/borrowck/borrowck-or-init.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0381]: borrow of possibly-uninitialized variable: `i`
44
LL | println!("{}", i);
55
| ^ use of possibly-uninitialized `i`
66
|
7-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
7+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error: aborting due to previous error
1010

src/test/ui/borrowck/borrowck-while-break.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0381]: borrow of possibly-uninitialized variable: `v`
44
LL | println!("{}", v);
55
| ^ use of possibly-uninitialized `v`
66
|
7-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
7+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error: aborting due to previous error
1010

src/test/ui/borrowck/issue-24267-flow-exit.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ error[E0381]: borrow of possibly-uninitialized variable: `x`
44
LL | println!("{}", x);
55
| ^ use of possibly-uninitialized `x`
66
|
7-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
7+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
88

99
error[E0381]: borrow of possibly-uninitialized variable: `x`
1010
--> $DIR/issue-24267-flow-exit.rs:18:20
1111
|
1212
LL | println!("{}", x);
1313
| ^ use of possibly-uninitialized `x`
1414
|
15-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
15+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
1616

1717
error: aborting due to 2 previous errors
1818

src/test/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ LL | println!("{}", arr[3]);
8282
LL | c();
8383
| - mutable borrow later used here
8484
|
85-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
85+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
8686

8787
error[E0502]: cannot borrow `arr` as immutable because it is also borrowed as mutable
8888
--> $DIR/arrays.rs:73:24

src/test/ui/closures/2229_closure_analysis/diagnostics/box.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ LL |
2626
LL | c();
2727
| - mutable borrow later used here
2828
|
29-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
29+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
3030

3131
error[E0506]: cannot assign to `e.0.0.m.x` because it is borrowed
3232
--> $DIR/box.rs:55:5

src/test/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | println!("{}", foo.x);
99
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
1010
= note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
1111
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
12-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
12+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
1313

1414
error: aborting due to previous error
1515

@@ -25,5 +25,5 @@ LL | println!("{}", foo.x);
2525
= note: for more information, see issue #82523 <https://github.com/rust-lang/rust/issues/82523>
2626
= note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
2727
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
28-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
28+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
2929

src/test/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ LL |
1414
LL | c();
1515
| - mutable borrow later used here
1616
|
17-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
17+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
1818

1919
error: aborting due to previous error
2020

src/test/ui/codemap_tests/tab_3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ note: this function takes ownership of the receiver `self`, which moves `some_ve
1414
|
1515
LL | fn into_iter(self) -> Self::IntoIter;
1616
| ^^^^
17-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
17+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
1818

1919
error: aborting due to previous error
2020

src/test/ui/consts/const-eval/conditional_array_execution.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ LL | println!("{}", FOO);
2828
|
2929
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
3030
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
31-
= note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
31+
= note: this warning originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
3232

3333
error: aborting due to previous error; 2 warnings emitted
3434

src/test/ui/consts/const-eval/issue-43197.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ LL | println!("{} {}", X, Y);
3939
|
4040
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
4141
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
42-
= note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
42+
= note: this warning originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
4343

4444
error[E0080]: evaluation of constant value failed
4545
--> $DIR/issue-43197.rs:16:26
@@ -55,7 +55,7 @@ LL | println!("{} {}", X, Y);
5555
|
5656
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
5757
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
58-
= note: this warning originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
58+
= note: this warning originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
5959

6060
error: aborting due to 2 previous errors; 4 warnings emitted
6161

Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
fn main() {
2-
format_args_nl!(""); //~ ERROR `format_args_nl` is only for internal language use
2+
format_args_ln!(""); //~ ERROR `format_args_ln` is only for internal language use
33
}

src/test/ui/feature-gates/feature-gate-format_args_nl.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error[E0658]: use of unstable library feature 'format_args_nl': `format_args_nl` is only for internal language use and is subject to change
1+
error[E0658]: use of unstable library feature 'format_args_ln': `format_args_ln` is only for internal language use and is subject to change
22
--> $DIR/feature-gate-format_args_nl.rs:2:5
33
|
4-
LL | format_args_nl!("");
4+
LL | format_args_ln!("");
55
| ^^^^^^^^^^^^^^
66
|
7-
= help: add `#![feature(format_args_nl)]` to the crate attributes to enable
7+
= help: add `#![feature(format_args_ln)]` to the crate attributes to enable
88

99
error: aborting due to previous error
1010

src/test/ui/fmt/ifmt-bad-arg.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ note: associated function defined here
308308
|
309309
LL | pub fn from_usize(x: &usize) -> ArgumentV1<'_> {
310310
| ^^^^^^^^^^
311-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
311+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
312312

313313
error[E0308]: mismatched types
314314
--> $DIR/ifmt-bad-arg.rs:81:35
@@ -326,7 +326,7 @@ note: associated function defined here
326326
|
327327
LL | pub fn from_usize(x: &usize) -> ArgumentV1<'_> {
328328
| ^^^^^^^^^^
329-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
329+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
330330

331331
error: aborting due to 36 previous errors
332332

src/test/ui/generator/yield-while-ref-reborrowed.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LL | println!("{}", x);
1111
LL | Pin::new(&mut b).resume(());
1212
| ------ first borrow later used here
1313
|
14-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
14+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
1515

1616
error: aborting due to previous error
1717

src/test/ui/hygiene/format-args.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// check-pass
22

33
#![allow(non_upper_case_globals)]
4-
#![feature(format_args_nl)]
4+
#![feature(format_args_ln)]
55

66
static arg0: () = ();
77

88
fn main() {
99
static arg1: () = ();
1010
format_args!("{} {:?}", 0, 1);
11-
format_args_nl!("{} {:?}", 0, 1);
11+
format_args_ln!("{} {:?}", 0, 1);
1212
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | let mut s_copy = s;
99
LL | println!("{}", s);
1010
| ^ value borrowed here after move
1111
|
12-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
12+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
1313

1414
error: aborting due to previous error
1515

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LL | println!("{:?}", heap);
1313
LL | };
1414
| - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `(Option<PeekMut<'_, i32>>, ())`
1515
|
16-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
16+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
1717

1818
error: aborting due to previous error
1919

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0282]: type annotations needed
44
LL | println!("{}", 23u64.test(xs.iter().sum()));
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `T` declared on the associated function `new_display`
66
|
7-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
7+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
88
help: consider specifying the generic argument
99
|
1010
LL | println!("{}", 23u64.test(xs.iter().sum())::<T>);

src/test/ui/limits/issue-55878.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LL | println!("Size: {}", std::mem::size_of::<[u8; u64::MAX as usize]>());
1818
= note: `#[deny(const_err)]` on by default
1919
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2020
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
21-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
21+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
2222

2323
error: aborting due to 2 previous errors
2424

src/test/ui/liveness/liveness-move-in-while.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ LL | println!("{}", y);
2929
LL | while true { while true { while true { x = y; x.clone(); } } }
3030
| - value moved here, in previous iteration of loop
3131
|
32-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
32+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
3333

3434
error: aborting due to previous error; 3 warnings emitted
3535

src/test/ui/liveness/liveness-use-after-move.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL |
99
LL | println!("{}", *x);
1010
| ^^ value borrowed here after move
1111
|
12-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
12+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
1313

1414
error: aborting due to previous error
1515

src/test/ui/liveness/liveness-use-after-send.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | send(ch, message);
88
LL | println!("{}", message);
99
| ^^^^^^^ value borrowed here after move
1010
|
11-
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
11+
= note: this error originates in the macro `$crate::format_args_ln` (in Nightly builds, run with -Z macro-backtrace for more info)
1212

1313
error: aborting due to previous error
1414

0 commit comments

Comments
 (0)