Skip to content

Commit 9c13f4f

Browse files
authored
Rollup merge of #144089 - Oneirical:uncountable-integer-1, r=jieyouxu
Rehome 35 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` #143902 divided into smaller, easier to review chunks. Part of #133895 Methodology: 1. Refer to the previously written `tests/ui/SUMMARY.md` 2. Find an appropriate category for the test, using the original issue thread and the test contents. 3. Add the issue URL at the bottom (not at the top, as that would mess up stderr line numbers) 4. Rename the tests to make their purpose clearer The URL addition at the end, as well as moving around the auxiliary files and editing the `stderr` files with the new filename, were done using a Python script. Inspired by the methodology that `@Kivooeo` was using. r? `@jieyouxu`
2 parents f32b232 + a924d44 commit 9c13f4f

File tree

46 files changed

+107
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+107
-49
lines changed

tests/ui/issues/issue-4333.rs renamed to tests/ui/cast/trait-object-cast-segfault-4333.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ pub fn main() {
77
let stdout = &mut io::stdout() as &mut dyn io::Write;
88
stdout.write(b"Hello!");
99
}
10+
11+
// https://github.com/rust-lang/rust/issues/4333

tests/ui/issues/issue-36278-prefix-nesting.rs renamed to tests/ui/codegen/dynamic-size-of-prefix-correctly-36278.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ fn main() {
1818
size_of_unsized = mem::size_of_val::<Ack<_>>(&y);
1919
assert_eq!(size_of_sized, size_of_unsized);
2020
}
21+
22+
// https://github.com/rust-lang/rust/issues/36278

tests/ui/issues/issue-39211.rs renamed to tests/ui/const-generics/generic-parameter-in-const-expression-39211.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ fn m<M: Mat>() {
1212
}
1313
fn main() {
1414
}
15+
16+
// https://github.com/rust-lang/rust/issues/39211

tests/ui/issues/issue-39211.stderr renamed to tests/ui/const-generics/generic-parameter-in-const-expression-39211.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: constant expression depends on a generic parameter
2-
--> $DIR/issue-39211.rs:9:17
2+
--> $DIR/generic-parameter-in-const-expression-39211.rs:9:17
33
|
44
LL | let a = [3; M::Row::DIM];
55
| ^^^^^^^^^^^
66
|
77
= note: this may fail depending on what value the parameter takes
88

99
error: constant expression depends on a generic parameter
10-
--> $DIR/issue-39211.rs:9:13
10+
--> $DIR/generic-parameter-in-const-expression-39211.rs:9:13
1111
|
1212
LL | let a = [3; M::Row::DIM];
1313
| ^^^^^^^^^^^^^^^^
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//@ run-pass
2+
//@ aux-build:exporting-impl-from-root-causes-ice-2472-b.rs
3+
4+
5+
extern crate exporting_impl_from_root_causes_ice_2472_b as lib;
6+
7+
use lib::{S, T};
8+
9+
pub fn main() {
10+
let s = S(());
11+
s.foo();
12+
s.bar();
13+
}
14+
15+
// https://github.com/rust-lang/rust/issues/2472

tests/ui/issues/issue-34229.rs renamed to tests/ui/derives/invalid-derive-comparison-34229.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
//~^ ERROR can't compare `Comparable`
44

55
fn main() {}
6+
7+
// https://github.com/rust-lang/rust/issues/34229

tests/ui/issues/issue-34229.stderr renamed to tests/ui/derives/invalid-derive-comparison-34229.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0277]: can't compare `Comparable` with `Comparable`
2-
--> $DIR/issue-34229.rs:2:46
2+
--> $DIR/invalid-derive-comparison-34229.rs:2:46
33
|
44
LL | #[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
55
| ---------- ^^^^^^^^^^ no implementation for `Comparable < Comparable` and `Comparable > Comparable`

tests/ui/issues/issue-9446.rs renamed to tests/ui/drop/drop-immediate-non-box-ty-9446.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ pub fn main() {
2828
Wrapper::new("Bob".to_string()).say_hi();
2929
}
3030
}
31+
32+
// https://github.com/rust-lang/rust/issues/9446

tests/ui/issues/issue-32326.rs renamed to tests/ui/enum/recursive-enum-memory-32326.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ enum Expr { //~ ERROR E0072
88
}
99

1010
fn main() { }
11+
12+
// https://github.com/rust-lang/rust/issues/32326

0 commit comments

Comments
 (0)