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
Auto merge of rust-lang#86821 - cuviper:beta-next, r=Mark-Simulacrum
[beta] backports
- rustfmt: load nested out-of-line mods correctly rust-lang#86424
- Re-add support for parsing (and pretty-printing) inner-attributes in match body rust-lang#85193
- Revert "List trait impls before methods from deref in the sidebar ..." rust-lang#86564
- Revert "Don't load all extern crates unconditionally" rust-lang#85749
r? `@Mark-Simulacrum`
Copy file name to clipboardExpand all lines: src/test/ui/parser/stmt_expr_attrs_placement.stderr
+1-9
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,6 @@ LL | let f = [#![allow(warnings)] 1; 0];
46
46
|
47
47
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
48
48
49
-
error: an inner attribute is not permitted in this context
50
-
--> $DIR/stmt_expr_attrs_placement.rs:32:26
51
-
|
52
-
LL | let g = match true { #![allow(warnings)] _ => {} };
53
-
| ^^^^^^^^^^^^^^^^^^^
54
-
|
55
-
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
56
-
57
49
error: an inner attribute is not permitted in this context
58
50
--> $DIR/stmt_expr_attrs_placement.rs:36:24
59
51
|
@@ -62,5 +54,5 @@ LL | let h = MyStruct { #![allow(warnings)] field: 0 };
62
54
|
63
55
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them.
0 commit comments