dyn_trait feature-gate just for stage0
This commit is contained in:
parent
c86f1c8cc3
commit
0efb5677d7
10 changed files with 5 additions and 14 deletions
|
@ -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))]
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
// compile-pass
|
||||
// failure-status: 1
|
||||
|
||||
#![feature(dyn_trait)]
|
||||
|
||||
use std::error::Error;
|
||||
use std::io;
|
||||
|
||||
|
|
|
@ -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>> {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
#![allow(warnings)]
|
||||
|
||||
#![feature(dyn_trait)]
|
||||
#![feature(in_band_lifetimes)]
|
||||
|
||||
use std::fmt::Debug;
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
// compile-flags: -Z parse-only
|
||||
|
||||
#![feature(dyn_trait)]
|
||||
#![feature(raw_identifiers)]
|
||||
|
||||
fn test_if() {
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
//
|
||||
// cc #48468
|
||||
|
||||
#![feature(dyn_trait)]
|
||||
|
||||
use std::fmt::Debug;
|
||||
|
||||
struct Foo {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue