Skip to content

rustbuild warning #38484

Closed
Closed
@est31

Description

@est31

When you compile rust you get:

warning: value assigned to `stage` is never read, #[warn(unused_assignments)] on by default
   --> src/bootstrap/flags.rs:277:17
    |
277 |                 stage = Some(1);
    |                 ^^^^^

Regression of #38072

cc @nikomatsakis

Maybe rustbuild should be compiled with #[forbid(warnings)] to prevent errors like these in the future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    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