Skip to content

Commit 7a1e076

Browse files
committed
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.
1 parent fc5df6f commit 7a1e076

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

alloc/src/task.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ pub trait Wake {
3333
}
3434
}
3535

36-
#[allow(rustc::ineffective_unstable_trait_impl)]
36+
#[cfg_attr(bootstrap, allow(rustc::ineffective_unstable_trait_impl))]
37+
#[cfg_attr(not(bootstrap), allow(ineffective_unstable_trait_impl))]
3738
#[unstable(feature = "wake_trait", issue = "69912")]
3839
impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
3940
fn from(waker: Arc<W>) -> Waker {
@@ -43,7 +44,8 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
4344
}
4445
}
4546

46-
#[allow(rustc::ineffective_unstable_trait_impl)]
47+
#[cfg_attr(bootstrap, allow(rustc::ineffective_unstable_trait_impl))]
48+
#[cfg_attr(not(bootstrap), allow(ineffective_unstable_trait_impl))]
4749
#[unstable(feature = "wake_trait", issue = "69912")]
4850
impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for RawWaker {
4951
fn from(waker: Arc<W>) -> RawWaker {

0 commit comments

Comments
 (0)