Skip to content

Commit 7d52cbc

Browse files
committed
Auto merge of #54530 - pnkfelix:issue-54047-migrate-ui-run-pass-back-to-run-pass, r=alexcrichton
Migrate `src/test/ui/run-pass/*` back to `src/test/run-pass/`. Moves all the tests from `src/test/ui/run-pass/**` back to `src/test/run-pass/`. This should have no impact on our overall testing completeness due to PR #54223 Fix #54047
2 parents 8876906 + 649b20e commit 7d52cbc

File tree

2,795 files changed

+1039
-68
lines changed

Some content is hidden

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

2,795 files changed

+1039
-68
lines changed
File renamed without changes.

Diff for: src/test/ui/run-pass/array-slice-vec/array_const_index-1.rs renamed to src/test/run-pass/array-slice-vec/array_const_index-1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
#![allow(stable_features)]
1314

1415
#![feature(const_indexing)]

Diff for: src/test/ui/run-pass/array-slice-vec/check-static-mut-slices.rs renamed to src/test/run-pass/array-slice-vec/check-static-mut-slices.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213

1314
// Checks that mutable static items can have mutable slices
1415

Diff for: src/test/ui/run-pass/array-slice-vec/evec-slice.rs renamed to src/test/run-pass/array-slice-vec/evec-slice.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_assignments)]
1213

1314
pub fn main() {
1415
let x : &[isize] = &[1,2,3,4,5];

Diff for: src/test/ui/run-pass/array-slice-vec/slice.rs renamed to src/test/run-pass/array-slice-vec/slice.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213

1314
// Test slicing sugar.
1415

Diff for: src/test/ui/run-pass/array-slice-vec/vec-late-init.rs renamed to src/test/run-pass/array-slice-vec/vec-late-init.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_mut)]
1213

1314

1415
pub fn main() {

Diff for: src/test/ui/run-pass/array-slice-vec/vec-macro-with-brackets.rs renamed to src/test/run-pass/array-slice-vec/vec-macro-with-brackets.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213

1314
// pretty-expanded FIXME #23616
1415

Diff for: src/test/ui/run-pass/array-slice-vec/vec-matching-legal-tail-element-borrow.rs renamed to src/test/run-pass/array-slice-vec/vec-matching-legal-tail-element-borrow.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213

1314
#![feature(slice_patterns)]
1415

Diff for: src/test/ui/run-pass/associated-consts/associated-const-range-match-patterns.rs renamed to src/test/run-pass/associated-consts/associated-const-range-match-patterns.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213

1314
struct Foo;
1415

Diff for: src/test/ui/run-pass/associated-types/associated-types-cc.rs renamed to src/test/run-pass/associated-types/associated-types-cc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213
// aux-build:associated-types-cc-lib.rs
1314

1415
// Test that we are able to reference cross-crate traits that employ

Diff for: src/test/ui/run-pass/associated-types/associated-types-duplicate-binding-in-env-hrtb.rs renamed to src/test/run-pass/associated-types/associated-types-duplicate-binding-in-env-hrtb.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// Check that we do not report ambiguities when equivalent predicates
1314
// (modulo bound lifetime names) appears in the environment
1415
// twice. Issue #21965.

Diff for: src/test/ui/run-pass/associated-types/associated-types-duplicate-binding-in-env.rs renamed to src/test/run-pass/associated-types/associated-types-duplicate-binding-in-env.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// Check that we do not report ambiguities when the same predicate
1314
// appears in the environment twice. Issue #21965.
1415

Diff for: src/test/ui/run-pass/associated-types/associated-types-impl-redirect.rs renamed to src/test/run-pass/associated-types/associated-types-impl-redirect.rs

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
13+
#![allow(unused_mut)]
14+
#![allow(unused_imports)]
1215
// Test how resolving a projection interacts with inference. In this
1316
// case, we were eagerly unifying the type variable for the iterator
1417
// type with `I` from the where clause, ignoring the in-scope `impl`

Diff for: src/test/ui/run-pass/associated-types/associated-types-issue-21212.rs renamed to src/test/run-pass/associated-types/associated-types-issue-21212.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213
// Regression test for #21212: an overflow occurred during trait
1314
// checking where normalizing `Self::Input` led to normalizing the
1415
// where clauses in the environment which in turn required normalizing

Diff for: src/test/ui/run-pass/associated-types/associated-types-nested-projections.rs renamed to src/test/run-pass/associated-types/associated-types-nested-projections.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213
// Test that we can resolve nested projection types. Issue #20666.
1314

1415
// pretty-expanded FIXME #23616

Diff for: src/test/ui/run-pass/associated-types/associated-types-normalize-in-bounds-binding.rs renamed to src/test/run-pass/associated-types/associated-types-normalize-in-bounds-binding.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213
// Test that we normalize associated types that appear in a bound that
1314
// contains a binding. Issue #21664.
1415

Diff for: src/test/ui/run-pass/associated-types/associated-types-normalize-in-bounds-ufcs.rs renamed to src/test/run-pass/associated-types/associated-types-normalize-in-bounds-ufcs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213
// Test that we normalize associated types that appear in bounds; if
1314
// we didn't, the call to `self.split2()` fails to type check.
1415

Diff for: src/test/ui/run-pass/associated-types/associated-types-normalize-in-bounds.rs renamed to src/test/run-pass/associated-types/associated-types-normalize-in-bounds.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213
// Test that we normalize associated types that appear in bounds; if
1314
// we didn't, the call to `self.split2()` fails to type check.
1415

Diff for: src/test/ui/run-pass/associated-types/associated-types-projection-bound-in-supertraits.rs renamed to src/test/run-pass/associated-types/associated-types-projection-bound-in-supertraits.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_variables)]
1213
// Test that we correctly handle projection bounds appearing in the
1314
// supertrait list (and in conjunction with overloaded operators). In
1415
// this case, the `Result=Self` binding in the supertrait listing of

