Pass a Symbol
to check_name
, emit_feature_err
, and related functions.
This commit is contained in:
parent
79602c87b5
commit
fb084a48e2
114 changed files with 671 additions and 621 deletions
|
@ -33,7 +33,7 @@ mod span_encoding;
|
|||
pub use span_encoding::{Span, DUMMY_SP};
|
||||
|
||||
pub mod symbol;
|
||||
pub use symbol::sym;
|
||||
pub use symbol::{Symbol, sym};
|
||||
|
||||
mod analyze_source_file;
|
||||
|
||||
|
@ -388,7 +388,7 @@ impl Span {
|
|||
/// Checks if a span is "internal" to a macro in which `#[unstable]`
|
||||
/// items can be used (that is, a macro marked with
|
||||
/// `#[allow_internal_unstable]`).
|
||||
pub fn allows_unstable(&self, feature: &str) -> bool {
|
||||
pub fn allows_unstable(&self, feature: Symbol) -> bool {
|
||||
match self.ctxt().outer().expn_info() {
|
||||
Some(info) => info
|
||||
.allow_internal_unstable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue