import_span: Span,
name: Name,
namespace: Namespace) {
- if self.session.features.borrow().import_shadowing {
- return
- }
-
debug!("check_for_conflicting_import: {}; target exists: {}",
token::get_name(name).get(),
target.is_some());
&ImportResolution,
import_span: Span,
name: Name) {
- if self.session.features.borrow().import_shadowing {
- return
- }
-
// First, check for conflicts between imports and `extern crate`s.
if module.external_module_children
.borrow()
module: &Module,
name: Name,
span: Span) {
- if self.session.features.borrow().import_shadowing {
- return
- }
-
if module.external_module_children.borrow().contains_key(&name) {
self.session
.span_err(span,
module: &Module,
name: Name,
span: Span) {
- if self.session.features.borrow().import_shadowing {
- return
- }
-
if module.external_module_children.borrow().contains_key(&name) {
self.session
.span_err(span,
("rustc_diagnostic_macros", Active),
("unboxed_closures", Active),
- ("import_shadowing", Active),
+ ("import_shadowing", Removed),
("advanced_slice_patterns", Active),
("tuple_indexing", Accepted),
("associated_types", Accepted),
pub struct Features {
pub unboxed_closures: bool,
pub rustc_diagnostic_macros: bool,
- pub import_shadowing: bool,
pub visible_private_types: bool,
pub quote: bool,
pub old_orphan_check: bool,
Features {
unboxed_closures: false,
rustc_diagnostic_macros: false,
- import_shadowing: false,
visible_private_types: false,
quote: false,
old_orphan_check: false,
(Features {
unboxed_closures: cx.has_feature("unboxed_closures"),
rustc_diagnostic_macros: cx.has_feature("rustc_diagnostic_macros"),
- import_shadowing: cx.has_feature("import_shadowing"),
visible_private_types: cx.has_feature("visible_private_types"),
quote: cx.has_feature("quote"),
old_orphan_check: cx.has_feature("old_orphan_check"),