Skip to content

structural_records warning #4257

Closed
Closed
@jesse99

Description

@jesse99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-syntaxextArea: Syntax extensionsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions