Skip to content

Edition hygiene in lints #52038

Closed as not planned
Closed as not planned
@nrc

Description

@nrc

Edition lints should be hygienic, that is, if a macro is declared in a 2018 crate and used in a 2015 crate, then the expanded macro should not trigger any lints.

There is a PR, #50999, but there are questions about the details of hygiene (see also #50122 and #50376).

The next step is probably to define and write-up the high-level approach.

cc @nikomatsakis @petrochenkov

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-edition-2018Area: The 2018 editionA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.F-rust_2018_preview`#![feature(rust_2018_preview)]`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions