提交 b4d3df65 编写于 作者: J Jeffrey Seyfried

Stabilize RFC 1560.

上级 bfa709a3
......@@ -11,7 +11,6 @@
use std::prelude::v1::*;
use std::{i16, f64};
use super::super::*;
use core::num::flt2dec::*;
use core::num::bignum::Big32x40 as Big;
use core::num::flt2dec::strategy::dragon::*;
......
......@@ -10,7 +10,6 @@
use std::{i16, f64};
use super::super::*;
use core::num::flt2dec::*;
use core::num::flt2dec::strategy::grisu::*;
#[test]
......
......@@ -9,9 +9,7 @@
// except according to those terms.
use super::*;
use super::MapEntry::*;
use hir::*;
use hir::intravisit::Visitor;
use hir::def_id::DefId;
use middle::cstore::InlinedItem;
......
......@@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use super::*;
use hir::map::definitions::*;
use hir;
use hir::intravisit;
......
......@@ -33,6 +33,7 @@
#![feature(core_intrinsics)]
#![cfg_attr(stage0, feature(dotdot_in_tuple_patterns))]
#![feature(enumset)]
#![cfg_attr(stage0, feature(item_like_imports))]
#![feature(libc)]
#![feature(nonzero)]
#![feature(quote)]
......
......@@ -21,7 +21,6 @@
use rustc::middle::region::CodeExtent;
use rustc::ty::{self, AdtKind, VariantDef, Ty};
use rustc::ty::cast::CastKind as TyCastKind;
use rustc::mir::*;
use rustc::hir;
use syntax::ptr::P;
......
......@@ -16,7 +16,6 @@
*/
use hair::*;
use rustc::mir::*;
use rustc::mir::transform::MirSource;
use rustc::middle::const_val::ConstVal;
......
......@@ -23,6 +23,7 @@
#![feature(associated_consts)]
#![feature(box_patterns)]
#![cfg_attr(stage0, feature(dotdot_in_tuple_patterns))]
#![cfg_attr(stage0, feature(item_like_imports))]
#![feature(rustc_diagnostic_macros)]
#![feature(rustc_private)]
#![feature(staged_api)]
......
......@@ -59,7 +59,7 @@ fn f() {
An example of this error:
```compile_fail
```ignore
use foo::baz;
use bar::*; // error, do `use foo::baz as quux` instead on the previous line
......
......@@ -1333,7 +1333,7 @@ pub fn new(session: &'a Session,
span: DUMMY_SP,
vis: ty::Visibility::Public,
}),
new_import_semantics: session.features.borrow().item_like_imports,
new_import_semantics: true,
use_extern_macros: session.features.borrow().use_extern_macros,
exported_macros: Vec::new(),
......
......@@ -284,9 +284,6 @@ pub fn new() -> Features {
// instead of just the platforms on which it is the C ABI
(active, abi_sysv64, "1.13.0", Some(36167)),
// Use the import semantics from RFC 1560.
(active, item_like_imports, "1.13.0", Some(35120)),
// Macros 1.1
(active, proc_macro, "1.13.0", Some(35900)),
......@@ -362,6 +359,7 @@ pub fn new() -> Features {
(accepted, question_mark, "1.13.0", Some(31436)),
// Allows `..` in tuple (struct) patterns
(accepted, dotdot_in_tuple_patterns, "1.14.0", Some(33627)),
(accepted, item_like_imports, "1.14.0", Some(35120)),
);
// (changing above list without updating src/doc/reference.md makes @cmr sad)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册