stanislav-tkach / os_info

Rust library to detect the operating system type
MIT License
175 stars 52 forks source link

Tests warning: unknown lint: `rustdoc::missing_doc_code_examples` #351

Open Cube707 opened 1 year ago

Cube707 commented 1 year ago

When running the test I get a warning (but all tests pass)

   Doc-tests os_info
warning: unknown lint: `rustdoc::missing_doc_code_examples`
  --> /home/jan/os_info/os_info/src/lib.rs:6:1
   |
6  | / #![deny(
7  | |     missing_debug_implementations,
8  | |     missing_docs,
9  | |     unsafe_code,
10 | |     missing_doc_code_examples
11 | | )]
   | |__^
   |
   = note: the `rustdoc::missing_doc_code_examples` lint is unstable
   = note: see issue #101730 <https://github.com/rust-lang/rust/issues/101730> for more information
   = note: `#[warn(unknown_lints)]` on by default

warning: lint `missing_doc_code_examples` has been renamed to `rustdoc::missing_doc_code_examples`
  --> /home/jan/os_info/os_info/src/lib.rs:10:5
   |
10 |     missing_doc_code_examples
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `rustdoc::missing_doc_code_examples`
   |
   = note: `#[warn(renamed_and_removed_lints)]` on by default

warning: 2 warnings emitted