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
-1Lines changed: 0 additions & 1 deletion
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
-1Lines changed: 0 additions & 1 deletion
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
-2Lines changed: 0 additions & 2 deletions
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
-2Lines changed: 0 additions & 2 deletions
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
-2Lines changed: 0 additions & 2 deletions
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
-10Lines changed: 0 additions & 10 deletions
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
-2Lines changed: 0 additions & 2 deletions
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
-2Lines changed: 0 additions & 2 deletions
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
0 commit comments