Diff for: src/test/ui/run-pass/associated-types/associated-types-projection-in-object-type.rs renamed to src/test/run-pass/associated-types/associated-types-projection-in-object-type.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
13+
#![allow(unused_imports)]
1214
// Corrected regression test for #20831. The original did not compile.
1315
// When fixed, it revealed another problem concerning projections that
1416
// appear in associated type bindings in object types, which were not

Diff for: src/test/ui/run-pass/associated-types/associated-types-projection-in-supertrait.rs renamed to src/test/run-pass/associated-types/associated-types-projection-in-supertrait.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// Test that we are handle to correctly handle a projection type
1314
// that appears in a supertrait bound. Issue #20559.
1415

Diff for: src/test/ui/run-pass/associated-types/associated-types-projection-in-where-clause.rs renamed to src/test/run-pass/associated-types/associated-types-projection-in-where-clause.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
13+
#![allow(unused_variables)]
1214
// Test a where clause that uses a non-normalized projection type.
1315

1416
// pretty-expanded FIXME #23616

Diff for: src/test/ui/run-pass/associated-types/associated-types-region-erasure-issue-20582.rs renamed to src/test/run-pass/associated-types/associated-types-region-erasure-issue-20582.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// Regression test for #20582. This test caused an ICE related to
1314
// inconsistent region erasure in codegen.
1415

Diff for: src/test/ui/run-pass/associated-types/associated-types-sugar-path.rs renamed to src/test/run-pass/associated-types/associated-types-sugar-path.rs

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
13+
#![allow(unused_variables)]
14+
#![allow(unused_imports)]
1215
// Test paths to associated types using the type-parameter-only sugar.
1316

1417
use std::ops::Deref;

Diff for: src/test/ui/run-pass/associated-types/associated-types-where-clause-impl-ambiguity.rs renamed to src/test/run-pass/associated-types/associated-types-where-clause-impl-ambiguity.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
13+
#![allow(unused_imports)]
1214
// Test how resolving a projection interacts with inference. In this
1315
// case, we were eagerly unifying the type variable for the iterator
1416
// type with `I` from the where clause, ignoring the in-scope `impl`

Diff for: src/test/ui/run-pass/autoref-autoderef/autoderef-and-borrow-method-receiver.rs renamed to src/test/run-pass/autoref-autoderef/autoderef-and-borrow-method-receiver.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// pretty-expanded FIXME #23616
1314

1415
struct Foo {
File renamed without changes.

Diff for: src/test/ui/run-pass/binding/bind-field-short-with-modifiers.rs renamed to src/test/run-pass/binding/bind-field-short-with-modifiers.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_assignments)]
13+
#![allow(unused_variables)]
1214
#![allow(non_shorthand_field_patterns)]
1315

