Skip to content

Bootstrap fails to build in not completely clean environment #63964

Closed
@jethrogb

Description

@jethrogb
  • git checkout 53df91a9b24ad999e7ca896447af6f5f74fe43bc (today's master)
  • make prepare
[...]
   Compiling bootstrap v0.0.0 (/home/jethro/projects/rust/src/bootstrap)
    Finished dev [unoptimized] target(s) in 7.16s

(success)

[...]
   Compiling bootstrap v0.0.0 (/home/jethro/projects/rust/src/bootstrap)
error: unnecessary `unsafe` block
   --> src/bootstrap/builder.rs:148:19
    |
148 |             name: unsafe { ::std::intrinsics::type_name::<S>() },
    |                   ^^^^^^ unnecessary `unsafe` block
    |
note: lint level defined here
   --> src/bootstrap/lib.rs:107:9
    |
107 | #![deny(warnings, rust_2018_idioms, unused_lifetimes)]
    |         ^^^^^^^^
    = note: `#[deny(unused_unsafe)]` implied by `#[deny(warnings)]`

[...]

(failure)

If I do rm -rf build/x86_64-unknown-linux-gnu/stage0, the second step works without issue.

Not sure what's going on, normally x.py is able to choose the stage0 compiler fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions