Skip to content

Commit d9b3fef

Browse files
Rollup merge of #156927 - zedddie:gsoc-batch-1-meow, r=Kivooeo
Reorganize `tests/ui/issues` [1/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 6aa3c7e + 480b44c commit d9b3fef

16 files changed

Lines changed: 21 additions & 9 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/16922>.
12
//@ run-pass
23

34
use std::any::Any;

tests/ui/issues/auxiliary/issue-17662.rs renamed to tests/ui/cross-crate/auxiliary/dyn-trait-lifetime-infer-metadata.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Auxiliary crate for <https://github.com/rust-lang/rust/issues/17662>.
12
#![crate_type = "lib"]
23

34
pub trait Foo<'a, T> {

tests/ui/issues/issue-17662.rs renamed to tests/ui/cross-crate/dyn-trait-lifetime-infer-metadata.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/17662>.
12
//@ run-pass
2-
//@ aux-build:issue-17662.rs
3+
//@ aux-build:dyn-trait-lifetime-infer-metadata.rs
34

4-
5-
extern crate issue_17662 as i;
5+
extern crate dyn_trait_lifetime_infer_metadata as i;
66

77
use std::marker;
88

tests/ui/issues/issue-17337.rs renamed to tests/ui/deprecation/deprecated-unstable-method-in-staged-api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/17337>.
12
#![feature(staged_api)]
23
#![deny(deprecated)]
34

tests/ui/issues/issue-17337.stderr renamed to tests/ui/deprecation/deprecated-unstable-method-in-staged-api.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: use of deprecated method `Foo::foo`: text
2-
--> $DIR/issue-17337.rs:16:6
2+
--> $DIR/deprecated-unstable-method-in-staged-api.rs:17:6
33
|
44
LL | .foo();
55
| ^^^
66
|
77
note: the lint level is defined here
8-
--> $DIR/issue-17337.rs:2:9
8+
--> $DIR/deprecated-unstable-method-in-staged-api.rs:3:9
99
|
1010
LL | #![deny(deprecated)]
1111
| ^^^^^^^^^^

tests/ui/issues/issue-17216.rs renamed to tests/ui/drop/drop-in-for-loop-destructure.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/17216>.
12
//@ run-pass
23
#![allow(unused_variables)]
34
struct Leak<'a> {

tests/ui/issues/issue-17551.rs renamed to tests/ui/inference/need_type_info/unconstrained-type-in-closure.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/17551>.
2+
13
use std::marker;
24

35
struct B<T>(marker::PhantomData<T>);

tests/ui/issues/issue-17551.stderr renamed to tests/ui/inference/need_type_info/unconstrained-type-in-closure.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0282]: type annotations needed for `B<_>`
2-
--> $DIR/issue-17551.rs:6:9
2+
--> $DIR/unconstrained-type-in-closure.rs:8:9
33
|
44
LL | let foo = B(marker::PhantomData);
55
| ^^^ ------------------- type must be known at this point

tests/ui/issues/issue-17121.rs renamed to tests/ui/regions/relate-bound-region-in-method-return.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/17121>.
12
//@ check-pass
23
#![allow(dead_code)]
34

tests/ui/issues/issue-17800.rs renamed to tests/ui/structs-enums/tuple-variant-as-struct-variant.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/17800>.
2+
13
enum MyOption<T> {
24
MySome(T),
35
MyNone,

0 commit comments

Comments
 (0)