Disappearing error in Rust 1.74 #138982
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-discussion
Category: Discussion or questions that doesn't represent real issues.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Both 1.73 and 1.74 would report the same error?
Instead, this happened: 1.74 builds without an error.
Is this because the offending function (
pub fn ptr() -> PrivateType
) was macro generated?I think the fix is to change our macro so that
fn ptr()
is only pub ifPrivateType
is pub. But it was weird that the error went away.The text was updated successfully, but these errors were encountered: