File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -428,14 +428,6 @@ pub fn save_and_display_report(
428
428
. collect ( ) ;
429
429
let package_vers: Vec < _ > = package_ids. iter ( ) . map ( |pid| pid. to_string ( ) ) . collect ( ) ;
430
430
431
- if should_display_message || bcx. build_config . future_incompat_report {
432
- drop ( bcx. gctx . shell ( ) . warn ( & format ! (
433
- "the following packages contain code that will be rejected by a future \
434
- version of Rust: {}",
435
- package_vers. join( ", " )
436
- ) ) ) ;
437
- }
438
-
439
431
let updated_versions = get_updates ( bcx. ws , & package_ids) . unwrap_or ( String :: new ( ) ) ;
440
432
441
433
let update_message = if !updated_versions. is_empty ( ) {
@@ -503,6 +495,13 @@ https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch
503
495
let saved_report_id =
504
496
current_reports. save_report ( bcx. ws , suggestion_message. clone ( ) , rendered_report) ;
505
497
498
+ if should_display_message || bcx. build_config . future_incompat_report {
499
+ drop ( bcx. gctx . shell ( ) . warn ( & format ! (
500
+ "the following packages contain code that will be rejected by a future \
501
+ version of Rust: {}",
502
+ package_vers. join( ", " )
503
+ ) ) ) ;
504
+ }
506
505
if bcx. build_config . future_incompat_report {
507
506
if !suggestion_message. is_empty ( ) {
508
507
drop ( bcx. gctx . shell ( ) . note ( & suggestion_message) ) ;
You can’t perform that action at this time.
0 commit comments