rust/crates
bors[bot] 5231f4b270
Merge #7341
7341: Fix warnings when running `cargo doc --document-private-items` r=Veykril a=jyn514

These were the warnings previously:

<details>

```
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
```

</details>

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.

Co-authored-by: Joshua Nelson <jyn514@gmail.com>
2021-01-18 23:19:53 +00:00
..
assists Merge #7297 #7338 2021-01-18 19:40:11 +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 Merge #7339 2021-01-18 19:54:40 +00:00
flycheck Unfreeze cargo_metadata 2021-01-11 08:27:16 -05:00
hir Add flyimport completion for trait assoc items 2021-01-16 20:44:12 +02:00
hir_def Merge #7336 2021-01-18 20:12:11 +00:00
hir_expand shrink_to_fit TokenMap's backing storage 2021-01-18 18:40:06 +01:00
hir_ty Rename CrateDefMap to DefMap 2021-01-18 20:18:05 +01:00
ide Remove obsolete RangeInfo usage in references 2021-01-18 21:10:01 +01:00
ide_db Merge #7297 #7338 2021-01-18 19:40:11 +00:00
mbe shrink_to_fit TokenMap's backing storage 2021-01-18 18:40:06 +01:00
parser Merge #7341 2021-01-18 23:19:53 +00: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 Merge #7297 #7338 2021-01-18 19:40:11 +00: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 Parse impl const Trait 2021-01-18 20:18:02 +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