Repository navigation
1.100 beta regression: "cannot find value Masquerade in this scope" #164078
Copy link
Copy link
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-proc-macrosArea: Procedural macrosArea: Procedural macrosA-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Description
Found in the 1.100 beta crater run
This issue is a variant of #163800 (which regressed in #163080). However, this issue is not fixed by #163863.
This issue affects rustables and its dependents:
- https://crater-reports.s3.amazonaws.com/beta-1.100-3/1.100.0-beta.1/reg/rustables-0.9.0/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.100-3/1.100.0-beta.1/gh/davidborzek.suho/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.100-3/1.100.0-beta.1/gh/pro-to-co-ls.bluefrog/log.txt
- https://crater-reports.s3.amazonaws.com/beta-1.100-3/1.100.0-beta.1/gh/xjoker-dev.NPorter/log.txt
Output of compiling rustables-0.8.8 on rustc 1.100.0-beta.4 (a2eb6097d 2026-10-04), which I assume does not contain #163863:
error: the `Self` constructor can only be used with tuple or unit structs
--> src/expr/masquerade.rs:6:10
|
6 | #[derive(Default, Debug, PartialEq, Eq)]
| ^^^^^^^
error: could not compile `rustables` (lib) due to 1 previous error
Output of compiling rustables-0.8.8 on rustc 1.101.0-nightly (32dba69d6 2026-10-09), which contains #163863:
error[E0423]: cannot find value `Masquerade` in this scope
--> src/expr/masquerade.rs:6:10
|
6 | #[derive(Default, Debug, PartialEq, Eq)]
| ^^^^^^^ in this derive macro
7 | #[nfnetlink_struct(nested = true)]
| ---------------------------------- `Masquerade` defined here
|
= note: a struct named `Masquerade` exists in another namespace
help: consider importing this tuple variant instead
|
1 + use crate::expr::ExpressionVariant::Masquerade;
|
For more information about this error, try `rustc --explain E0423`.
error: could not compile `rustables` (lib) due to 1 previous error
Relevant code:
#[derive(Default, Debug, PartialEq, Eq)]
#[nfnetlink_struct(nested = true)]
pub struct Masquerade;Relevant portion of the macro expansion:
pub struct Masquerade {}
#[automatically_derived]
impl ::core::default::Default for Masquerade {
#[inline]
fn default() -> Self {
Masquerade
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-proc-macrosArea: Procedural macrosArea: Procedural macrosA-resolveArea: Name/path resolution done by `rustc_resolve` specificallyArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Activity
cyrgani commentedon Oct 10, 2026
This is actually caused by the earlier PR #161867.
theemathas commentedon Oct 11, 2026
Some more dependents of rustables found in the rustdoc crater run:
Rollup merge of rust-lang#164114 - cyrgani:attrs-vs-default, r=nnethe…
Unrolled build for #164114 in rollup 164256