Skip to content

Commit 8cf7d03

Browse files
committed
Fix error tests
1 parent 6859a17 commit 8cf7d03

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

src/doc/rustc-dev-guide/src/attributes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ Definitions of non-builtin attributes take two forms:
3333
1. Proc-macro attributes, defined via a function annotated with `#[proc_macro_attribute]` in a
3434
proc-macro crate.
3535
2. AST-based attributes, defined in the standard library. These attributes have special 'stub'
36-
macros defined in places like [`library/core/src/macros/mod.rs`][core_macros].
36+
macros defined in places like [`library/core/src/core_macros/mod.rs`][core_macros].
3737

38-
[core_macros]: https://github.com/rust-lang/rust/blob/master/library/core/src/macros/mod.rs
38+
[core_macros]: https://github.com/rust-lang/rust/blob/master/library/core/src/core_macros/mod.rs
3939

4040
These definitions exist to allow the macros to participate in typical path-based resolution - they
4141
can be imported, re-exported, and renamed just like any other item definition. However, the body of

src/tools/miri/tests/fail-dep/concurrency/windows_join_main.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | assert_eq!(WaitForSingleObject(MAIN_THREAD, INFINITE), WAIT_OBJ
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program deadlocked
66
|
77
= note: BACKTRACE on thread `unnamed-ID`:
8-
= note: inside closure at RUSTLIB/core/src/macros/mod.rs:LL:CC
8+
= note: inside closure at RUSTLIB/core/src/core_macros/mod.rs:LL:CC
99
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
1010

1111
error: deadlock: the evaluated program deadlocked

src/tools/miri/tests/fail/rc_as_ptr.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ help: ALLOC was deallocated here:
1717
LL | drop(strong);
1818
| ^^^^^^^^^^^^
1919
= note: BACKTRACE (of the first span):
20-
= note: inside `main` at RUSTLIB/core/src/macros/mod.rs:LL:CC
20+
= note: inside `main` at RUSTLIB/core/src/core_macros/mod.rs:LL:CC
2121
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
2222

2323
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/fail/stacked_borrows/zst_slice.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ help: <TAG> would have been created here, but this is a zero-size retag ([0x0..0
1515
LL | assert_eq!(*s.as_ptr().add(1), 2);
1616
| ^^^^^^^^^^
1717
= note: BACKTRACE (of the first span):
18-
= note: inside `main` at RUSTLIB/core/src/macros/mod.rs:LL:CC
18+
= note: inside `main` at RUSTLIB/core/src/core_macros/mod.rs:LL:CC
1919
= note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
2020

2121
note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

src/tools/miri/tests/pass/alloc-access-tracking.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LL | assert_eq!(*ptr, 42);
2323
| ^^^^^^^^^^^^^^^^^^^^ read access to allocation with id $ALLOC
2424
|
2525
= note: BACKTRACE:
26-
= note: inside `miri_start` at RUSTLIB/core/src/macros/mod.rs:LL:CC
26+
= note: inside `miri_start` at RUSTLIB/core/src/core_macros/mod.rs:LL:CC
2727
= note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
2828

2929
note: tracking was triggered

tests/ui/did_you_mean/println-typo.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error: cannot find macro `prinltn` in this scope
33
|
44
LL | prinltn!();
55
| ^^^^^^^ help: a macro with a similar name exists: `println`
6-
--> $SRC_DIR/std/src/macros.rs:LL:COL
6+
--> $SRC_DIR/std/src/std_macros.rs:LL:COL
77
|
88
= note: similarly named macro `println` defined here
99

tests/ui/issues/issue-32655.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | #[derive_Clone]
66
...
77
LL | foo!();
88
| ------ in this macro invocation
9-
--> $SRC_DIR/core/src/macros/mod.rs:LL:COL
9+
--> $SRC_DIR/core/src/core_macros/mod.rs:LL:COL
1010
|
1111
= note: similarly named attribute macro `derive_const` defined here
1212
|
@@ -17,7 +17,7 @@ error: cannot find attribute `derive_Clone` in this scope
1717
|
1818
LL | #[derive_Clone]
1919
| ^^^^^^^^^^^^ help: an attribute macro with a similar name exists: `derive_const`
20-
--> $SRC_DIR/core/src/macros/mod.rs:LL:COL
20+
--> $SRC_DIR/core/src/core_macros/mod.rs:LL:COL
2121
|
2222
= note: similarly named attribute macro `derive_const` defined here
2323

tests/ui/macros/macro-name-typo.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error: cannot find macro `printlx` in this scope
33
|
44
LL | printlx!("oh noes!");
55
| ^^^^^^^ help: a macro with a similar name exists: `println`
6-
--> $SRC_DIR/std/src/macros.rs:LL:COL
6+
--> $SRC_DIR/std/src/std_macros.rs:LL:COL
77
|
88
= note: similarly named macro `println` defined here
99

tests/ui/macros/macro-path-prelude-fail-3.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ error: cannot find macro `inline` in this scope
33
|
44
LL | inline!();
55
| ^^^^^^ help: a macro with a similar name exists: `line`
6-
--> $SRC_DIR/core/src/macros/mod.rs:LL:COL
6+
--> $SRC_DIR/core/src/core_macros/mod.rs:LL:COL
77
|
88
= note: similarly named macro `line` defined here
99
|

tests/ui/macros/unknown-builtin.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | macro_rules! unknown { () => () }
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66

77
error[E0773]: attempted to define built-in macro more than once
8-
--> $SRC_DIR/core/src/macros/mod.rs:LL:COL
8+
--> $SRC_DIR/core/src/core_macros/mod.rs:LL:COL
99
|
1010
note: previously defined here
1111
--> $DIR/unknown-builtin.rs:9:1

0 commit comments

Comments
 (0)