Skip to content

Commit a2e9917

Browse files
authored
Unrolled build for #145675
Rollup merge of #145675 - Oneirical:uncountable-integer-8, r=jieyouxu Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#1 of Batch #2] 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 Inspired by the methodology that `@Kivooeo` was using. r? `@jieyouxu`
2 parents db3fd47 + 2e659f5 commit a2e9917

File tree

46 files changed

+66
-80
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

+66
-80
lines changed

tests/ui/issues/issue-6738.rs renamed to tests/ui/binop/struct-field-generic-type-binary-assignment-error-6738.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/6738
12
struct Foo<T> {
23
x: T,
34
}

tests/ui/issues/issue-6738.stderr renamed to tests/ui/binop/struct-field-generic-type-binary-assignment-error-6738.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0368]: binary assignment operation `+=` cannot be applied to type `T`
2-
--> $DIR/issue-6738.rs:6:9
2+
--> $DIR/struct-field-generic-type-binary-assignment-error-6738.rs:7:9
33
|
44
LL | self.x += v.x;
55
| ------^^^^^^^
File renamed without changes.

tests/ui/issues/issue-5884.rs renamed to tests/ui/borrowck/borrowed-pointer-in-struct-5884.rs

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

tests/ui/issues/issue-5550.rs renamed to tests/ui/borrowck/incorrect-loan-error-on-local-update-5550.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/5550
12
//@ run-pass
23
#![allow(unused_assignments)]
34

tests/ui/issues/issue-5708.rs renamed to tests/ui/borrowck/struct-with-reference-to-trait-5708.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/5708
12
//@ run-pass
23
#![allow(unused_variables)]
34
/*
@@ -10,7 +11,6 @@ This does not occur with concrete types, only with references
1011
to traits.
1112
*/
1213

13-
1414
// original
1515
trait Inner {
1616
fn print(&self);
@@ -38,7 +38,6 @@ pub fn main() {
3838
outer.inner.print();
3939
}
4040

41-
4241
// minimal
4342
pub trait MyTrait<T> {
4443
fn dummy(&self, t: T) -> T { panic!() }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// https://github.com/rust-lang/rust/issues/5518
2+
//@ run-pass
3+
//@ aux-build:aux-5518.rs
4+
5+
extern crate aux_5518 as other;
6+
7+
fn main() {}

tests/ui/issues/issue-6557.rs renamed to tests/ui/box/box-patterns-feature-usage-6557.rs

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

tests/ui/issues/issue-6318.rs renamed to tests/ui/cast/owned-struct-to-trait-cast-6318.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// https://github.com/rust-lang/rust/issues/6318
12
//@ run-pass
23

34
pub enum Thing {

tests/ui/issues/issue-6153.rs renamed to tests/ui/closures/closure-mut-argument-6153.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/6153
12
//@ run-pass
23

3-
44
fn swap<F>(f: F) -> Vec<isize> where F: FnOnce(Vec<isize>) -> Vec<isize> {
55
let x = vec![1, 2, 3];
66
f(x)

0 commit comments

Comments
 (0)