Skip to content

Rust 1.42.0 can't compile Rust 1.42.0 #69953

Closed
@thomasjfox

Description

@thomasjfox

Hello together,

compiling Rust 1.42.0 with Rust 1.42.0 results in this error early on:

   Compiling bootstrap v0.0.0 (/datastore/rpmbuild/BUILD/rustc-1.42.0-src/src/bootstrap)                                                                      
error: unnecessary parentheses around block return value                       
    --> src/bootstrap/lib.rs:1029:9                                                                                                                           
     |                                                                                                                                                        
1029 |         (target.contains("linux-gnu") || target.contains("apple-darwin"))                                                                              
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses                                               
     |                                                                                                                                                        
     = note: `-D unused-parens` implied by `-D warnings`                                                                                                      
                                                                                                                                                              
error: aborting due to previous error                                                                                                                         
                                                                                                                                                              
error: could not compile `bootstrap`.

I'm now going to test this fix:
5f979e9#diff-6710e3160b86e8cc371d2ff58ae1061c

The compiler was built with Rust 1.41.1.
I always do the "Rustception" test ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions