Fix run-pass-fulldeps tests
This commit is contained in:
parent
f2fd00005e
commit
f22ccbe315
35 changed files with 20 additions and 89 deletions
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::slice;
|
||||
|
||||
trait Bound {}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
pub mod testtypes {
|
||||
use std::any::TypeId;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::any::{Any, TypeId};
|
||||
|
||||
pub struct A;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::any::{Any, TypeId};
|
||||
|
||||
pub struct A;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![feature(staged_api)]
|
||||
#![stable(feature = "unit_test", since = "0.0.0")]
|
||||
#![stable(feature = "unit_test", since = "1.0.0")]
|
||||
|
||||
#[unstable(feature = "unstable_macros", issue = "0")]
|
||||
#[macro_export]
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
pub trait DeclaredTrait {
|
||||
type Type;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@
|
|||
// Test that overloaded index expressions with DST result types
|
||||
// work and don't ICE.
|
||||
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::ops::Index;
|
||||
use std::fmt::Debug;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::ops::Add;
|
||||
|
||||
extern "C" fn foo<T: Add>(a: T, b: T) -> T::Output { a + b }
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@
|
|||
// If `Index` used an associated type for its output, this test would
|
||||
// work more smoothly.
|
||||
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::ops::Index;
|
||||
|
||||
struct Mat<T> { data: Vec<T>, cols: usize, }
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
trait Str { fn foo(&self) {} }
|
||||
impl Str for str {}
|
||||
impl<'a, S: ?Sized> Str for &'a S where S: Str {}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
extern crate core;
|
||||
use core::marker::Sync;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
// This used to cause an ICE because the retslot for the "return" had the wrong type
|
||||
fn testcase<'a>() -> Box<Iterator<Item=usize> + 'a> {
|
||||
return Box::new((0..3).map(|i| { return i; }));
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@
|
|||
// that are already linked in. Using WriterUtil allows us to use the write_line
|
||||
// method.
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::fmt;
|
||||
use std::iter::repeat;
|
||||
use std::slice;
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
// Issue Name: pub method preceded by attribute can't be parsed
|
||||
// Abstract: Visibility parsing failed when compiler parsing
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::f64;
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@
|
|||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
trait A {
|
||||
fn foo(self);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::cmp;
|
||||
use std::ops;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@
|
|||
// Test overloading of the `[]` operator. In particular test that it
|
||||
// takes its argument *by reference*.
|
||||
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::ops::Index;
|
||||
|
||||
struct AssociationList<K,V> {
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@
|
|||
// Test using overloaded indexing when the "map" is stored in a
|
||||
// field. This caused problems at some point.
|
||||
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::ops::Index;
|
||||
|
||||
struct Foo {
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::ops::{Index, IndexMut};
|
||||
|
||||
struct Foo {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
// ignore-bitrig
|
||||
// compile-flags: -C codegen_units=2
|
||||
|
||||
#![feature(core)]
|
||||
#![feature(iter_arith)]
|
||||
|
||||
mod a {
|
||||
|
|
|
|||
|
|
@ -10,9 +10,6 @@
|
|||
|
||||
// Test slicing sugar.
|
||||
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
extern crate core;
|
||||
use core::ops::{Index, IndexMut, Range, RangeTo, RangeFrom, RangeFull};
|
||||
|
||||
|
|
|
|||
|
|
@ -8,13 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
|
||||
// this is for the wrapping_add call below.
|
||||
#![feature(core)]
|
||||
|
||||
/*!
|
||||
* Tests the range assertion wraparound case when reading discriminants.
|
||||
*/
|
||||
// Tests the range assertion wraparound case when reading discriminants.
|
||||
|
||||
#[repr(u8)]
|
||||
#[derive(Copy, Clone)]
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
trait U {}
|
||||
trait T<X: U> { fn get(self) -> X; }
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::cmp::PartialOrd;
|
||||
|
||||
pub trait NumCast: Sized {
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@
|
|||
// Test that type IDs correctly account for higher-rank lifetimes
|
||||
// Also acts as a regression test for an ICE (issue #19791)
|
||||
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::any::{Any, TypeId};
|
||||
|
||||
struct Struct<'a>(&'a ());
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
//
|
||||
|
||||
#![feature(core)]
|
||||
|
||||
use std::str;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@
|
|||
// us from approximating the lifetimes of `field1` and `field2` to a
|
||||
// common intersection.
|
||||
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![feature(core)]
|
||||
|
||||
struct List<'l> {
|
||||
field1: &'l i32,
|
||||
|
|
|
|||
|
|
@ -10,9 +10,7 @@
|
|||
|
||||
// Test that vec is now covariant in its argument type.
|
||||
|
||||
|
||||
#![allow(dead_code)]
|
||||
#![feature(core)]
|
||||
|
||||
fn foo<'a,'b>(v1: Vec<&'a i32>, v2: Vec<&'b i32>) -> i32 {
|
||||
bar(v1, v2).cloned().unwrap_or(0) // only type checks if we can intersect 'a and 'b
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue