From 671a8723c6b66037aecce3d48d760bcc5ec55b5e Mon Sep 17 00:00:00 2001 From: mbartlett21 <29034492+mbartlett21@users.noreply.github.com> Date: Wed, 20 Apr 2022 09:28:07 +1000 Subject: [PATCH 1/2] Fix locations for intrinsics impls --- library/core/src/intrinsics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index 8e02ca8431744..bec68dcb3b0e2 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 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, From 4879875c7638c1502756d1d94cfd9b67a2416ed7 Mon Sep 17 00:00:00 2001 From: mbartlett21 <29034492+mbartlett21@users.noreply.github.com> Date: Wed, 20 Apr 2022 13:14:32 +1000 Subject: [PATCH 2/2] Change file locations to be links to GitHub --- library/core/src/intrinsics.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index bec68dcb3b0e2..bddbe2b9b0df1 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_const_eval/src/interpret/intrinsics.rs` +//! The corresponding definitions are in . +//! The corresponding const implementations are in . //! //! # Const intrinsics //! @@ -10,8 +10,8 @@ //! //! In order to make an intrinsic usable at compile-time, one needs to copy the implementation //! from to -//! `compiler/rustc_const_eval/src/interpret/intrinsics.rs` and add a -//! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic. +//! and add a +//! `#[rustc_const_unstable(feature = "const_such_and_such", issue = "01234")]` to the intrinsic declaration. //! //! If an intrinsic is supposed to be used from a `const fn` with a `rustc_const_stable` attribute, //! the intrinsic's attribute must be `rustc_const_stable`, too. Such a change should not be done