Skip to content

Commit 7f8abab

Browse files
committed
DO NOT SUBMIT: Switch to deny-by-default for crater
1 parent 428963c commit 7f8abab

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

Diff for: src/librustc/lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ pub mod parser {
356356

357357
declare_lint! {
358358
pub META_VARIABLE_MISUSE,
359-
Allow,
359+
Deny,
360360
"possible meta-variable misuse at macro definition"
361361
}
362362
}

Diff for: src/test/ui/issues/issue-6596-1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
macro_rules! e {
22
($inp:ident) => (
3-
$nonexistent
3+
$nonexistent //~ ERROR unknown macro variable `nonexistent`
44
//~^ ERROR unknown macro variable `nonexistent`
55
);
66
}

Diff for: src/test/ui/issues/issue-6596-1.stderr

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,13 @@ LL | $nonexistent
77
LL | e!(foo);
88
| -------- in this macro invocation
99

10-
error: aborting due to previous error
10+
error: unknown macro variable `nonexistent`
11+
--> $DIR/issue-6596-1.rs:3:9
12+
|
13+
LL | $nonexistent
14+
| ^^^^^^^^^^^^
15+
|
16+
= note: #[deny(meta_variable_misuse)] on by default
17+
18+
error: aborting due to 2 previous errors
1119

Diff for: src/test/ui/issues/issue-6596-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
macro_rules! g {
44
($inp:ident) => (
5-
{ $inp $nonexistent }
5+
{ $inp $nonexistent } //~ ERROR unknown macro variable `nonexistent`
66
//~^ ERROR unknown macro variable `nonexistent`
77
);
88
}

Diff for: src/test/ui/issues/issue-6596-2.stderr

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,13 @@ LL | { $inp $nonexistent }
77
LL | g!(foo);
88
| -------- in this macro invocation
99

10-
error: aborting due to previous error
10+
error: unknown macro variable `nonexistent`
11+
--> $DIR/issue-6596-2.rs:5:16
12+
|
13+
LL | { $inp $nonexistent }
14+
| ^^^^^^^^^^^^
15+
|
16+
= note: #[deny(meta_variable_misuse)] on by default
17+
18+
error: aborting due to 2 previous errors
1119

0 commit comments

Comments
 (0)