File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
106
106
/// For any `a` and `n`, where no overflow occurs:
107
107
///
108
108
/// * `Step::forward_unchecked(a, n)` is equivalent to `Step::forward(a, n)`
109
- #[ unstable( feature = "unchecked_math " , reason = "niche optimization path " , issue = "none " ) ]
109
+ #[ unstable( feature = "step_trait_ext " , reason = "recently added " , issue = "42168 " ) ]
110
110
unsafe fn forward_unchecked ( start : Self , count : usize ) -> Self {
111
111
Step :: forward ( start, count)
112
112
}
@@ -178,7 +178,7 @@ pub unsafe trait Step: Clone + PartialOrd + Sized {
178
178
/// For any `a` and `n`, where no overflow occurs:
179
179
///
180
180
/// * `Step::backward_unchecked(a, n)` is equivalent to `Step::backward(a, n)`
181
- #[ unstable( feature = "unchecked_math " , reason = "niche optimization path " , issue = "none " ) ]
181
+ #[ unstable( feature = "step_trait_ext " , reason = "recently added " , issue = "42168 " ) ]
182
182
unsafe fn backward_unchecked ( start : Self , count : usize ) -> Self {
183
183
Step :: backward ( start, count)
184
184
}
Original file line number Diff line number Diff line change @@ -51,6 +51,14 @@ pub struct Feature {
51
51
pub has_gate_test : bool ,
52
52
pub tracking_issue : Option < NonZeroU32 > ,
53
53
}
54
+ impl Feature {
55
+ fn tracking_issue_display ( & self ) -> impl fmt:: Display {
56
+ match self . tracking_issue {
57
+ None => "none" . to_string ( ) ,
58
+ Some ( x) => x. to_string ( ) ,
59
+ }
60
+ }
61
+ }
54
62
55
63
pub type Features = HashMap < String , Feature > ;
56
64
@@ -361,10 +369,12 @@ fn get_and_check_lib_features(
361
369
if f. tracking_issue != s. tracking_issue && f. level != Status :: Stable {
362
370
tidy_error ! (
363
371
bad,
364
- "{}:{}: mismatches the `issue` in {} " ,
372
+ "{}:{}: `issue` \" {} \" mismatches the {} `issue` of \" {} \" " ,
365
373
file. display( ) ,
366
374
line,
367
- display
375
+ f. tracking_issue_display( ) ,
376
+ display,
377
+ s. tracking_issue_display( ) ,
368
378
) ;
369
379
}
370
380
}
You can’t perform that action at this time.
0 commit comments