Skip to content

Commit

Permalink
Revert "Work around rustdoc ambiguity bug"
Browse files Browse the repository at this point in the history
This reverts commit ae1983c.
  • Loading branch information
dtolnay committed Sep 24, 2022
1 parent 3c49303 commit c1d6739
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -813,14 +813,6 @@ mod print;

////////////////////////////////////////////////////////////////////////////////

// https://github.com/rust-lang/rust/issues/62830
#[cfg(feature = "parsing")]
mod rustdoc_workaround {
pub use crate::parse::{self as parse_module};
}

////////////////////////////////////////////////////////////////////////////////

mod error;
pub use crate::error::{Error, Result};

Expand Down
7 changes: 5 additions & 2 deletions src/parse_macro_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// Refer to the [`parse` module] documentation for more details about parsing
/// in Syn.
///
/// [`parse` module]: crate::rustdoc_workaround::parse_module
/// [`parse` module]: parse/index.html
///
/// <br>
///
Expand Down Expand Up @@ -51,7 +51,7 @@
/// This macro can also be used with the [`Parser` trait] for types that have
/// multiple ways that they can be parsed.
///
/// [`Parser` trait]: crate::rustdoc_workaround::parse_module::Parser
/// [`Parser` trait]: parse/trait.Parser.html
///
/// ```
/// # extern crate proc_macro;
Expand Down Expand Up @@ -103,6 +103,9 @@
/// # proc_macro::TokenStream::new()
/// # }
/// ```
//
// TODO: change the parse module link to an intra rustdoc link, currently
// blocked on https://github.com/rust-lang/rust/issues/62830
#[macro_export]
#[cfg_attr(doc_cfg, doc(cfg(all(feature = "parsing", feature = "proc-macro"))))]
macro_rules! parse_macro_input {
Expand Down

0 comments on commit c1d6739

Please sign in to comment.