]> git.lizzy.rs Git - rust.git/commitdiff
Get around tidy bug
authorvarkor <github@varkor.com>
Mon, 23 Jul 2018 01:20:50 +0000 (02:20 +0100)
committervarkor <github@varkor.com>
Sun, 5 Aug 2018 14:54:49 +0000 (15:54 +0100)
src/librustc/middle/lib_features.rs

index e451cf5cfa1bdcdab6827cb1c34c988f50fbc3ef..78c95fcbc6240128afc075453c7a398e857d3467 100644 (file)
@@ -10,8 +10,8 @@
 
 // Detecting lib features (i.e. features that are not lang features).
 //
-// These are declared using stability attributes (e.g. `#[stable(..)]`
-// and `#[unstable(..)]`), but are not declared in one single location
+// These are declared using stability attributes (e.g. `#[stable (..)]`
+// and `#[unstable (..)]`), but are not declared in one single location
 // (unlike lang features), which means we need to collect them instead.
 
 use ty::TyCtxt;
@@ -64,8 +64,8 @@ fn extract(&self, attrs: &[Attribute]) -> Vec<(Symbol, Option<Symbol>, Span)> {
         for attr in attrs {
             // FIXME(varkor): the stability attribute might be behind a `#[cfg]` attribute.
 
-            // Find a stability attribute (i.e. `#[stable(..)]`, `#[unstable(..)]`,
-            // `#[rustc_const_unstable(..)]`).
+            // Find a stability attribute (i.e. `#[stable (..)]`, `#[unstable (..)]`,
+            // `#[rustc_const_unstable (..)]`).
             if stab_attrs.iter().any(|stab_attr| attr.check_name(stab_attr)) {
                 let meta_item = attr.meta();
                 if let Some(MetaItem { node: MetaItemKind::List(ref metas), .. }) = meta_item {