File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1122,7 +1122,7 @@ impl CurrentDepGraph {
1122
1122
}
1123
1123
1124
1124
impl DepGraphData {
1125
- #[ inline]
1125
+ #[ inline( never ) ]
1126
1126
fn read_index ( & self , source : DepNodeIndex ) {
1127
1127
ty:: tls:: with_context_opt ( |icx| {
1128
1128
let icx = if let Some ( icx) = icx { icx } else { return } ;
Original file line number Diff line number Diff line change 81
81
//!
82
82
//! [mm]: https://github.com/rust-lang/measureme/
83
83
84
+ use crate :: cold_path;
84
85
use crate :: fx:: FxHashMap ;
85
86
86
87
use std:: borrow:: Borrow ;
@@ -531,9 +532,11 @@ impl<'a> TimingGuard<'a> {
531
532
#[ inline]
532
533
pub fn finish_with_query_invocation_id ( self , query_invocation_id : QueryInvocationId ) {
533
534
if let Some ( guard) = self . 0 {
534
- let event_id = StringId :: new_virtual ( query_invocation_id. 0 ) ;
535
- let event_id = EventId :: from_virtual ( event_id) ;
536
- guard. finish_with_override_event_id ( event_id) ;
535
+ cold_path ( || {
536
+ let event_id = StringId :: new_virtual ( query_invocation_id. 0 ) ;
537
+ let event_id = EventId :: from_virtual ( event_id) ;
538
+ guard. finish_with_override_event_id ( event_id) ;
539
+ } ) ;
537
540
}
538
541
}
539
542
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ pub trait StableHasherResult: Sized {
27
27
}
28
28
29
29
impl StableHasher {
30
+ #[ inline]
30
31
pub fn new ( ) -> Self {
31
32
StableHasher { state : SipHasher128 :: new_with_keys ( 0 , 0 ) }
32
33
}
Original file line number Diff line number Diff line change @@ -392,6 +392,7 @@ impl Session {
392
392
) ;
393
393
}
394
394
395
+ #[ inline]
395
396
pub fn source_map ( & self ) -> & source_map:: SourceMap {
396
397
self . parse_sess . source_map ( )
397
398
}
You can’t perform that action at this time.
0 commit comments