Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate src/test/ui/run-pass/* back to src/test/run-pass/. #54530

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(stable_features)]

#![feature(const_indexing)]
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]

// Checks that mutable static items can have mutable slices

Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_assignments)]

pub fn main() {
let x : &[isize] = &[1,2,3,4,5];
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_variables)]

// Test slicing sugar.

Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_mut)]


pub fn main() {
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_variables)]

// pretty-expanded FIXME #23616

Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_variables)]

#![feature(slice_patterns)]

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]

struct Foo;

Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

// Test that we are able to reference cross-crate traits that employ
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
// Check that we do not report ambiguities when equivalent predicates
// (modulo bound lifetime names) appears in the environment
// twice. Issue #21965.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(unused_mut)]
#![allow(unused_imports)]
// Test how resolving a projection interacts with inference. In this
// case, we were eagerly unifying the type variable for the iterator
// type with `I` from the where clause, ignoring the in-scope `impl`
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_variables)]
// Regression test for #21212: an overflow occurred during trait
// checking where normalizing `Self::Input` led to normalizing the
// where clauses in the environment which in turn required normalizing
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

// pretty-expanded FIXME #23616
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_variables)]
// Test that we correctly handle projection bounds appearing in the
// supertrait list (and in conjunction with overloaded operators). In
// this case, the `Result=Self` binding in the supertrait listing of
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(unused_imports)]
// Corrected regression test for #20831. The original did not compile.
// When fixed, it revealed another problem concerning projections that
// appear in associated type bindings in object types, which were not
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@
// except according to those terms.

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

// pretty-expanded FIXME #23616
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(unused_imports)]
// Test paths to associated types using the type-parameter-only sugar.

use std::ops::Deref;
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(unused_imports)]
// Test how resolving a projection interacts with inference. In this
// case, we were eagerly unifying the type variable for the iterator
// type with `I` from the where clause, ignoring the in-scope `impl`
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

struct Foo {
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@
// except according to those terms.

// run-pass
#![allow(unused_assignments)]
#![allow(unused_variables)]
#![allow(non_shorthand_field_patterns)]

pub fn main() {
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

enum color {
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]

pub fn main() {
let x = Some(3);
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

fn foo(_: &[&str]) {}
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
// compile-flags: -g

#[derive(PartialEq, Eq)]
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

fn a() -> isize { match return 1 { 2 => 3, _ => panic!() } }
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
// regression test for issue #5625


Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]

enum E {
Foo{f : isize},
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_mut)]
fn foo<T>(y: Option<T>) {
let mut x: isize;
let mut rs: Vec<isize> = Vec::new();
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

struct X { x: isize }
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]


Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

enum maybe<T> { nothing, just(T), }
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]


// pretty-expanded FIXME #23616
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(unused_assignments)]
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
#![allow(unused_variables)]
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
// Issue #53
#![allow(non_camel_case_types)]

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_mut)]
#![allow(non_camel_case_types)]


File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(unused_assignments)]
#![allow(non_camel_case_types)]
#![allow(non_shorthand_field_patterns)]

Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

struct Foo { foo: bool, bar: Option<isize>, baz: isize }
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

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

fn foo() {
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]

// a bug was causing this to complain about leaked memory on exit
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(unused_unsafe)]
// ignore-pretty issue #37199
#![allow(while_true)]

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
// except according to those terms.

// run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]


Loading