diff options
| author | bors <bors@rust-lang.org> | 2015-02-07 02:04:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-07 02:04:47 +0000 |
| commit | 7ebf9bc5c22155d622537ded42b4ebf94238b296 (patch) | |
| tree | b3f937f2f554e961236d3a2048778441ab062c5e /src/libsyntax/feature_gate.rs | |
| parent | d3732a12e896ab98aa27eaffab99a78bbaf837e4 (diff) | |
| parent | a2e01c62d5b6259d55b6688c8b059ac28e5dd03e (diff) | |
| download | rust-7ebf9bc5c22155d622537ded42b4ebf94238b296.tar.gz rust-7ebf9bc5c22155d622537ded42b4ebf94238b296.zip | |
Auto merge of #21505 - GuillaumeGomez:interned_string, r=alexcrichton
It's in order to make the code more homogeneous.
Diffstat (limited to 'src/libsyntax/feature_gate.rs')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index a93ddbb2379..12efd959918 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -21,6 +21,7 @@ //! For the purpose of future feature-tracking, once code for detection of feature //! gate usage is added, *do not remove it again* even once the feature //! becomes stable. + use self::Status::*; use abi::RustIntrinsic; @@ -255,7 +256,7 @@ impl<'a> PostExpansionVisitor<'a> { impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> { fn visit_name(&mut self, sp: Span, name: ast::Name) { - if !token::get_name(name).get().is_ascii() { + if !token::get_name(name).is_ascii() { self.gate_feature("non_ascii_idents", sp, "non-ascii idents are not fully supported."); } @@ -382,7 +383,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> { let links_to_llvm = match attr::first_attr_value_str_by_name(&i.attrs, "link_name") { - Some(val) => val.get().starts_with("llvm."), + Some(val) => val.starts_with("llvm."), _ => false }; if links_to_llvm { |
