1
Fork 0

dyn_trait feature-gate just for stage0

This commit is contained in:
Christian Poveda 2018-04-12 16:55:09 -05:00
parent c86f1c8cc3
commit 0efb5677d7
10 changed files with 5 additions and 14 deletions

View file

@ -45,8 +45,8 @@
#![feature(const_fn)]
#![feature(core_intrinsics)]
#![feature(drain_filter)]
#![feature(dyn_trait)]
#![feature(entry_or_default)]
#![cfg_attr(stage0, feature(dyn_trait))]
#![feature(from_ref)]
#![feature(fs_read_write)]
#![cfg_attr(windows, feature(libc))]

View file

@ -24,7 +24,7 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
#![feature(const_fn)]
#![feature(core_intrinsics)]
#![feature(decl_macro)]
#![feature(dyn_trait)]
#![cfg_attr(stage0, feature(dyn_trait))]
#![feature(fs_read_write)]
#![feature(macro_vis_matcher)]
#![feature(exhaustive_patterns)]

View file

@ -71,6 +71,8 @@ This API is completely unstable and subject to change.
#![allow(non_camel_case_types)]
#![cfg_attr(stage0, feature(dyn_trait))]
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(crate_visibility_modifier)]
@ -81,8 +83,8 @@ This API is completely unstable and subject to change.
#![feature(rustc_diagnostic_macros)]
#![feature(slice_patterns)]
#![feature(slice_sort_by_cached_key)]
#![feature(dyn_trait)]
#![feature(never_type)]
#![feature(underscore_lifetimes)]
#[macro_use] extern crate log;
#[macro_use] extern crate syntax;

View file

@ -11,8 +11,6 @@
// compile-pass
// failure-status: 1
#![feature(dyn_trait)]
use std::error::Error;
use std::io;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(dyn_trait)]
use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(dyn_trait)]
#![feature(conservative_impl_trait, universal_impl_trait)]
use std::fmt::Debug;

View file

@ -13,7 +13,6 @@
#![allow(warnings)]
#![feature(dyn_trait)]
#![feature(in_band_lifetimes)]
use std::fmt::Debug;

View file

@ -10,7 +10,6 @@
// compile-flags: -Z parse-only
#![feature(dyn_trait)]
#![feature(raw_identifiers)]
fn test_if() {

View file

@ -13,8 +13,6 @@
//
// cc #48468
#![feature(dyn_trait)]
use std::fmt::Debug;
struct Foo {

View file

@ -13,8 +13,6 @@
//
// cc #48468
#![feature(dyn_trait)]
fn a<T>(items: &[T]) -> Box<dyn Iterator<Item=&T>> {
// ^^^^^^^^^^^^^^^^^^^^^ bound *here* defaults to `'static`
Box::new(items.iter()) //~ ERROR cannot infer an appropriate lifetime