Skip to content

Commit 925b800

Browse files
authored
Unrolled build for #157236
Rollup merge of #157236 - zedddie:gsoc-batch-3-meow, r=Kivooeo Reorganize `tests/ui/issues` [3/N] Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues) r? Kivooeo @Teapot4195
2 parents 042c759 + 01f5cc8 commit 925b800

17 files changed

Lines changed: 51 additions & 31 deletions

tests/ui/issues/issue-17959.rs renamed to tests/ui/dropck/drop-impl-sized-bound-mismatch.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/17959>.
2+
13
extern crate core;
24

35
use core::ops::Drop;

tests/ui/issues/issue-17959.stderr renamed to tests/ui/dropck/drop-impl-sized-bound-mismatch.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0367]: `Drop` impl requires `T: Sized` but the struct it is implemented for does not
2-
--> $DIR/issue-17959.rs:11:6
2+
--> $DIR/drop-impl-sized-bound-mismatch.rs:13:6
33
|
44
LL | impl<T> Drop for G<T> {
55
| ^
66
|
77
note: the implementor must specify the same requirement
8-
--> $DIR/issue-17959.rs:7:1
8+
--> $DIR/drop-impl-sized-bound-mismatch.rs:9:1
99
|
1010
LL | struct G<T: ?Sized> {
1111
| ^^^^^^^^^^^^^^^^^^^

tests/ui/issues/issue-17905.rs renamed to tests/ui/generics/impl-generic-struct-with-concrete-types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/17905>.
2+
13
//@ run-pass
24

35
#[derive(Debug)]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/18183>.
2+
13
pub struct Foo<Bar=Bar>(Bar); //~ ERROR E0128
24
pub struct Baz(Foo);
35
fn main() {}

tests/ui/issues/issue-18183.stderr renamed to tests/ui/generics/type-param-self-reference.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0128]: generic parameter defaults cannot reference parameters before they are declared
2-
--> $DIR/issue-18183.rs:1:20
2+
--> $DIR/type-param-self-reference.rs:3:20
33
|
44
LL | pub struct Foo<Bar=Bar>(Bar);
55
| ^^^ cannot reference `Bar` before it is declared

tests/ui/issues/issue-18107.rs renamed to tests/ui/impl-trait/bare-trait-object-return.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/18107>.
2+
13
pub trait AbstractRenderer {}
24

35
fn _create_render(_: &()) ->

tests/ui/issues/issue-18107.stderr renamed to tests/ui/impl-trait/bare-trait-object-return.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0746]: return type cannot be a trait object without pointer indirection
2-
--> $DIR/issue-18107.rs:4:5
2+
--> $DIR/bare-trait-object-return.rs:6:5
33
|
44
LL | dyn AbstractRenderer
55
| ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time

tests/ui/issues/issue-18446-2.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/ui/issues/issue-17905-2.rs renamed to tests/ui/lifetimes/elided-lifetime-mismatch-in-self-type.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/17905>.
2+
13
#[derive(Debug)]
24
struct Pair<T, V> (T, V);
35

tests/ui/issues/issue-17905-2.stderr renamed to tests/ui/lifetimes/elided-lifetime-mismatch-in-self-type.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
error[E0308]: mismatched `self` parameter type
2-
--> $DIR/issue-17905-2.rs:8:18
2+
--> $DIR/elided-lifetime-mismatch-in-self-type.rs:10:18
33
|
44
LL | fn say(self: &Pair<&str, isize>) {
55
| ^^^^^^^^^^^^^^^^^^ lifetime mismatch
66
|
77
= note: expected struct `Pair<&_, _>`
88
found struct `Pair<&_, _>`
99
note: the anonymous lifetime defined here...
10-
--> $DIR/issue-17905-2.rs:8:24
10+
--> $DIR/elided-lifetime-mismatch-in-self-type.rs:10:24
1111
|
1212
LL | fn say(self: &Pair<&str, isize>) {
1313
| ^^^^
1414
note: ...does not necessarily outlive the anonymous lifetime as defined here
15-
--> $DIR/issue-17905-2.rs:5:5
15+
--> $DIR/elided-lifetime-mismatch-in-self-type.rs:7:5
1616
|
1717
LL | &str,
1818
| ^
1919

2020
error[E0308]: mismatched `self` parameter type
21-
--> $DIR/issue-17905-2.rs:8:18
21+
--> $DIR/elided-lifetime-mismatch-in-self-type.rs:10:18
2222
|
2323
LL | fn say(self: &Pair<&str, isize>) {
2424
| ^^^^^^^^^^^^^^^^^^ lifetime mismatch
2525
|
2626
= note: expected struct `Pair<&_, _>`
2727
found struct `Pair<&_, _>`
2828
note: the anonymous lifetime as defined here...
29-
--> $DIR/issue-17905-2.rs:5:5
29+
--> $DIR/elided-lifetime-mismatch-in-self-type.rs:7:5
3030
|
3131
LL | &str,
3232
| ^
3333
note: ...does not necessarily outlive the anonymous lifetime defined here
34-
--> $DIR/issue-17905-2.rs:8:24
34+
--> $DIR/elided-lifetime-mismatch-in-self-type.rs:10:24
3535
|
3636
LL | fn say(self: &Pair<&str, isize>) {
3737
| ^^^^

0 commit comments

Comments
 (0)