|
1 | 1 | #[macro_use] |
2 | | -pub mod sym; |
| 2 | +pub mod sym_helper; |
3 | 3 |
|
4 | 4 | #[allow(clippy::module_name_repetitions)] |
5 | 5 | pub mod ast_utils; |
@@ -56,8 +56,8 @@ use rustc_semver::RustcVersion; |
56 | 56 | use rustc_session::Session; |
57 | 57 | use rustc_span::hygiene::{ExpnKind, MacroKind}; |
58 | 58 | use rustc_span::source_map::original_sp; |
59 | | -use rustc_span::sym as rustc_sym; |
60 | | -use rustc_span::symbol::{self, kw, Symbol}; |
| 59 | +use rustc_span::sym; |
| 60 | +use rustc_span::symbol::{kw, Symbol}; |
61 | 61 | use rustc_span::{BytePos, Pos, Span, DUMMY_SP}; |
62 | 62 | use rustc_target::abi::Integer; |
63 | 63 | use rustc_trait_selection::traits::query::normalize::AtExt; |
@@ -1121,7 +1121,7 @@ pub fn is_refutable(cx: &LateContext<'_>, pat: &Pat<'_>) -> bool { |
1121 | 1121 | /// Checks for the `#[automatically_derived]` attribute all `#[derive]`d |
1122 | 1122 | /// implementations have. |
1123 | 1123 | pub fn is_automatically_derived(attrs: &[ast::Attribute]) -> bool { |
1124 | | - attrs.iter().any(|attr| attr.has_name(rustc_sym::automatically_derived)) |
| 1124 | + attrs.iter().any(|attr| attr.has_name(sym::automatically_derived)) |
1125 | 1125 | } |
1126 | 1126 |
|
1127 | 1127 | /// Remove blocks around an expression. |
@@ -1514,7 +1514,7 @@ pub fn is_must_use_func_call(cx: &LateContext<'_>, expr: &Expr<'_>) -> bool { |
1514 | 1514 | pub fn is_no_std_crate(krate: &Crate<'_>) -> bool { |
1515 | 1515 | krate.item.attrs.iter().any(|attr| { |
1516 | 1516 | if let ast::AttrKind::Normal(ref attr, _) = attr.kind { |
1517 | | - attr.path == symbol::sym::no_std |
| 1517 | + attr.path == sym::no_std |
1518 | 1518 | } else { |
1519 | 1519 | false |
1520 | 1520 | } |
|
0 commit comments