Skip to content

Commit d7acf59

Browse files
committed
Rename 'no tracking issue START' to fit better with tidy.
1 parent ea178e4 commit d7acf59

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ declare_features! (
119119
// feature-group-start: internal feature gates
120120
// -------------------------------------------------------------------------
121121

122-
// no tracking issue START
122+
// no-tracking-issue-start
123123

124124
// Allows using the `rust-intrinsic`'s "ABI".
125125
(active, intrinsics, "1.0.0", None, None),
@@ -152,7 +152,7 @@ declare_features! (
152152
// lets a function to be `const` when opted into with `#![feature(foo)]`.
153153
(active, rustc_const_unstable, "1.0.0", None, None),
154154

155-
// no tracking issue END
155+
// no-tracking-issue-end
156156

157157
// Allows using `#[link_name="llvm.*"]`.
158158
(active, link_llvm_intrinsics, "1.0.0", Some(29602), None),
@@ -187,25 +187,25 @@ declare_features! (
187187
// Allows using `box` in patterns (RFC 469).
188188
(active, box_patterns, "1.0.0", Some(29641), None),
189189

190-
// no tracking issue START
190+
// no-tracking-issue-start
191191

192192
// Allows using `#[prelude_import]` on glob `use` items.
193193
(active, prelude_import, "1.2.0", None, None),
194194

195-
// no tracking issue END
195+
// no-tracking-issue-end
196196

197197
// Allows using `#[unsafe_destructor_blind_to_params]` (RFC 1238).
198198
(active, dropck_parametricity, "1.3.0", Some(28498), None),
199199

200-
// no tracking issue START
200+
// no-tracking-issue-start
201201

202202
// Allows using `#[omit_gdb_pretty_printer_section]`.
203203
(active, omit_gdb_pretty_printer_section, "1.5.0", None, None),
204204

205205
// Allows using the `vectorcall` ABI.
206206
(active, abi_vectorcall, "1.7.0", None, None),
207207

208-
// no tracking issue END
208+
// no-tracking-issue-end
209209

210210
// Allows using `#[structural_match]` which indicates that a type is structurally matchable.
211211
(active, structural_match, "1.8.0", Some(31434), None),
@@ -219,7 +219,7 @@ declare_features! (
219219
// Allows declaring with `#![needs_panic_runtime]` that a panic runtime is needed.
220220
(active, needs_panic_runtime, "1.10.0", Some(32837), None),
221221

222-
// no tracking issue START
222+
// no-tracking-issue-start
223223

224224
// Allows identifying the `compiler_builtins` crate.
225225
(active, compiler_builtins, "1.13.0", None, None),
@@ -242,7 +242,7 @@ declare_features! (
242242
// Allows using the `format_args_nl` macro.
243243
(active, format_args_nl, "1.29.0", None, None),
244244

245-
// no tracking issue END
245+
// no-tracking-issue-end
246246

247247
// Added for testing E0705; perma-unstable.
248248
(active, test_2018_feature, "1.31.0", Some(0), Some(Edition::Edition2018)),

src/tools/tidy/src/features.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
191191

192192
// We allow rustc-internal features to omit a tracking issue.
193193
// To make tidy accept omitting a tracking issue, group the list of features
194-
// without one inside `// no tracking issue START` and `// no tracking issue END`.
194+
// without one inside `// no-tracking-issue` and `// no-tracking-issue-end`.
195195
let mut next_feature_omits_tracking_issue = false;
196196

197197
let mut in_feature_group = false;
@@ -201,13 +201,13 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
201201
.filter_map(|(line, line_number)| {
202202
let line = line.trim();
203203

204-
// Within START and END, the tracking issue can be omitted.
204+
// Within -start and -end, the tracking issue can be omitted.
205205
match line {
206-
"// no tracking issue START" => {
206+
"// no-tracking-issue-start" => {
207207
next_feature_omits_tracking_issue = true;
208208
return None;
209209
}
210-
"// no tracking issue END" => {
210+
"// no-tracking-issue-end" => {
211211
next_feature_omits_tracking_issue = false;
212212
return None;
213213
}

0 commit comments

Comments
 (0)