about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-05-07 00:06:36 +0000
committerbors <bors@rust-lang.org>2019-05-07 00:06:36 +0000
commiteeedd3a6e15d43d0cd3e860f36be737cb2c941ca (patch)
tree94e3391466fe47bee789c35f86a6e7529e899716 /src/tools
parentf64ed091570f222d9a8eeb210dd6d1676ff38ceb (diff)
parent639e452c5f0a76b11ebe3703a04b6ae13d96c887 (diff)
downloadrust-eeedd3a6e15d43d0cd3e860f36be737cb2c941ca.tar.gz
rust-eeedd3a6e15d43d0cd3e860f36be737cb2c941ca.zip
Auto merge of #60531 - Centril:sort-features, r=oli-obk
Enforce sorting of accepted and removed features

Fixes https://github.com/rust-lang/rust/issues/60361 with mechanism introduced in https://github.com/rust-lang/rust/pull/60373.

r? @oli-obk
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tidy/src/features.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs
index f9f3623679e..637f10c5ae7 100644
--- a/src/tools/tidy/src/features.rs
+++ b/src/tools/tidy/src/features.rs
@@ -191,7 +191,7 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
 
     // We allow rustc-internal features to omit a tracking issue.
     // To make tidy accept omitting a tracking issue, group the list of features
-    // without one inside `// no tracking issue START` and `// no tracking issue END`.
+    // without one inside `// no-tracking-issue` and `// no-tracking-issue-end`.
     let mut next_feature_omits_tracking_issue = false;
 
     let mut in_feature_group = false;
@@ -201,13 +201,13 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
         .filter_map(|(line, line_number)| {
             let line = line.trim();
 
-            // Within START and END, the tracking issue can be omitted.
+            // Within -start and -end, the tracking issue can be omitted.
             match line {
-                "// no tracking issue START" => {
+                "// no-tracking-issue-start" => {
                     next_feature_omits_tracking_issue = true;
                     return None;
                 }
-                "// no tracking issue END" => {
+                "// no-tracking-issue-end" => {
                     next_feature_omits_tracking_issue = false;
                     return None;
                 }