rust-analyzer/crates
Joshua Nelson e7d1f30cb3 Fix warnings when running cargo doc --document-private-items
These were the warnings previously:

```
warning: could not parse code block as Rust code
   --> crates/stdx/src/lib.rs:137:9
    |
137 |   ///     ∀ x in slice[..idx]:  pred(x)
    |  _________^
138 | | ///  && ∀ x in slice[idx..]: !pred(x)
    | |____^
    |
    = note: error from rustc: unknown start of token: \u{2200}

warning: 1 warning emitted

warning: unresolved link to `package`
   --> crates/base_db/src/input.rs:181:15
    |
181 |     /// it's [package].name, can be different for other project types or even
    |               ^^^^^^^ no item named `package` in scope
    |
    = note: `#[warn(broken_intra_doc_links)]` on by default
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

warning: unresolved link to `package`
   --> crates/base_db/src/input.rs:181:15
    |
181 |     /// it's [package].name, can be different for other project types or even
    |               ^^^^^^^ no item named `package` in scope
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

warning: 2 warnings emitted

warning: unresolved link to `package`
   --> crates/base_db/src/input.rs:181:15
    |
181 |     /// it's [package].name, can be different for other project types or even
    |               ^^^^^^^ no item named `package` in scope
    |
    = note: `#[warn(broken_intra_doc_links)]` on by default
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

warning: unresolved link to `package`
   --> crates/base_db/src/input.rs:181:15
    |
181 |     /// it's [package].name, can be different for other project types or even
    |               ^^^^^^^ no item named `package` in scope
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

warning: 2 warnings emitted
```

This does *not* fix the following warning, because it is actually rust
code and rustdoc is being over eager:

```
warning: Rust code block is empty
  --> crates/parser/src/grammar.rs:16:5
   |
16 |   //! ```
   |  _____^
17 | | //! // test function_with_zero_parameters
18 | | //! // fn foo() {}
19 | | //! ```
   | |_______^
   |
help: mark blocks that do not contain Rust code as text
   |
16 | //! ```text
   |     ^^^^^^^
```

https://github.com/rust-lang/rust/pull/79816 should make this
configurable so the warning can be `allow`ed.
2021-01-18 16:44:40 -05:00
..
assists Merge #7291 2021-01-18 16:13:06 +00:00
base_db Fix warnings when running cargo doc --document-private-items 2021-01-18 16:44:40 -05:00
cfg Upgrade expect-test to 1.1 2021-01-03 14:43:29 +01:00
completion Use assert_never properly 2021-01-18 15:58:10 +03:00
flycheck Unfreeze cargo_metadata 2021-01-11 08:27:16 -05:00
hir Handle self/super/crate in PathSegment as NameRef 2021-01-15 19:21:23 +01:00
hir_def Merge #7326 2021-01-18 17:40:11 +00:00
hir_expand shrink_to_fit TokenMap's backing storage 2021-01-18 18:40:06 +01:00
hir_ty Merge #7291 2021-01-18 16:13:06 +00:00
ide Merge #7332 2021-01-18 19:00:04 +00:00
ide_db Merge #7291 2021-01-18 16:13:06 +00:00
mbe shrink_to_fit TokenMap's backing storage 2021-01-18 18:40:06 +01:00
parser Fix warnings when running cargo doc --document-private-items 2021-01-18 16:44:40 -05:00
paths Add description for crates that will be published 2020-08-24 13:07:22 +02:00
proc_macro_api Enable serde_json unbounded_depth feature 2021-01-18 14:04:20 +02:00
proc_macro_srv cargo update 2021-01-18 13:13:24 -05:00
proc_macro_test Add description for crates that will be published 2020-08-24 13:07:22 +02:00
profile Add back jemalloc support 2021-01-18 19:39:46 +01:00
project_model Avoid blocking the main loop when editing Cargo.toml 2021-01-18 14:52:12 +03:00
rust-analyzer Add back jemalloc support 2021-01-18 19:39:46 +01:00
ssr Phase out SourceFileEdits in favour of a plain HashMap 2021-01-14 22:43:36 +01:00
stdx Fix warnings when running cargo doc --document-private-items 2021-01-18 16:44:40 -05:00
syntax Add MacroType syntax 2021-01-18 17:56:35 +01:00
test_utils Fixed typos in code comments 2021-01-09 15:41:29 +01:00
text_edit Avoid turning completion objects into builders 2020-11-16 23:16:41 +02:00
toolchain Add description for crates that will be published 2020-08-24 13:07:22 +02:00
tt Refactor TokenBuffer for reduc cloning 2021-01-05 02:00:46 +08:00
vfs Document vfs private items 2021-01-12 18:01:47 +01:00
vfs-notify Follow symlinks when walking project trees 2020-10-15 14:22:36 -04:00