File tree 1 file changed +6
-6
lines changed
src/cargo/core/compiler/job_queue
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -963,32 +963,32 @@ impl<'gctx> DrainState<'gctx> {
963
963
}
964
964
965
965
fn emit_warnings (
966
- & mut self ,
966
+ & self ,
967
967
msg : Option < & str > ,
968
968
unit : & Unit ,
969
- build_runner : & mut BuildRunner < ' _ , ' _ > ,
969
+ build_runner : & BuildRunner < ' _ , ' _ > ,
970
970
) -> CargoResult < ( ) > {
971
971
let outputs = build_runner. build_script_outputs . lock ( ) . unwrap ( ) ;
972
972
let Some ( metadata) = build_runner. find_build_script_metadata ( unit) else {
973
973
return Ok ( ( ) ) ;
974
974
} ;
975
- let bcx = & mut build_runner. bcx ;
975
+ let gctx = build_runner. bcx . gctx ;
976
976
if let Some ( output) = outputs. get ( metadata) {
977
977
if !output. warnings . is_empty ( ) {
978
978
if let Some ( msg) = msg {
979
- writeln ! ( bcx . gctx. shell( ) . err( ) , "{}\n " , msg) ?;
979
+ writeln ! ( gctx. shell( ) . err( ) , "{}\n " , msg) ?;
980
980
}
981
981
982
982
for warning in output. warnings . iter ( ) {
983
983
let warning_with_package =
984
984
format ! ( "{}@{}: {}" , unit. pkg. name( ) , unit. pkg. version( ) , warning) ;
985
985
986
- bcx . gctx . shell ( ) . warn ( warning_with_package) ?;
986
+ gctx. shell ( ) . warn ( warning_with_package) ?;
987
987
}
988
988
989
989
if msg. is_some ( ) {
990
990
// Output an empty line.
991
- writeln ! ( bcx . gctx. shell( ) . err( ) ) ?;
991
+ writeln ! ( gctx. shell( ) . err( ) ) ?;
992
992
}
993
993
}
994
994
}
You can’t perform that action at this time.
0 commit comments