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
|
@ -33,7 +33,8 @@ pub trait Wake {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(rustc::ineffective_unstable_trait_impl)]
|
||||
#[cfg_attr(bootstrap, allow(rustc::ineffective_unstable_trait_impl))]
|
||||
#[cfg_attr(not(bootstrap), allow(ineffective_unstable_trait_impl))]
|
||||
#[unstable(feature = "wake_trait", issue = "69912")]
|
||||
impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
|
||||
fn from(waker: Arc<W>) -> Waker {
|
||||
|
@ -43,7 +44,8 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(rustc::ineffective_unstable_trait_impl)]
|
||||
#[cfg_attr(bootstrap, allow(rustc::ineffective_unstable_trait_impl))]
|
||||
#[cfg_attr(not(bootstrap), allow(ineffective_unstable_trait_impl))]
|
||||
#[unstable(feature = "wake_trait", issue = "69912")]
|
||||
impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for RawWaker {
|
||||
fn from(waker: Arc<W>) -> RawWaker {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue