You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove 'this error originates in format_args_nl' from test output.
This message is no longer generated.
This is probably a good thing. The relevant span is entirely in user
code, and "format_args_nl" is an implementation detail with a name that
isn't even public.
| ----- binding initialized here in some conditions
9
9
LL | println!("{}", i);
10
10
| ^ `i` used here but it is possibly-uninitialized
11
-
|
12
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/borrowck-break-uninit-2.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@ LL | let x: isize;
7
7
LL | println!("{}", x);
8
8
| ^ `x` used here but it isn't initialized
9
9
|
10
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/borrowck-break-uninit.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@ LL | let x: isize;
7
7
LL | println!("{}", x);
8
8
| ^ `x` used here but it isn't initialized
9
9
|
10
-
= 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)
| ----- binding initialized here in some conditions
9
9
LL | println!("{}", i);
10
10
| ^ `i` used here but it is possibly-uninitialized
11
-
|
12
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/borrowck-while-break.stderr
-2
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,6 @@ LL | while cond {
8
8
...
9
9
LL | println!("{}", v);
10
10
| ^ `v` used here but it is possibly-uninitialized
11
-
|
12
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/issue-24267-flow-exit.stderr
-2
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@ LL | loop { x = break; }
7
7
LL | println!("{}", x);
8
8
| ^ `x` used here but it isn't initialized
9
9
|
10
-
= 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)
11
10
help: consider assigning a value
12
11
|
13
12
LL | let x: i32 = 42;
@@ -22,7 +21,6 @@ LL | for _ in 0..10 { x = continue; }
22
21
LL | println!("{}", x);
23
22
| ^ `x` used here but it isn't initialized
24
23
|
25
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/issue-47646.stderr
-2
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,6 @@ LL | println!("{:?}", heap);
12
12
...
13
13
LL | };
14
14
| - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `(Option<PeekMut<'_, i32>>, ())`
15
-
|
16
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/borrowck/suggest-assign-rvalue.stderr
-10
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ LL | let my_float: f32;
19
19
LL | println!("my_float: {}", my_float);
20
20
| ^^^^^^^^ `my_float` used here but it isn't initialized
21
21
|
22
-
= 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)
23
22
help: consider assigning a value
24
23
|
25
24
LL | let my_float: f32 = 3.14159;
@@ -33,7 +32,6 @@ LL | let demo: Demo;
33
32
LL | println!("demo: {:?}", demo);
34
33
| ^^^^ `demo` used here but it isn't initialized
35
34
|
36
-
= 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)
37
35
help: consider assigning a value
38
36
|
39
37
LL | let demo: Demo = Default::default();
@@ -47,7 +45,6 @@ LL | let demo_no: DemoNoDef;
47
45
LL | println!("demo_no: {:?}", demo_no);
48
46
| ^^^^^^^ `demo_no` used here but it isn't initialized
49
47
|
50
-
= 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)
51
48
help: consider assigning a value
52
49
|
53
50
LL | let demo_no: DemoNoDef = /* value */;
@@ -61,7 +58,6 @@ LL | let arr: [i32; 5];
61
58
LL | println!("arr: {:?}", arr);
62
59
| ^^^ `arr` used here but it isn't initialized
63
60
|
64
-
= 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)
65
61
help: consider assigning a value
66
62
|
67
63
LL | let arr: [i32; 5] = [42; 5];
@@ -75,7 +71,6 @@ LL | let foo: Vec<&str>;
75
71
LL | println!("foo: {:?}", foo);
76
72
| ^^^ `foo` used here but it isn't initialized
77
73
|
78
-
= 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)
79
74
help: consider assigning a value
80
75
|
81
76
LL | let foo: Vec<&str> = vec![];
@@ -89,7 +84,6 @@ LL | let my_string: String;
89
84
LL | println!("my_string: {}", my_string);
90
85
| ^^^^^^^^^ `my_string` used here but it isn't initialized
91
86
|
92
-
= 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)
93
87
help: consider assigning a value
94
88
|
95
89
LL | let my_string: String = Default::default();
@@ -103,7 +97,6 @@ LL | let my_int: &i32;
103
97
LL | println!("my_int: {}", *my_int);
104
98
| ^^^^^^^ `*my_int` used here but it isn't initialized
105
99
|
106
-
= 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)
107
100
help: consider assigning a value
108
101
|
109
102
LL | let my_int: &i32 = &42;
@@ -117,7 +110,6 @@ LL | let hello: &str;
117
110
LL | println!("hello: {}", hello);
118
111
| ^^^^^ `hello` used here but it isn't initialized
119
112
|
120
-
= 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)
121
113
help: consider assigning a value
122
114
|
123
115
LL | let hello: &str = "";
@@ -130,8 +122,6 @@ LL | let never: !;
130
122
| ----- binding declared here but left uninitialized
131
123
LL | println!("never: {}", never);
132
124
| ^^^^^ `never` used here but it isn't initialized
133
-
|
134
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/closures/2229_closure_analysis/diagnostics/arrays.stderr
-2
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,6 @@ LL | println!("{}", arr[3]);
53
53
...
54
54
LL | c();
55
55
| - mutable borrow later used here
56
-
|
57
-
= 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)
58
56
59
57
error[E0502]: cannot borrow `arr` as immutable because it is also borrowed as mutable
Copy file name to clipboardExpand all lines: tests/ui/closures/2229_closure_analysis/diagnostics/box.stderr
-2
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,6 @@ LL | println!("{}", e.0.0.m.x);
25
25
LL |
26
26
LL | c();
27
27
| - mutable borrow later used here
28
-
|
29
-
= 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)
30
28
31
29
error[E0506]: cannot assign to `e.0.0.m.x` because it is borrowed
Copy file name to clipboardExpand all lines: tests/ui/closures/2229_closure_analysis/diagnostics/repr_packed.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@ LL | println!("{}", foo.x);
7
7
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
8
8
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
9
9
= 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)
10
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/closures/2229_closure_analysis/diagnostics/simple-struct-min-capture.stderr
-2
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,6 @@ LL | println!("{:?}", p);
13
13
LL |
14
14
LL | c();
15
15
| - mutable borrow later used here
16
-
|
17
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/closures/issue-111932.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ LL | println!("{:?}", foo);
19
19
= help: the trait `Sized` is not implemented for `dyn Foo`
20
20
note: required by an implicit `Sized` bound in `core::fmt::rt::Argument::<'_>::new_debug`
21
21
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
22
-
= 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)
15
14
help: you can `clone` the value and consume it, but this might not be your desired behavior
= note: this note 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)
27
+
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
36
-
= note: this note 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)
Copy file name to clipboardExpand all lines: tests/ui/coroutine/yield-while-ref-reborrowed.stderr
-2
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,6 @@ LL | println!("{}", x);
10
10
| ^ second borrow occurs here
11
11
LL | Pin::new(&mut b).resume(());
12
12
| ------ first borrow later used here
13
-
|
14
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/fmt/ifmt-unimpl.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ LL | format!("{:X}", "3");
19
19
= note: required for `&str` to implement `UpperHex`
20
20
note: required by a bound in `core::fmt::rt::Argument::<'_>::new_upper_hex`
21
21
--> $SRC_DIR/core/src/fmt/rt.rs:LL:COL
22
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/inference/need_type_info/issue-107745-avoid-expr-from-macro-expansion.stderr
-2
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,6 @@ error[E0282]: type annotations needed
3
3
|
4
4
LL | println!("{:?}", []);
5
5
| ^^ cannot infer type
6
-
|
7
-
= 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)
Copy file name to clipboardExpand all lines: tests/ui/issues/issue-42796.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ LL | let mut s_copy = s;
9
9
LL | println!("{}", s);
10
10
| ^ value borrowed here after move
11
11
|
12
-
= 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)
13
12
help: consider cloning the value if the performance cost is acceptable
Copy file name to clipboardExpand all lines: tests/ui/liveness/liveness-move-in-while.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,6 @@ LL | while true { while true { while true { x = y; x.clone(); } } }
35
35
| | inside of this loop
36
36
| inside of this loop
37
37
|
38
-
= 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)
39
38
help: consider cloning the value if the performance cost is acceptable
40
39
|
41
40
LL | while true { while true { while true { x = y.clone(); x.clone(); } } }
Copy file name to clipboardExpand all lines: tests/ui/liveness/liveness-use-after-move.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ LL |
9
9
LL | println!("{}", *x);
10
10
| ^^ value borrowed here after move
11
11
|
12
-
= 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)
13
12
help: consider cloning the value if the performance cost is acceptable
| ---- in this function ^ this parameter takes ownership of the value
16
-
= 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)
17
16
help: consider cloning the value if the performance cost is acceptable
Copy file name to clipboardExpand all lines: tests/ui/loops/loop-proper-liveness.stderr
-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,6 @@ LL | let x: i32;
7
7
LL | println!("{:?}", x);
8
8
| ^ `x` used here but it isn't initialized
9
9
|
10
-
= 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)
= help: the trait `Debug` is not implemented for `Dummy`
8
8
= note: add `#[derive(Debug)]` to `Dummy` or manually `impl Debug for Dummy`
9
-
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
9
+
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
10
10
help: consider annotating `Dummy` with `#[derive(Debug)]`
Copy file name to clipboardExpand all lines: tests/ui/moves/moves-based-on-type-capture-clause-bad.stderr
-2
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,6 @@ LL | println!("{}", x);
10
10
LL | });
11
11
LL | println!("{}", x);
12
12
| ^ value borrowed here after move
13
-
|
14
-
= 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)
= help: the trait `Debug` is not implemented for `NotDebug`
8
8
= note: add `#[derive(Debug)]` to `NotDebug` or manually `impl Debug for NotDebug`
9
-
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
9
+
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
10
10
help: consider annotating `NotDebug` with `#[derive(Debug)]`
= 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)
0 commit comments