Auto merge of #87119 - jyn514:rustfmt-doc-private, r=Mark-Simulacrum
Document private items for rustfmt This is possible now that https://github.com/rust-lang/rust/pull/73936 has been merged.
This commit is contained in:
commit
e1dac88cfe
@ -393,7 +393,7 @@ fn consume_same_line_comments(
|
||||
}
|
||||
|
||||
/// Attributes for code blocks in rustdoc.
|
||||
/// See https://doc.rust-lang.org/rustdoc/print.html#attributes
|
||||
/// See <https://doc.rust-lang.org/rustdoc/print.html#attributes>.
|
||||
enum CodeBlockAttribute {
|
||||
Rust,
|
||||
Ignore,
|
||||
|
@ -1417,7 +1417,7 @@ fn rewrite(
|
||||
}
|
||||
}
|
||||
|
||||
/// Format `lazy_static!` from https://crates.io/crates/lazy_static.
|
||||
/// Format `lazy_static!` from <https://crates.io/crates/lazy_static>.
|
||||
///
|
||||
/// # Expected syntax
|
||||
///
|
||||
|
@ -22,11 +22,11 @@
|
||||
/// Returns `true` if the given pattern is "short".
|
||||
/// A short pattern is defined by the following grammar:
|
||||
///
|
||||
/// [small, ntp]:
|
||||
/// `[small, ntp]`:
|
||||
/// - single token
|
||||
/// - `&[single-line, ntp]`
|
||||
///
|
||||
/// [small]:
|
||||
/// `[small]`:
|
||||
/// - `[small, ntp]`
|
||||
/// - unary tuple constructor `([small, ntp])`
|
||||
/// - `&[small]`
|
||||
|
Loading…
Reference in New Issue
Block a user