X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibsyntax%2Ffeature_gate.rs;h=6c780369a0a2d92887e5bcc9b18a261ad0c6a2cd;hb=7bb082d27fe472f52b103de0ae9fc6fa7e6546cc;hp=bf4c637045f9c5d768b90c5557abf4f2b104e3fa;hpb=2596bc1368d1e3d34c9a7841ad87a3100f01cbad;p=rust.git diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index bf4c637045f..6c780369a0a 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -12,21 +12,23 @@ //! gate usage is added, *do not remove it again* even once the feature //! becomes stable. -use self::AttributeType::*; -use self::AttributeGate::*; +use AttributeType::*; +use AttributeGate::*; + +use crate::ast::{self, NodeId, PatKind, RangeEnd}; +use crate::attr; +use crate::early_buffered_lints::BufferedEarlyLintId; +use crate::source_map::Spanned; +use crate::edition::{ALL_EDITIONS, Edition}; +use crate::errors::{DiagnosticBuilder, Handler}; +use crate::visit::{self, FnKind, Visitor}; +use crate::parse::ParseSess; +use crate::symbol::Symbol; use rustc_data_structures::fx::FxHashMap; use rustc_target::spec::abi::Abi; -use ast::{self, NodeId, PatKind, RangeEnd}; -use attr; -use early_buffered_lints::BufferedEarlyLintId; -use source_map::Spanned; -use edition::{ALL_EDITIONS, Edition}; use syntax_pos::{Span, DUMMY_SP}; -use errors::{DiagnosticBuilder, Handler}; -use visit::{self, FnKind, Visitor}; -use parse::ParseSess; -use symbol::Symbol; +use log::debug; use std::env; @@ -778,8 +780,8 @@ pub enum Stability { } // fn() is not Debug -impl ::std::fmt::Debug for AttributeGate { - fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { +impl std::fmt::Debug for AttributeGate { + fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match *self { Gated(ref stab, name, expl, _) => write!(fmt, "Gated({:?}, {}, {})", stab, name, expl),