diff options
| author | mbartlett21 <29034492+mbartlett21@users.noreply.github.com> | 2022-04-20 09:28:07 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-20 09:28:07 +1000 |
| commit | 671a8723c6b66037aecce3d48d760bcc5ec55b5e (patch) | |
| tree | 8e12861e9f8159c4f2ab32b63e9f6e45c31f1348 | |
| parent | 4ca19e09d302a4cbde14f9cb1bc109179dc824cd (diff) | |
| download | rust-671a8723c6b66037aecce3d48d760bcc5ec55b5e.tar.gz rust-671a8723c6b66037aecce3d48d760bcc5ec55b5e.zip | |
Fix locations for intrinsics impls
| -rw-r--r-- | library/core/src/intrinsics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index 8e02ca84317..bec68dcb3b0 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -1,7 +1,7 @@ //! Compiler intrinsics. //! //! The corresponding definitions are in `compiler/rustc_codegen_llvm/src/intrinsic.rs`. -//! The corresponding const implementations are in `compiler/rustc_mir/src/interpret/intrinsics.rs` +//! The corresponding const implementations are in `compiler/rustc_const_eval/src/interpret/intrinsics.rs` //! //! # Const intrinsics //! @@ -10,7 +10,7 @@ //! //! In order to make an intrinsic usable at compile-time, one needs to copy the implementation //! from <https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics.rs> to -//! `compiler/rustc_mir/src/interpret/intrinsics.rs` and add a +//! `compiler/rustc_const_eval/src/interpret/intrinsics.rs` and add a //! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic. //! //! If an intrinsic is supposed to be used from a `const fn` with a `rustc_const_stable` attribute, |
