Skip to content
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

structural_records warning #4257

Closed
jesse99 opened this issue Dec 22, 2012 · 2 comments
Closed

structural_records warning #4257

jesse99 opened this issue Dec 22, 2012 · 2 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. A-syntaxext Area: Syntax extensions C-cleanup Category: PRs that clean code up or issues documenting cleanup.
Milestone

Comments

@jesse99
Copy link
Contributor

jesse99 commented Dec 22, 2012

Still can't enable this. Getting a bunch of warnings for code like fmt!("Expected a simple unit but found %?", u) where u looks like

pub enum Unit
{
    Newton,
    Joule,
    Compound(@[Unit], @[Unit]),
}

Errors look like:

src/generated.rs:273:66: 273:67 error: structural records are deprecated
src/generated.rs:273        Compound(*) => fail fmt!("Expected a simple unit but found %?", u),

This is with 0.5

@catamorphism
Copy link
Contributor

I'm guessing this is because the extfmt code uses structural records, so the type error you're seeing is actually in reference to the macro-expanded code.

The issue is really "remove any remaining uses of structural records from the libraries".

@catamorphism
Copy link
Contributor

This is fixed now because #4665 is fixed

calebcartwright pushed a commit to calebcartwright/rust that referenced this issue Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. A-syntaxext Area: Syntax extensions C-cleanup Category: PRs that clean code up or issues documenting cleanup.
Projects
None yet
Development

No branches or pull requests

2 participants