Skip to content

Non-existing attributes are silently ignored #828

@Veetaha

Description

@Veetaha

I tried this code

#[derive(Facet)]
#[facet(non_existing_config)]
struct Example {}

and it complied just fine. Instead, I expected to see a compile error rejecting a non-existing config attribute.

Meta

cargo tree | grep facet     
├── facet v0.27.15
│   ├── facet-core v0.27.15
│   ├── facet-macros v0.27.15 (proc-macro)
│   │   └── facet-macros-emit v0.27.15
│   │       ├── facet-macros-parse v0.27.15
├── facet-toml v0.25.17
│   ├── facet-core v0.27.15 (*)
│   ├── facet-reflect v0.27.15
│   │   ├── facet-core v0.27.15 (*)
│   ├── facet-serialize v0.24.17
│   │   ├── facet-core v0.27.15 (*)
│   │   ├── facet-reflect v0.27.15 (*)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working📜 deriveRelated to the derive macro

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions