File tree 1 file changed +22
-20
lines changed
compiler/rustc_session/src
1 file changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -2427,30 +2427,32 @@ crate mod dep_tracking {
2427
2427
) +} ;
2428
2428
}
2429
2429
2430
+ impl < T : DepTrackingHash > DepTrackingHash for Option < T > {
2431
+ fn hash ( & self , hasher : & mut DefaultHasher , error_format : ErrorOutputType ) {
2432
+ match self {
2433
+ Some ( x) => {
2434
+ Hash :: hash ( & 1 , hasher) ;
2435
+ DepTrackingHash :: hash ( x, hasher, error_format) ;
2436
+ }
2437
+ None => Hash :: hash ( & 0 , hasher) ,
2438
+ }
2439
+ }
2440
+ }
2441
+
2430
2442
impl_dep_tracking_hash_via_hash ! (
2431
2443
bool ,
2432
2444
usize ,
2445
+ NonZeroUsize ,
2433
2446
u64 ,
2434
2447
String ,
2435
2448
PathBuf ,
2436
2449
lint:: Level ,
2437
- Option <bool >,
2438
- Option <u32 >,
2439
- Option <usize >,
2440
- Option <NonZeroUsize >,
2441
- Option <String >,
2442
- Option <( String , u64 ) >,
2443
- Option <Vec <String >>,
2444
- Option <MergeFunctions >,
2445
- Option <RelocModel >,
2446
- Option <CodeModel >,
2447
- Option <TlsModel >,
2448
- Option <WasiExecModel >,
2449
- Option <PanicStrategy >,
2450
- Option <RelroLevel >,
2451
- Option <InstrumentCoverage >,
2452
- Option <lint:: Level >,
2453
- Option <PathBuf >,
2450
+ WasiExecModel ,
2451
+ u32 ,
2452
+ RelocModel ,
2453
+ CodeModel ,
2454
+ TlsModel ,
2455
+ InstrumentCoverage ,
2454
2456
CrateType ,
2455
2457
MergeFunctions ,
2456
2458
PanicStrategy ,
@@ -2468,10 +2470,10 @@ crate mod dep_tracking {
2468
2470
TargetTriple ,
2469
2471
Edition ,
2470
2472
LinkerPluginLto ,
2471
- Option < SplitDebuginfo > ,
2473
+ SplitDebuginfo ,
2472
2474
SwitchWithOptPath ,
2473
- Option < SymbolManglingVersion > ,
2474
- Option < SourceFileHashAlgorithm > ,
2475
+ SymbolManglingVersion ,
2476
+ SourceFileHashAlgorithm ,
2475
2477
TrimmedDefPaths ,
2476
2478
) ;
2477
2479
You can’t perform that action at this time.
0 commit comments