File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/test/ui-fulldeps/auxiliary Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ macro_rules! fake_lint_pass {
33
33
if !cx. sess( ) . contains_name( attrs, $attr) {
34
34
cx. lint( CRATE_NOT_OKAY , |lint| {
35
35
let msg = format!( "crate is not marked with #![{}]" , $attr) ;
36
- lint. build( & msg) . set_span( krate. item. span ) . emit( )
36
+ lint. build( & msg) . set_span( krate. item. inner ) . emit( )
37
37
} ) ;
38
38
}
39
39
) *
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ impl<'tcx> LateLintPass<'tcx> for Pass {
31
31
if !cx. sess ( ) . contains_name ( attrs, Symbol :: intern ( "crate_okay" ) ) {
32
32
cx. lint ( CRATE_NOT_OKAY , |lint| {
33
33
lint. build ( "crate is not marked with #![crate_okay]" )
34
- . set_span ( krate. item . span )
34
+ . set_span ( krate. item . inner )
35
35
. emit ( )
36
36
} ) ;
37
37
}
You can’t perform that action at this time.
0 commit comments