File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
library/core/src/intrinsics Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 55//!
66//! # Const intrinsics
77//!
8- //! Note: any changes to the constness of intrinsics should be discussed with the language team.
9- //! This includes changes in the stability of the constness.
10- //!
11- //! //FIXME(#132735) "old" style intrinsics support has been removed
12- //! In order to make an intrinsic usable at compile-time, it needs to be declared in the "new"
13- //! style, i.e. as a `#[rustc_intrinsic]` function, not inside an `extern` block. Then copy the
14- //! implementation from <https://github.com/rust-lang/miri/blob/master/src/intrinsics> to
8+ //! In order to make an intrinsic unstable usable at compile-time, copy the implementation from
9+ //! <https://github.com/rust-lang/miri/blob/master/src/intrinsics> to
1510//! <https://github.com/rust-lang/rust/blob/master/compiler/rustc_const_eval/src/interpret/intrinsics.rs>
16- //! and make the intrinsic declaration a `const fn`.
11+ //! and make the intrinsic declaration below a `const fn`. This should be done in coordination with
12+ //! wg-const-eval.
1713//!
1814//! If an intrinsic is supposed to be used from a `const fn` with a `rustc_const_stable` attribute,
1915//! `#[rustc_intrinsic_const_stable_indirect]` needs to be added to the intrinsic. Such a change requires
You can’t perform that action at this time.
0 commit comments