File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -3146,12 +3146,25 @@ impl<'tcx> LateLintPass<'tcx> for SelfTypeConversion<'tcx> {
3146
3146
tracing:: info!( "not into_fn {:?}" , cx. tcx. get_diagnostic_item( sym:: into_fn) ) ;
3147
3147
return ;
3148
3148
}
3149
- tracing:: info!( ?def_id) ;
3150
3149
tracing:: info!( ?expr) ;
3151
3150
if expr. span . macro_backtrace ( ) . next ( ) . is_some ( ) {
3152
3151
return ;
3153
3152
}
3154
3153
if cx. tcx . sess . source_map ( ) . span_to_embeddable_string ( expr. span ) . contains ( "symbolize/gimli" )
3154
+ || cx
3155
+ . tcx
3156
+ . sess
3157
+ . source_map ( )
3158
+ . span_to_embeddable_string ( expr. span )
3159
+ . contains ( "crates/crates-io" )
3160
+ || cx. tcx . sess . source_map ( ) . span_to_embeddable_string ( expr. span ) . contains ( "cargo/core" )
3161
+ || cx
3162
+ . tcx
3163
+ . sess
3164
+ . source_map ( )
3165
+ . span_to_embeddable_string ( expr. span )
3166
+ . contains ( "cargo/sources" )
3167
+ || cx. tcx . sess . source_map ( ) . span_to_embeddable_string ( expr. span ) . contains ( "cargo/util" )
3155
3168
{
3156
3169
// HACK
3157
3170
return ;
You can’t perform that action at this time.
0 commit comments