Skip to content

Commit

Permalink
Bless ui tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Jun 24, 2022
1 parent 4a0c2d0 commit 8242aa8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error[E0201]: duplicate definitions with name `bar`:
LL | const bar: bool = true;
| ----------------------- previous definition of `bar` here
LL | fn bar() {}
| ^^^^^^^^^^^ duplicate definition
| ^^^^^^^^ duplicate definition

error: aborting due to previous error

Expand Down
8 changes: 4 additions & 4 deletions src/test/ui/error-codes/E0201.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ error[E0201]: duplicate definitions with name `bar`:
--> $DIR/E0201.rs:5:5
|
LL | fn bar(&self) -> bool { self.0 > 5 }
| ------------------------------------ previous definition of `bar` here
| --------------------- previous definition of `bar` here
LL | fn bar() {}
| ^^^^^^^^^^^ duplicate definition
| ^^^^^^^^ duplicate definition

error[E0201]: duplicate definitions with name `baz`:
--> $DIR/E0201.rs:17:5
|
LL | fn baz(&self) -> bool { true }
| ------------------------------ previous definition of `baz` here
| --------------------- previous definition of `baz` here
LL | fn baz(&self) -> bool { self.0 > 5 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
| ^^^^^^^^^^^^^^^^^^^^^ duplicate definition

error[E0201]: duplicate definitions with name `Quux`:
--> $DIR/E0201.rs:18:5
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/impl-duplicate-methods.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ error[E0201]: duplicate definitions with name `orange`:
--> $DIR/impl-duplicate-methods.rs:5:5
|
LL | fn orange(&self) {}
| ------------------- previous definition of `orange` here
| ---------------- previous definition of `orange` here
LL | fn orange(&self) {}
| ^^^^^^^^^^^^^^^^^^^ duplicate definition
| ^^^^^^^^^^^^^^^^ duplicate definition

error: aborting due to previous error

Expand Down
13 changes: 5 additions & 8 deletions src/test/ui/issues/issue-4265.stderr
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
error[E0201]: duplicate definitions with name `bar`:
--> $DIR/issue-4265.rs:10:5
|
LL | / fn bar() {
LL | | Foo { baz: 0 }.bar();
LL | | }
| |_____- previous definition of `bar` here
LL |
LL | / fn bar() {
LL | | }
| |_____^ duplicate definition
LL | fn bar() {
| -------- previous definition of `bar` here
...
LL | fn bar() {
| ^^^^^^^^ duplicate definition

error: aborting due to previous error

Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/methods/method-macro-backtrace.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ error[E0201]: duplicate definitions with name `bar`:
--> $DIR/method-macro-backtrace.rs:22:5
|
LL | fn bar(&self) { }
| ----------------- previous definition of `bar` here
| ------------- previous definition of `bar` here
LL | fn bar(&self) { }
| ^^^^^^^^^^^^^^^^^ duplicate definition
| ^^^^^^^^^^^^^ duplicate definition

error: aborting due to previous error

Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/traits/issue-8153.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ error[E0201]: duplicate definitions with name `bar`:
--> $DIR/issue-8153.rs:11:5
|
LL | fn bar(&self) -> isize {1}
| -------------------------- previous definition of `bar` here
| ---------------------- previous definition of `bar` here
LL | fn bar(&self) -> isize {2}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definition
| ^^^^^^^^^^^^^^^^^^^^^^ duplicate definition

error: aborting due to previous error

Expand Down

0 comments on commit 8242aa8

Please sign in to comment.