File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
//! Compiler intrinsics.
2
2
//!
3
3
//! The corresponding definitions are in `compiler/rustc_codegen_llvm/src/intrinsic.rs`.
4
- //! The corresponding const implementations are in `compiler/rustc_mir /src/interpret/intrinsics.rs`
4
+ //! The corresponding const implementations are in `compiler/rustc_const_eval /src/interpret/intrinsics.rs`
5
5
//!
6
6
//! # Const intrinsics
7
7
//!
10
10
//!
11
11
//! In order to make an intrinsic usable at compile-time, one needs to copy the implementation
12
12
//! from <https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics.rs> to
13
- //! `compiler/rustc_mir /src/interpret/intrinsics.rs` and add a
13
+ //! `compiler/rustc_const_eval /src/interpret/intrinsics.rs` and add a
14
14
//! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic.
15
15
//!
16
16
//! If an intrinsic is supposed to be used from a `const fn` with a `rustc_const_stable` attribute,
You can’t perform that action at this time.
0 commit comments