Skip to content
/ rust Public
forked from rust-lang/rust

Commit 8981bcf

Browse files
authored
Rollup merge of rust-lang#158485 - zedddie:gsoc-batch-16-meow, r=Teapot4195,Kivooeo
Reorganize `tests/ui/issues` [16/N] Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues) Also moved one test from `span/` as it is part of `28498` r? Kivooeo @Teapot4195
2 parents f1313c1 + eb9bdc4 commit 8981bcf

16 files changed

Lines changed: 40 additions & 32 deletions

src/tools/tidy/src/issues.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,6 @@ ui/span/issue-42234-unknown-receiver-type.rs
24422442
ui/span/issue-43927-non-ADT-derive.rs
24432443
ui/span/issue-71363.rs
24442444
ui/span/issue-81800.rs
2445-
ui/span/issue28498-reject-ex1.rs
24462445
ui/span/issue28498-reject-lifetime-param.rs
24472446
ui/span/issue28498-reject-passed-to-fn.rs
24482447
ui/span/issue28498-reject-trait-bound.rs

tests/ui/issues/issue-28550.rs renamed to tests/ui/associated-types/nested-fnonce-output-projection.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/28550>.
12
//@ run-pass
3+
24
struct A<F: FnOnce()->T,T>(F::Output);
35
struct B<F: FnOnce()->T,T>(A<F,T>);
46

tests/ui/issues/issue-28828.rs renamed to tests/ui/associated-types/projection-as-type-alias.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/28828>.
2+
//! This failed to compile as associated types aliases were not normalized.
13
//@ run-pass
4+
25
pub trait Foo {
36
type Out;
47
}

tests/ui/issues/issue-28600.rs renamed to tests/ui/extern/extern-c-method-with-str-param.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/28600>.
2+
//! pub extern fn with parameter type &str inside struct impl caused ICE.
13
//@ build-pass
2-
// #28600 ICE: pub extern fn with parameter type &str inside struct impl
34

45
struct Test;
56

tests/ui/issues/issue-28936.rs renamed to tests/ui/inference/closure-arg-lifetime-by-ref.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/28936>.
12
//@ check-pass
3+
24
pub type Session = i32;
35
pub struct StreamParser<'a, T> {
46
_tokens: T,

tests/ui/issues/issue-28776.rs

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

tests/ui/issues/issue-28999.rs renamed to tests/ui/lifetimes/field-borrow-lifetime-inference.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/28999>.
2+
//! `this.v` was not constrained and inferred `'a`.
13
//@ check-pass
4+
25
pub struct Xyz<'a, V> {
36
pub v: (V, &'a u32),
47
}

tests/ui/issues/issue-28498-must-work-ex1.rs renamed to tests/ui/rfcs/rfc-1238-nonparametric-dropck/must-work-ex1.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
//! Test for <https://github.com/rust-lang/rust/issues/28498>.
2+
//! Example taken from RFC 1238 text
3+
//! <https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md>.
14
//@ run-pass
2-
// Example taken from RFC 1238 text
3-
4-
// https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
5-
// #examples-of-code-that-must-continue-to-work
65

76
use std::cell::Cell;
87

tests/ui/issues/issue-28498-must-work-ex2.rs renamed to tests/ui/rfcs/rfc-1238-nonparametric-dropck/must-work-ex2.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
//! Test for <https://github.com/rust-lang/rust/issues/28498>.
2+
//! Example taken from RFC 1238 text
3+
//! <https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md>.
14
//@ run-pass
2-
// Example taken from RFC 1238 text
3-
4-
// https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
5-
// #examples-of-code-that-must-continue-to-work
65

76
use std::cell::Cell;
87

tests/ui/span/issue28498-reject-ex1.rs renamed to tests/ui/rfcs/rfc-1238-nonparametric-dropck/reject-ex1.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
// Example taken from RFC 1238 text
2-
3-
// https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
4-
// #examples-of-code-that-will-start-to-be-rejected
5-
6-
// Compare against test/run-pass/issue28498-must-work-ex2.rs
1+
//! Test for <https://github.com/rust-lang/rust/issues/28498>.
2+
//! Example taken from RFC 1238 text
3+
//! <https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md>.
4+
//! Compare against tests/ui/rfcs/rfc-1238-nonparametric-dropck/must-work-ex2.rs.
75
86
use std::cell::Cell;
97

0 commit comments

Comments
 (0)