mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
internal: Fix rustdoc warnings
`cargo doc` generates a bunch of warnings on rust-analyzer. Fix all the bare URL and empty code block warnings.
This commit is contained in:
parent
e059feadef
commit
d68e549205
15 changed files with 33 additions and 32 deletions
|
@ -143,14 +143,14 @@ pub struct FixtureWithProjectMeta {
|
|||
/// Specifies LLVM data layout to be used.
|
||||
///
|
||||
/// You probably don't want to manually specify this. See LLVM manual for the
|
||||
/// syntax, if you must: https://llvm.org/docs/LangRef.html#data-layout
|
||||
/// syntax, if you must: <https://llvm.org/docs/LangRef.html#data-layout>
|
||||
pub target_data_layout: String,
|
||||
}
|
||||
|
||||
impl FixtureWithProjectMeta {
|
||||
/// Parses text which looks like this:
|
||||
///
|
||||
/// ```not_rust
|
||||
/// ```text
|
||||
/// //- some meta
|
||||
/// line 1
|
||||
/// line 2
|
||||
|
@ -159,7 +159,7 @@ impl FixtureWithProjectMeta {
|
|||
///
|
||||
/// Fixture can also start with a proc_macros and minicore declaration (in that order):
|
||||
///
|
||||
/// ```
|
||||
/// ```text
|
||||
/// //- toolchain: nightly
|
||||
/// //- proc_macros: identity
|
||||
/// //- minicore: sized
|
||||
|
|
|
@ -224,7 +224,7 @@ pub fn add_cursor(text: &str, offset: TextSize) -> String {
|
|||
/// Annotations point to the last line that actually was long enough for the
|
||||
/// range, not counting annotations themselves. So overlapping annotations are
|
||||
/// possible:
|
||||
/// ```no_run
|
||||
/// ```text
|
||||
/// // stuff other stuff
|
||||
/// // ^^ 'st'
|
||||
/// // ^^^^^ 'stuff'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue