Skip to content

Commit d369c53

Browse files
committed
wip1: use unstable_feature_bound on trait
1 parent 21c1f92 commit d369c53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/mem/transmutability.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::marker::{ConstParamTy_, UnsizedConstParamTy};
1+
use crate::marker::ConstParamTy_;
22

33
/// Marks that `Src` is transmutable into `Self`.
44
///
@@ -83,6 +83,7 @@ use crate::marker::{ConstParamTy_, UnsizedConstParamTy};
8383
/// Furthermore, stability does not imply portability. For example, the size of
8484
/// `usize` is stable, but not portable.
8585
#[unstable(feature = "transmutability", issue = "99571")]
86+
#[unstable_feature_bound(transmutability)]
8687
#[lang = "transmute_trait"]
8788
#[rustc_deny_explicit_impl]
8889
#[rustc_do_not_implement_via_object]
@@ -288,9 +289,8 @@ pub struct Assume {
288289
}
289290

290291
#[unstable(feature = "transmutability", issue = "99571")]
292+
#[unstable_feature_bound(transmutability)]
291293
impl ConstParamTy_ for Assume {}
292-
#[unstable(feature = "transmutability", issue = "99571")]
293-
impl UnsizedConstParamTy for Assume {}
294294

295295
impl Assume {
296296
/// With this, [`TransmuteFrom`] does not assume you have ensured any safety

0 commit comments

Comments
 (0)