Skip to content

Commit 2c9c70f

Browse files
committed
Deny extra_requirement_in_impl forward-compat lint
Part of rust-lang#37166
1 parent 3dcb288 commit 2c9c70f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/librustc/lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ declare_lint! {
206206

207207
declare_lint! {
208208
pub EXTRA_REQUIREMENT_IN_IMPL,
209-
Warn,
209+
Deny,
210210
"detects extra requirements in impls that were erroneously allowed"
211211
}
212212

src/test/compile-fail/issue-18937.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Regression test for #18937.
1212

13-
#![deny(extra_requirement_in_impl)]
14-
1513
use std::fmt;
1614

1715
#[derive(Debug)]

0 commit comments

Comments
 (0)