1416
pub fn main() {
File renamed without changes.

Diff for: src/test/ui/run-pass/binding/fat-arrow-match.rs renamed to src/test/run-pass/binding/fat-arrow-match.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
#![allow(non_camel_case_types)]
1314

1415
enum color {

Diff for: src/test/ui/run-pass/binding/func-arg-incomplete-pattern.rs renamed to src/test/run-pass/binding/func-arg-incomplete-pattern.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// Test that we do not leak when the arg pattern must drop part of the
1314
// argument (in this case, the `y` field).
1415

Diff for: src/test/ui/run-pass/binding/if-let.rs renamed to src/test/run-pass/binding/if-let.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213

1314
pub fn main() {
1415
let x = Some(3);

Diff for: src/test/ui/run-pass/binding/inconsistent-lifetime-mismatch.rs renamed to src/test/run-pass/binding/inconsistent-lifetime-mismatch.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// pretty-expanded FIXME #23616
1314

1415
fn foo(_: &[&str]) {}

Diff for: src/test/ui/run-pass/binding/match-arm-statics.rs renamed to src/test/run-pass/binding/match-arm-statics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// compile-flags: -g
1314

1415
#[derive(PartialEq, Eq)]

Diff for: src/test/ui/run-pass/binding/match-bot-2.rs renamed to src/test/run-pass/binding/match-bot-2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unreachable_code)]
1213
// n.b. This was only ever failing with optimization disabled.
1314

1415
fn a() -> isize { match return 1 { 2 => 3, _ => panic!() } }
File renamed without changes.

Diff for: src/test/ui/run-pass/binding/match-enum-struct-0.rs renamed to src/test/run-pass/binding/match-enum-struct-0.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// regression test for issue #5625
1314

1415

Diff for: src/test/ui/run-pass/binding/match-enum-struct-1.rs renamed to src/test/run-pass/binding/match-enum-struct-1.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213

1314
enum E {
1415
Foo{f : isize},

Diff for: src/test/ui/run-pass/binding/match-join.rs renamed to src/test/run-pass/binding/match-join.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_mut)]
1213
fn foo<T>(y: Option<T>) {
1314
let mut x: isize;
1415
let mut rs: Vec<isize> = Vec::new();

Diff for: src/test/ui/run-pass/binding/match-naked-record.rs renamed to src/test/run-pass/binding/match-naked-record.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// pretty-expanded FIXME #23616
1314

1415
struct X { x: isize }

Diff for: src/test/ui/run-pass/binding/match-path.rs renamed to src/test/run-pass/binding/match-path.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
#![allow(non_camel_case_types)]
1314

1415

Diff for: src/test/ui/run-pass/binding/match-pattern-no-type-params.rs renamed to src/test/run-pass/binding/match-pattern-no-type-params.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
#![allow(non_camel_case_types)]
1314

1415
enum maybe<T> { nothing, just(T), }

Diff for: src/test/ui/run-pass/binding/match-pattern-simple.rs renamed to src/test/run-pass/binding/match-pattern-simple.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213

1314

1415
// pretty-expanded FIXME #23616

Diff for: src/test/ui/run-pass/binding/match-phi.rs renamed to src/test/run-pass/binding/match-phi.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
13+
#![allow(unused_assignments)]
1214
// pretty-expanded FIXME #23616
1315
#![allow(non_camel_case_types)]
1416
#![allow(unused_variables)]

Diff for: src/test/ui/run-pass/binding/match-str.rs renamed to src/test/run-pass/binding/match-str.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// Issue #53
1314
#![allow(non_camel_case_types)]
1415

Diff for: src/test/ui/run-pass/binding/match-tag.rs renamed to src/test/run-pass/binding/match-tag.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_mut)]
1213
#![allow(non_camel_case_types)]
1314

1415

File renamed without changes.

Diff for: src/test/ui/run-pass/binding/mut-in-ident-patterns.rs renamed to src/test/run-pass/binding/mut-in-ident-patterns.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
13+
#![allow(unused_assignments)]
1214
#![allow(non_camel_case_types)]
1315
#![allow(non_shorthand_field_patterns)]
1416

Diff for: src/test/ui/run-pass/binding/nested-exhaustive-match.rs renamed to src/test/run-pass/binding/nested-exhaustive-match.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
// pretty-expanded FIXME #23616
1314

1415
struct Foo { foo: bool, bar: Option<isize>, baz: isize }

Diff for: src/test/ui/run-pass/binding/nested-matchs.rs renamed to src/test/run-pass/binding/nested-matchs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_mut)] // under NLL we get warning about `bar` below
1213
fn baz() -> ! { panic!(); }
1314

1415
fn foo() {

Diff for: src/test/ui/run-pass/binding/nested-pattern.rs renamed to src/test/run-pass/binding/nested-pattern.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
#![allow(non_camel_case_types)]
1314

1415
// a bug was causing this to complain about leaked memory on exit

Diff for: src/test/ui/run-pass/binding/optional_comma_in_match_arm.rs renamed to src/test/run-pass/binding/optional_comma_in_match_arm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(unused_unsafe)]
1213
// ignore-pretty issue #37199
1314
#![allow(while_true)]
1415

File renamed without changes.
File renamed without changes.

Diff for: src/test/ui/run-pass/binding/use-uninit-match.rs renamed to src/test/run-pass/binding/use-uninit-match.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// run-pass
12+
#![allow(dead_code)]
1213
#![allow(non_camel_case_types)]
1314

1415

0 commit comments

Comments
 (0)