File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 1
1
use std:: ffi:: OsStr ;
2
- use std:: time:: SystemTime ;
3
2
use std:: path:: { Component , Path } ;
4
3
5
4
use crate :: prelude:: * ;
@@ -67,14 +66,10 @@ fn line_program_add_file(
67
66
buf
68
67
} ) ;
69
68
70
- line_program. file_has_timestamp = true ;
71
69
line_program. file_has_md5 = md5. is_some ( ) ;
72
70
73
71
line_program. add_file ( file_name, dir_id, Some ( FileInfo {
74
- timestamp : SystemTime :: now ( )
75
- . duration_since ( SystemTime :: UNIX_EPOCH )
76
- . map ( |t| t. as_secs ( ) )
77
- . unwrap_or ( 0 ) ,
72
+ timestamp : 0 ,
78
73
size : 0 ,
79
74
md5 : md5. unwrap_or_default ( ) ,
80
75
} ) )
Original file line number Diff line number Diff line change 1
1
mod emit;
2
2
mod line_info;
3
3
4
- use std:: time:: SystemTime ;
5
-
6
4
use crate :: prelude:: * ;
7
5
8
6
use rustc_span:: { FileName , SourceFileHash , SourceFileHashAlgorithm } ;
@@ -83,15 +81,11 @@ impl<'tcx> DebugContext<'tcx> {
83
81
LineString :: new ( comp_dir. as_bytes ( ) , encoding, & mut dwarf. line_strings ) ,
84
82
LineString :: new ( name. as_bytes ( ) , encoding, & mut dwarf. line_strings ) ,
85
83
Some ( FileInfo {
86
- timestamp : SystemTime :: now ( )
87
- . duration_since ( SystemTime :: UNIX_EPOCH )
88
- . map ( |t| t. as_secs ( ) )
89
- . unwrap_or ( 0 ) ,
84
+ timestamp : 0 ,
90
85
size : 0 ,
91
86
md5 : md5. unwrap_or_default ( ) ,
92
87
} ) ,
93
88
) ;
94
- line_program. file_has_timestamp = true ;
95
89
line_program. file_has_md5 = md5. is_some ( ) ;
96
90
97
91
dwarf. unit . line_program = line_program;
You can’t perform that action at this time.
0 commit comments