Skip to content

"x.py check" shows error twice #76822

Description

@RalfJung

I just got this output from ./x.py check:

error[E0277]: the trait bound `&rustc_hir::def_id::DefId: rustc_middle::ty::query::sealed::IntoQueryParam<rustc_hir::def_id::DefId>` is not satisfied
   --> compiler/rustc_mir/src/transform/promote_consts.rs:748:53
    |
748 |                 if !self.tcx.is_promotable_const_fn(def_id) {
    |                                                     ^^^^^^ the trait `rustc_middle::ty::query::sealed::IntoQueryParam<rustc_hir::def_id::DefId>` is not implemented for `&rustc_hir::def_id::DefId`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `rustc_mir`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error[E0277]: the trait bound `&rustc_hir::def_id::DefId: rustc_middle::ty::query::sealed::IntoQueryParam<rustc_hir::def_id::DefId>` is not satisfied
   --> compiler/rustc_mir/src/transform/promote_consts.rs:748:53
    |
748 |                 if !self.tcx.is_promotable_const_fn(def_id) {
    |                                                     ^^^^^^ the trait `rustc_middle::ty::query::sealed::IntoQueryParam<rustc_hir::def_id::DefId>` is not implemented for `&rustc_hir::def_id::DefId`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: build failed

I also noticed that the cargo "status bar" will show things like rustc_mir, rustc_mir or rustc_driver, rustc_driver. Is it building everything twice?

Cc @Mark-Simulacrum

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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