Skip to content

Commit 2787cb2

Browse files
committed
Fix failing UI tests
1 parent fc9bfd6 commit 2787cb2

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error: an inner attribute is not permitted in this context
2-
--> $DIR/issue-45296.rs:4:7
2+
--> $DIR/issue-45296.rs:4:5
33
|
44
LL | #![allow(unused_variables)]
5-
| ^
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= 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.
88

src/test/ui/parser/inner-attr-after-doc-comment.stderr

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
error: an inner attribute is not permitted following an outer doc comment
2-
--> $DIR/inner-attr-after-doc-comment.rs:6:3
2+
--> $DIR/inner-attr-after-doc-comment.rs:6:1
33
|
4-
LL | #![recursion_limit="100"]
5-
| ^
4+
LL | / /**
5+
LL | | * My module
6+
LL | | */
7+
| |___- previous doc comment
8+
LL |
9+
LL | #![recursion_limit="100"]
10+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attibute
611
|
712
= 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.
813

0 commit comments

Comments
 (0)