Skip to content

Commit 9ca8198

Browse files
committed
review comment
1 parent d7b9a26 commit 9ca8198

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_ast/src/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ impl StmtKind {
12551255
StmtKind::Expr(_) => "expression",
12561256
StmtKind::Semi(_) => "statement",
12571257
StmtKind::Empty => "semicolon",
1258-
StmtKind::MacCall(_) => "macro",
1258+
StmtKind::MacCall(_) => "macro call",
12591259
}
12601260
}
12611261
}

tests/ui/parser/macro/macro-in-attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
#[deprecated(note = concat!("a", "b"))]
55
struct X;
66
//~^^ ERROR: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found
7-
//~| NOTE: macros are not allowed here
7+
//~| NOTE: macro calls are not allowed here
88

99
fn main() {}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found macro
1+
error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found macro call
22
--> $DIR/macro-in-attribute.rs:4:21
33
|
44
LL | #[deprecated(note = concat!("a", "b"))]
5-
| ^^^^^^^^^^^^^^^^^ macros are not allowed here
5+
| ^^^^^^^^^^^^^^^^^ macro calls are not allowed here
66

77
error: aborting due to 1 previous error
88

0 commit comments

Comments
 (0)