mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-21 04:03:11 +00:00
Fix compiler docs
This commit is contained in:
parent
de0fda9558
commit
230e396a76
@ -45,6 +45,9 @@ macro_rules! forward {
|
||||
pub fn $n:ident(&self, $($name:ident: $ty:ty),* $(,)?) -> &Self
|
||||
) => {
|
||||
$(#[$attrs])*
|
||||
// we always document with --document-private-items
|
||||
#[cfg_attr(not(bootstrap), allow(rustdoc::private_intra_doc_links))]
|
||||
#[cfg_attr(bootstrap, allow(private_intra_doc_links))]
|
||||
#[doc = concat!("See [`Diagnostic::", stringify!($n), "()`].")]
|
||||
pub fn $n(&self, $($name: $ty),*) -> &Self {
|
||||
self.diagnostic.$n($($name),*);
|
||||
@ -59,6 +62,9 @@ macro_rules! forward {
|
||||
) => {
|
||||
$(#[$attrs])*
|
||||
#[doc = concat!("See [`Diagnostic::", stringify!($n), "()`].")]
|
||||
// we always document with --document-private-items
|
||||
#[cfg_attr(not(bootstrap), allow(rustdoc::private_intra_doc_links))]
|
||||
#[cfg_attr(bootstrap, allow(private_intra_doc_links))]
|
||||
pub fn $n(&mut self, $($name: $ty),*) -> &mut Self {
|
||||
self.0.diagnostic.$n($($name),*);
|
||||
self
|
||||
@ -76,6 +82,9 @@ macro_rules! forward {
|
||||
) => {
|
||||
$(#[$attrs])*
|
||||
#[doc = concat!("See [`Diagnostic::", stringify!($n), "()`].")]
|
||||
// we always document with --document-private-items
|
||||
#[cfg_attr(not(bootstrap), allow(rustdoc::private_intra_doc_links))]
|
||||
#[cfg_attr(bootstrap, allow(private_intra_doc_links))]
|
||||
pub fn $n<$($generic: $bound),*>(&mut self, $($name: $ty),*) -> &mut Self {
|
||||
self.0.diagnostic.$n($($name),*);
|
||||
self
|
||||
|
@ -772,7 +772,7 @@ impl<'tcx> SaveContext<'tcx> {
|
||||
/// returns `None` if the node is not macro-generated or the span is malformed,
|
||||
/// else uses the expansion callsite and callee to return some MacroRef.
|
||||
///
|
||||
/// FIXME: [`dump_visitor::process_macro_use`] should actually dump this data
|
||||
/// FIXME: [`DumpVisitor::process_macro_use`] should actually dump this data
|
||||
#[allow(dead_code)]
|
||||
fn get_macro_use_data(&self, span: Span) -> Option<MacroRef> {
|
||||
if !generated_code(span) {
|
||||
|
Loading…
Reference in New Issue
Block a user