-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE] have tag be explicit debug_assert! argument #110888
Conversation
No functional changes intended. We've got a custom rustc build. After rust-lang@2b8d27b we're seeing a new build error while building rustc_middle: ``` error: there is no argument named `tag` --> <rust>/compiler/rustc_middle/src/ty/mod.rs:1505:1 | 1505 | / impl_tag! { 1506 | | impl Tag for ParamTag; 1507 | | ParamTag { reveal: traits::Reveal::UserFacing, constness: hir::Constness::NotConst }, 1508 | | ParamTag { reveal: traits::Reveal::All, constness: hir::Constness::NotConst }, 1509 | | ParamTag { reveal: traits::Reveal::UserFacing, constness: hir::Constness::Const }, 1510 | | ParamTag { reveal: traits::Reveal::All, constness: hir::Constness::Const }, 1511 | | } | |_^ | = note: did you intend to capture a variable `tag` from the surrounding scope? = note: to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro = note: this error originates in the macro `impl_tag` (in Nightly builds, run with -Z macro-backtrace for more info) ``` This patch fixes it. I'm not sure why this doesn't fire with x.py, hence the DO NOT MERGE. Maybe we're missing come rustc flags that silence this error?
(rustbot has picked a reviewer for you, use r? to override) |
Hey @WaffleLapkin, could you please take a look and see if there's something suspicious about the new impl_tag behaviour? Do you know which rustc flags/features may be related to this kind of error? |
uh, something is wrong with your bootstrap compiler.. this should compile just fine |
the specific error may be related to #106505, a rustc bug I fixed recently. But there's something wrong with your build setup. How are you building the compiler and with what bootstrap compiler version? @krasimirgg |
Thank you! I noticed I was using a different beta |
That was probably it. Only the exact beta in src/stage0.json is supported. |
@krasimirgg closing this, since this doesn't seem like a bug in the rust codebase, but rather a problem with invalid toolchain on your side. Feel free to reach out/reopen this PR in case you still have the problem. |
No functional changes intended.
We've got a custom rustc build. After 2b8d27b we're seeing a new build error while building rustc_middle:
This patch fixes it. I'm not sure why this doesn't fire with x.py, hence the DO NOT MERGE. I suspect our custom build is a bit more strict than what x.py's. Maybe we're missing come rustc flags that silence this error?