Skip to content

Commit

Permalink
add opt in attribute for stable-in-unstable items
Browse files Browse the repository at this point in the history
  • Loading branch information
yaahc committed Jul 8, 2022
1 parent 022a077 commit d8a5f09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,7 @@ extern "rust-intrinsic" {
/// }
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(bootstrap), rustc_allowed_through_unstable_modules)]
#[rustc_const_stable(feature = "const_transmute", since = "1.56.0")]
#[rustc_diagnostic_item = "transmute"]
pub fn transmute<T, U>(e: T) -> U;
Expand Down

0 comments on commit d8a5f09

Please sign in to comment.