diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-06-21 20:08:08 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-21 20:08:08 +0900 |
| commit | b20aff2b334f9e3372a8220e6e36b3907a01e48e (patch) | |
| tree | 7cf2229190e6e6e1fc81b7e7946dfdd376855a89 | |
| parent | 84c17c200a90f8dd015a46e87531f726f6a3e2b9 (diff) | |
| parent | 4505579713572448c9f53811aae37c09ad7787eb (diff) | |
| download | rust-b20aff2b334f9e3372a8220e6e36b3907a01e48e.tar.gz rust-b20aff2b334f9e3372a8220e6e36b3907a01e48e.zip | |
Rollup merge of #97269 - RalfJung:transmute, r=m-ou-se
adjust transmute const stabilization version With 1.46, this became callable only in `const`/`static` items. Only since 1.56 is this callable in `const fn`: [changelog](https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1560-2021-10-21) Also see [Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/transmute.20const.20fn.20stabilization).
| -rw-r--r-- | library/core/src/intrinsics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index ba837ea9a78..2f9afbec91e 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -1144,7 +1144,7 @@ extern "rust-intrinsic" { /// } /// ``` #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_stable(feature = "const_transmute", since = "1.46.0")] + #[rustc_const_stable(feature = "const_transmute", since = "1.56.0")] #[rustc_diagnostic_item = "transmute"] pub fn transmute<T, U>(e: T) -> U; |
