Don't mark ineffective_unstable_trait_impl as an internal lint
It's not an internal lint: - It's not in the rustc::internal lint group - It's on unconditionally, because it actually lints `staged_api`, not the compiler This fixes a bug where `#[deny(rustc::internal)]` would warn that `rustc::internal` was an unknown lint.
This commit is contained in:
parent
5053db7c00
commit
c819a4c025
4 changed files with 30 additions and 7 deletions
|
|
@ -22,7 +22,7 @@ impl StableTrait for UnstableType {}
|
|||
impl UnstableTrait for StableType {}
|
||||
|
||||
#[unstable(feature = "x", issue = "none")]
|
||||
//~^ ERROR an `#[unstable]` annotation here has no effect [rustc::ineffective_unstable_trait_impl]
|
||||
//~^ ERROR an `#[unstable]` annotation here has no effect [ineffective_unstable_trait_impl]
|
||||
impl StableTrait for StableType {}
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error: an `#[unstable]` annotation here has no effect
|
|||
LL | #[unstable(feature = "x", issue = "none")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `#[deny(rustc::ineffective_unstable_trait_impl)]` on by default
|
||||
= note: `#[deny(ineffective_unstable_trait_impl)]` on by default
|
||||
= note: see issue #55436 <https://github.com/rust-lang/rust/issues/55436> for more information
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue