File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -304,17 +304,17 @@ pub struct Handler {
304
304
continue_after_error : AtomicBool ,
305
305
delayed_span_bugs : Lock < Vec < Diagnostic > > ,
306
306
307
- // This set contains the `DiagnosticId` of all emitted diagnostics to avoid
308
- // emitting the same diagnostic with extended help (`--teach`) twice, which
309
- // would be uneccessary repetition.
307
+ /// This set contains the `DiagnosticId` of all emitted diagnostics to avoid
308
+ /// emitting the same diagnostic with extended help (`--teach`) twice, which
309
+ /// would be uneccessary repetition.
310
310
taught_diagnostics : Lock < FxHashSet < DiagnosticId > > ,
311
311
312
312
/// Used to suggest rustc --explain <error code>
313
313
emitted_diagnostic_codes : Lock < FxHashSet < DiagnosticId > > ,
314
314
315
- // This set contains a hash of every diagnostic that has been emitted by
316
- // this handler. These hashes is used to avoid emitting the same error
317
- // twice.
315
+ /// This set contains a hash of every diagnostic that has been emitted by
316
+ /// this handler. These hashes is used to avoid emitting the same error
317
+ /// twice.
318
318
emitted_diagnostics : Lock < FxHashSet < u128 > > ,
319
319
}
320
320
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ enum QueryModifier {
55
55
/// Generate a dep node based on the dependencies of the query
56
56
Anon ,
57
57
58
- // Always evaluate the query, ignoring its depdendencies
58
+ /// Always evaluate the query, ignoring its depdendencies
59
59
EvalAlways ,
60
60
}
61
61
Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ fn mk_main(cx: &mut TestCtxt<'_>) -> P<ast::Item> {
327
327
// Writing this out by hand with 'ignored_span':
328
328
// pub fn main() {
329
329
// #![main]
330
- // test::test_main_static(::std::os::args().as_slice(), &[..tests]);
330
+ // test::test_main_static(&[..tests]);
331
331
// }
332
332
let sp = ignored_span ( cx, DUMMY_SP ) ;
333
333
let ecx = & cx. ext_cx ;
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ pub fn expand_test_or_bench(
86
86
cx. path ( sp, vec ! [ test_id, cx. ident_of( name) ] )
87
87
} ;
88
88
89
- // creates test::$name
89
+ // creates test::ShouldPanic:: $name
90
90
let should_panic_path = |name| {
91
91
cx. path ( sp, vec ! [ test_id, cx. ident_of( "ShouldPanic" ) , cx. ident_of( name) ] )
92
92
} ;
You can’t perform that action at this time.
0 commit comments