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 (some) of run-pass/ to ui #53860

Merged
merged 17 commits into from
Sep 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
7834c22
Migrated slew of run-pass tests to various subdirectories of `ui/run-…
pnkfelix Aug 30, 2018
0909e0b
Add `// run-pass` annotations to all the tests under `ui/run-pass/`.
pnkfelix Aug 30, 2018
06f36a0
Move a bunch of auxiliary support files into `ui/run-pass/**/auxiliary`.
pnkfelix Aug 31, 2018
90241df
Remove references to a collection of unknown lints.
pnkfelix Aug 31, 2018
e462c1a
Add `#![allow(..)]` for a slew of lints of migrated run-pass tests, t…
pnkfelix Aug 31, 2018
8bcf37d
Add `#[allow(improper_ctypes)]` to slew of cases that need e.g. `repr…
pnkfelix Aug 31, 2018
d18b3bf
Add `#![allow(improper_ctypes)]` to extern-pass-empty.rs; note this t…
pnkfelix Aug 31, 2018
175d7f4
Add `.stderr` file for test where there are conflicting repr hints.
pnkfelix Aug 31, 2018
f78b9ad
Alpha-rename label to avoid the shadowing lint (which cannot be silen…
pnkfelix Aug 31, 2018
90412f1
Add `.stderr` files for shadowed labels where the point of the test i…
pnkfelix Aug 31, 2018
dc7685e
Update line numbers to reflect added lines at beginning of tests.
pnkfelix Aug 31, 2018
4a9e55e
Allow illegal_floating_point_literal_pattern. These will need to be u…
pnkfelix Aug 31, 2018
18a77ae
Allow uses of `#[unsafe_destructor_blind_to_params]`. Should be porte…
pnkfelix Aug 31, 2018
2bce9b0
Add `.stdout` file for test of `log_syntax!` and `trace_macros!`.
pnkfelix Aug 31, 2018
f97eea1
Add `.stderr` file for test that appears to trigger a lint that canno…
pnkfelix Aug 31, 2018
dc124e4
Add `#![allow(stable_features)]` to ease review.
pnkfelix Aug 31, 2018
5fe0851
Allow more lints, mainly overflowing_literals for cases that only aro…
pnkfelix Sep 4, 2018
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

use std::cell::Cell;

#[derive(Debug)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

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

#![feature(const_indexing)]

fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

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

// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
// destructor.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

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

// Test that we cleanup dynamic sized Box<[D]> properly when D has a
// destructor.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass


// issues #10618 and #16382
// pretty-expanded FIXME #23616
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Checks that mutable static items can have mutable slices


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Check that the various ways of getting to a reference to a vec (both sized
// and unsized) work properly.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Ensure that we can copy out of a fixed-size array.
//
// (Compare with compile-fail/move-out-of-array-1.rs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Ensure that we can do a destructuring bind of a fixed-size array,
// even when the element type has a destructor.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// pretty-expanded FIXME #23616

#![allow(unused_mut)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass


pub fn main() {
let x = "hello";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

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

pub fn main() {
let x : &[isize] = &[1,2,3,4,5];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass


pub fn main() {
let arr = [1,2,3];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass


use std::mem::size_of;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

fn f(_a: Vec<isize> ) { }
pub fn main() { f(vec![1, 2, 3, 4, 5]); }
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass


fn test1() {
let mut ints = [0; 32];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

fn grow(v: &mut Vec<isize> ) {
v.push(1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Test that using the `vec!` macro nested within itself works

fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Test that using the `vec!` macro nested within itself works
// when the contents implement Drop

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

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

// ignore-emscripten no threads support

// Test that using the `vec!` macro nested within itself works when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

static FOO: [isize; 3] = [1, 2, 3];

pub fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![allow(non_camel_case_types)]

trait sum {
fn sum_(self) -> isize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

pub fn main() {
let x = [ [true]; 512 ];
let y = [ 0; 1 ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#[derive(Debug)]
struct Foo(Box<[u8]>);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Test slicing expressions on slices and Vecs.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

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

// compile-flags: -C debug-assertions

#![feature(iter_to_slice)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// ignore-emscripten no threads support

// Test that if a slicing expr[..] fails, the correct cleanups happen.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// ignore-emscripten no threads support

// Test that if a slicing expr[..] fails, the correct cleanups happen.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Test slicing sugar.

extern crate core;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Test binary_search_by_key lifetime. Issue #34683

#[derive(Debug)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// Test that vec is now covariant in its argument type.

#![allow(dead_code)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

use std::vec;

pub fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(box_syntax)]

pub fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass


use std::mem::size_of;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass



pub fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass


pub fn main() {
let mut later: Vec<isize> ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// ignore-emscripten no no_std executables

#![feature(lang_items, start, libc, alloc)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass



pub fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass


fn one() -> i32 { 1 }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// pretty-expanded FIXME #23616

macro_rules! vec [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass



pub fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
#![allow(illegal_floating_point_literal_pattern)] // FIXME #41620

pub fn main() {
let x = [1, 2, 3];
match x {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(slice_patterns)]

fn a() {
Expand Down
Loading