]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_parse/config.rs
Rollup merge of #69794 - TimDiekmann:dangling, r=Amanieu
[rust.git] / src / librustc_parse / config.rs
index ec0d251a3f8df7fa545444811c9209c5c9550fe0..f42091e7c296aef8abcc2cbe4c3f660b6bf572a4 100644 (file)
@@ -9,6 +9,11 @@
 //! [#64197]: https://github.com/rust-lang/rust/issues/64197
 
 use crate::{parse_in, validate_attr};
+use rustc_ast::ast::{self, AttrItem, Attribute, MetaItem};
+use rustc_ast::attr::HasAttrs;
+use rustc_ast::mut_visit::*;
+use rustc_ast::ptr::P;
+use rustc_ast::util::map_in_place::MapInPlace;
 use rustc_attr as attr;
 use rustc_data_structures::fx::FxHashMap;
 use rustc_errors::{error_code, struct_span_err, Applicability, Handler};
 use rustc_span::edition::{Edition, ALL_EDITIONS};
 use rustc_span::symbol::{sym, Symbol};
 use rustc_span::{Span, DUMMY_SP};
-use syntax::ast::{self, AttrItem, Attribute, MetaItem};
-use syntax::attr::HasAttrs;
-use syntax::mut_visit::*;
-use syntax::ptr::P;
-use syntax::util::map_in_place::MapInPlace;
 
 use smallvec::SmallVec;
 
@@ -257,7 +257,7 @@ pub fn configure<T: HasAttrs>(&mut self, mut node: T) -> Option<T> {
     /// Parse and expand all `cfg_attr` attributes into a list of attributes
     /// that are within each `cfg_attr` that has a true configuration predicate.
     ///
-    /// Gives compiler warnigns if any `cfg_attr` does not contain any
+    /// Gives compiler warnings if any `cfg_attr` does not contain any
     /// attributes and is in the original source code. Gives compiler errors if
     /// the syntax of any `cfg_attr` is incorrect.
     pub fn process_cfg_attrs<T: HasAttrs>(&mut self, node: &mut T) {