Skip to content

macro_expanded_macro_exports_accessed_by_absolute_paths lint links to dead Rust issue #91842

Closed
@Kampfkarren

Description

@Kampfkarren

Given the following code:

macro_rules! parent {
    () => {
        #[macro_export]
        macro_rules! child {
            () => {}
        }
    }
}

parent!();
crate::child!();

The current output is:

   Compiling playground v0.0.1 (/playground)
error: macro-expanded `macro_export` macros from the current crate cannot be referred to by absolute paths
  --> src/lib.rs:11:1
   |
11 | crate::child!();
   | ^^^^^^^^^^^^
   |
   = note: `#[deny(macro_expanded_macro_exports_accessed_by_absolute_paths)]` on by default
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #52234 <https://github.com/rust-lang/rust/issues/52234>

Going to #52234 at the link provided gives a 404.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions