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
Copy file name to clipboardExpand all lines: src/tools/clippy/tests/ui/box_default.fixed
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ fn main() {
36
36
issue_10381();
37
37
38
38
// `Box::<Option<_>>::default()` would be valid here, but not `Box::default()` or
39
-
// `Box::<Option<[closure@...]>::default()`
39
+
// `Box::<Option<{closure@...}>::default()`
40
40
//
41
41
// Would have a suggestion after https://github.com/rust-lang/rust/blob/fdd030127cc68afec44a8d3f6341525dd34e50ae/compiler/rustc_middle/src/ty/diagnostics.rs#L554-L563
Copy file name to clipboardExpand all lines: src/tools/clippy/tests/ui/box_default.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ fn main() {
36
36
issue_10381();
37
37
38
38
// `Box::<Option<_>>::default()` would be valid here, but not `Box::default()` or
39
-
// `Box::<Option<[closure@...]>::default()`
39
+
// `Box::<Option<{closure@...}>::default()`
40
40
//
41
41
// Would have a suggestion after https://github.com/rust-lang/rust/blob/fdd030127cc68afec44a8d3f6341525dd34e50ae/compiler/rustc_middle/src/ty/diagnostics.rs#L554-L563
Copy file name to clipboardExpand all lines: src/tools/miri/tests/fail/both_borrows/aliasing_mut4.tree.stderr
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
error: Undefined Behavior: write access through <TAG> is forbidden
2
2
--> RUSTLIB/core/src/mem/mod.rs:LL:CC
3
3
|
4
-
LL | ptr::write(dest, src);
5
-
| ^^^^^^^^^^^^^^^^^^^^^ write access through <TAG> is forbidden
4
+
= note: write access through <TAG> is forbidden
6
5
|
7
6
= help: this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental
8
7
= help: the accessed tag <TAG> is foreign to the protected tag <TAG> (i.e., it is not a child)
0 commit comments