diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-09 11:18:47 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-10 07:41:30 +0100 |
| commit | 8bd3d240e3fbfe5ad39585faef1fcfb4ae42ac59 (patch) | |
| tree | 0600a52ab918d3b176ece187a3f0b8e3ff68501c /src/libsyntax/attr | |
| parent | 2d8d559bbecf6272eb41f8a800e319238aa9d621 (diff) | |
| download | rust-8bd3d240e3fbfe5ad39585faef1fcfb4ae42ac59.tar.gz rust-8bd3d240e3fbfe5ad39585faef1fcfb4ae42ac59.zip | |
nix syntax::errors & prefer rustc_errors over errors
Diffstat (limited to 'src/libsyntax/attr')
| -rw-r--r-- | src/libsyntax/attr/builtin.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/attr/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/attr/builtin.rs b/src/libsyntax/attr/builtin.rs index b308d479545..958e4373cc0 100644 --- a/src/libsyntax/attr/builtin.rs +++ b/src/libsyntax/attr/builtin.rs @@ -6,7 +6,7 @@ use crate::feature_gate::feature_err; use crate::print::pprust; use crate::sess::ParseSess; -use errors::{struct_span_err, Applicability, Handler}; +use rustc_errors::{struct_span_err, Applicability, Handler}; use rustc_feature::{find_gated_cfg, is_builtin_attr_name, Features, GatedCfg}; use rustc_macros::HashStable_Generic; use rustc_span::hygiene::Transparency; diff --git a/src/libsyntax/attr/mod.rs b/src/libsyntax/attr/mod.rs index 8449b61f7b0..ec05dab451a 100644 --- a/src/libsyntax/attr/mod.rs +++ b/src/libsyntax/attr/mod.rs @@ -384,7 +384,7 @@ pub fn find_by_name(attrs: &[Attribute], name: Symbol) -> Option<&Attribute> { pub fn allow_internal_unstable<'a>( attrs: &[Attribute], - span_diagnostic: &'a errors::Handler, + span_diagnostic: &'a rustc_errors::Handler, ) -> Option<impl Iterator<Item = Symbol> + 'a> { find_by_name(attrs, sym::allow_internal_unstable).and_then(|attr| { attr.meta_item_list() |
