Skip to content

Commit 4879875

Browse files
authored
Change file locations to be links to GitHub
1 parent 671a872 commit 4879875

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/core/src/intrinsics.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Compiler intrinsics.
22
//!
3-
//! The corresponding definitions are in `compiler/rustc_codegen_llvm/src/intrinsic.rs`.
4-
//! The corresponding const implementations are in `compiler/rustc_const_eval/src/interpret/intrinsics.rs`
3+
//! The corresponding definitions are in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_codegen_llvm/src/intrinsic.rs>.
4+
//! The corresponding const implementations are in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_const_eval/src/interpret/intrinsics.rs>.
55
//!
66
//! # Const intrinsics
77
//!
@@ -10,8 +10,8 @@
1010
//!
1111
//! In order to make an intrinsic usable at compile-time, one needs to copy the implementation
1212
//! from <https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics.rs> to
13-
//! `compiler/rustc_const_eval/src/interpret/intrinsics.rs` and add a
14-
//! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic.
13+
//! <https://github.com/rust-lang/rust/blob/master/compiler/rustc_const_eval/src/interpret/intrinsics.rs> and add a
14+
//! `#[rustc_const_unstable(feature = "const_such_and_such", issue = "01234")]` to the intrinsic declaration.
1515
//!
1616
//! If an intrinsic is supposed to be used from a `const fn` with a `rustc_const_stable` attribute,
1717
//! the intrinsic's attribute must be `rustc_const_stable`, too. Such a change should not be done

0 commit comments

Comments
 (0)