Skip to content

Commit 5378677

Browse files
committed
normalize stderr
1 parent b841848 commit 5378677

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Diff for: src/test/ui/traits/issue-102989.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
//~ ERROR can't find crate for `profiler_builtins`
12
// compile-flags: -Cinstrument-coverage
2-
//~^ ERROR can't find crate for `profiler_builtins`
3+
// normalize-stderr-test "loaded from .*libcore-.*.rlib" -> "loaded from SYSROOT/libcore-*.rlib"
34

45
#![no_core]
56
#![feature(no_core, lang_items)]

Diff for: src/test/ui/traits/issue-102989.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
error: `self` parameter is only allowed in associated functions
2-
--> $DIR/issue-102989.rs:9:15
2+
--> $DIR/issue-102989.rs:10:15
33
|
44
LL | fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
55
| ^^^^ not semantically valid as function parameter
66
|
77
= note: associated functions are those in `impl` or `trait` definitions
88

99
error[E0412]: cannot find type `Struct` in this scope
10-
--> $DIR/issue-102989.rs:9:22
10+
--> $DIR/issue-102989.rs:10:22
1111
|
1212
LL | fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
1313
| ^^^^^^ not found in this scope
1414

1515
error[E0425]: cannot find value `x` in this scope
16-
--> $DIR/issue-102989.rs:13:13
16+
--> $DIR/issue-102989.rs:14:13
1717
|
1818
LL | let x = x << 1;
1919
| ^ help: a local variable with a similar name exists: `f`
@@ -25,13 +25,13 @@ error[E0463]: can't find crate for `profiler_builtins`
2525
= note: the compiler may have been built without the profiler runtime
2626

2727
error[E0152]: found duplicate lang item `sized`
28-
--> $DIR/issue-102989.rs:7:1
28+
--> $DIR/issue-102989.rs:8:1
2929
|
3030
LL | trait Sized { }
3131
| ^^^^^^^^^^^
3232
|
3333
= note: the lang item is first defined in crate `core`.
34-
= note: first definition in `core` loaded from $BUILD_DIR/aarch64-apple-darwin/stage1/lib/rustlib/aarch64-apple-darwin/lib/libcore-500f4c12402b1108.rlib
34+
= note: first definition in `core` loaded from SYSROOT/libcore-*.rlib
3535
= note: second definition in the local crate (`issue_102989`)
3636

3737
error: `#[panic_handler]` function required, but not found
@@ -42,23 +42,23 @@ error: language item required, but not found: `eh_personality`
4242
= help: you may be able to compile for a target that doesn't need `eh_personality`, specify a target with `--target` or in `.cargo/config`
4343

4444
error[E0277]: the size for values of type `{integer}` cannot be known at compilation time
45-
--> $DIR/issue-102989.rs:13:15
45+
--> $DIR/issue-102989.rs:14:15
4646
|
4747
LL | let x = x << 1;
4848
| ^^ doesn't have a size known at compile-time
4949
|
5050
= help: the trait `core::marker::Sized` is not implemented for `{integer}`
5151

5252
error[E0308]: mismatched types
53-
--> $DIR/issue-102989.rs:9:42
53+
--> $DIR/issue-102989.rs:10:42
5454
|
5555
LL | fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
5656
| ---------- ^^^^ expected `&u32`, found `()`
5757
| |
5858
| implicitly returns `()` as its body has no tail or `return` expression
5959
|
6060
note: consider returning one of these bindings
61-
--> $DIR/issue-102989.rs:9:30
61+
--> $DIR/issue-102989.rs:10:30
6262
|
6363
LL | fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
6464
| ^

0 commit comments

Comments
 (0)