Skip to content

decl_macro and use std::vec combo breaks rustdoc #47038

Description

@MaloJaffre

A crate with the following reduced lib.rs breaks rustdoc:

#![feature(decl_macro)]
use std::vec;

Indeed, rustdoc links to vec!() docs in index.html because this macro has the same name than the imported module (???).

Furthermore, the macro page linked has broken links because it is copied in the crate namespace, instead of being directly https://doc.rust-lang.org/std/vec/struct.Vec.html.

rustc 1.24.0-nightly (cddc4a62d 2017-12-26)
binary: rustc
commit-hash: cddc4a62d8e72c2bd303994752a7f8545ffb9c79
commit-date: 2017-12-26
host: x86_64-unknown-linux-gnu
release: 1.24.0-nightly
LLVM version: 4.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions