Skip to content

Commit 3e08354

Browse files
committed
Correct file path after some restructures in compiler
1 parent 5e449b9 commit 3e08354

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

compiler/rustc_codegen_ssa/src/traits/intrinsic.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ use rustc_span::Span;
55
use rustc_target::abi::call::FnAbi;
66

77
pub trait IntrinsicCallMethods<'tcx>: BackendTypes {
8-
/// Remember to add all intrinsics here, in librustc_typeck/check/mod.rs,
9-
/// and in libcore/intrinsics.rs; if you need access to any llvm intrinsics,
10-
/// add them to librustc_codegen_llvm/context.rs
8+
/// Remember to add all intrinsics here, in `compiler/rustc_typeck/src/check/mod.rs`,
9+
/// and in `library/core/src/intrinsics.rs`; if you need access to any LLVM intrinsics,
10+
/// add them to `compiler/rustc_codegen_llvm/src/context.rs`.
1111
fn codegen_intrinsic_call(
1212
&mut self,
1313
instance: ty::Instance<'tcx>,

compiler/rustc_error_codes/src/error_codes/E0092.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ extern "rust-intrinsic" {
1212
```
1313

1414
Please check you didn't make a mistake in the function's name. All intrinsic
15-
functions are defined in `librustc_codegen_llvm/intrinsic.rs` and in
16-
`libcore/intrinsics.rs` in the Rust source code. Example:
15+
functions are defined in `compiler/rustc_codegen_llvm/src/intrinsic.rs` and in
16+
`library/core/src/intrinsics.rs` in the Rust source code. Example:
1717

1818
```
1919
#![feature(intrinsics)]

compiler/rustc_error_codes/src/error_codes/E0093.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ fn main() {
1717
```
1818

1919
Please check you didn't make a mistake in the function's name. All intrinsic
20-
functions are defined in `librustc_codegen_llvm/intrinsic.rs` and in
21-
`libcore/intrinsics.rs` in the Rust source code. Example:
20+
functions are defined in `compiler/rustc_codegen_llvm/src/intrinsic.rs` and in
21+
`library/core/src/intrinsics.rs` in the Rust source code. Example:
2222

2323
```
2424
#![feature(intrinsics)]

compiler/rustc_mir/src/interpret/terminator.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
385385
ty::InstanceDef::Virtual(_, idx) => {
386386
let mut args = args.to_vec();
387387
// We have to implement all "object safe receivers". Currently we
388-
// support built-in pointers (&, &mut, Box) as well as unsized-self. We do
388+
// support built-in pointers `(&, &mut, Box)` as well as unsized-self. We do
389389
// not yet support custom self types.
390-
// Also see librustc_codegen_llvm/abi.rs and librustc_codegen_llvm/mir/block.rs.
390+
// Also see `compiler/rustc_codegen_llvm/src/abi.rs` and `compiler/rustc_codegen_ssa/src/mir/block.rs`.
391391
let receiver_place = match args[0].layout.ty.builtin_deref(true) {
392392
Some(_) => {
393393
// Built-in pointer.

compiler/rustc_typeck/src/check/intrinsic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ pub fn intrinsic_operation_unsafety(intrinsic: Symbol) -> hir::Unsafety {
106106
}
107107
}
108108

109-
/// Remember to add all intrinsics here, in librustc_codegen_llvm/intrinsic.rs,
110-
/// and in libcore/intrinsics.rs
109+
/// Remember to add all intrinsics here, in `compiler/rustc_codegen_llvm/src/intrinsic.rs`,
110+
/// and in `library/core/src/intrinsics.rs`.
111111
pub fn check_intrinsic_type(tcx: TyCtxt<'_>, it: &hir::ForeignItem<'_>) {
112112
let param = |n| tcx.mk_ty_param(n, Symbol::intern(&format!("P{}", n)));
113113
let def_id = tcx.hir().local_def_id(it.hir_id).to_def_id();

library/core/src/intrinsics.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Compiler intrinsics.
22
//!
3-
//! The corresponding definitions are in `librustc_codegen_llvm/intrinsic.rs`.
4-
//! The corresponding const implementations are in `librustc_mir/interpret/intrinsics.rs`
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`
55
//!
66
//! # Const intrinsics
77
//!
@@ -10,7 +10,7 @@
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-
//! `librustc_mir/interpret/intrinsics.rs` and add a
13+
//! `compiler/rustc_mir/src/interpret/intrinsics.rs` and add a
1414
//! `#[rustc_const_unstable(feature = "foo", issue = "01234")]` to the intrinsic.
1515
//!
1616
//! If an intrinsic is supposed to be used from a `const fn` with a `rustc_const_stable` attribute,

library/panic_unwind/src/seh.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ pub struct _TypeDescriptor {
175175
// to be able to catch Rust panics by simply declaring a `struct rust_panic`.
176176
//
177177
// When modifying, make sure that the type name string exactly matches
178-
// the one used in src/librustc_codegen_llvm/intrinsic.rs.
178+
// the one used in `compiler/rustc_codegen_llvm/src/intrinsic.rs`.
179179
const TYPE_NAME: [u8; 11] = *b"rust_panic\0";
180180

181181
static mut THROW_INFO: _ThrowInfo = _ThrowInfo {

0 commit comments

Comments
 (0)