Skip to content

Commit

Permalink
Ignore test_attr_in_doctest clippy lint
Browse files Browse the repository at this point in the history
    warning: unit tests in doctest are not executed
      --> src/lib.rs:34:5
       |
    34 |   //! #[test]
       |  _____^
    35 | | //! fn ui() {
       | |_________^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest
       = note: `-W clippy::test-attr-in-doctest` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::test_attr_in_doctest)]`

    warning: unit tests in doctest are not executed
      --> src/lib.rs:81:5
       |
    81 |   //! #[test]
       |  _____^
    82 | | //! fn ui() {
       | |_________^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#test_attr_in_doctest

This is correctly used in trybuild.
  • Loading branch information
dtolnay committed Dec 3, 2023
1 parent aa98d35 commit c1f2d24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
clippy::range_plus_one,
clippy::similar_names,
clippy::single_match_else,
clippy::test_attr_in_doctest,
clippy::too_many_lines,
clippy::trivially_copy_pass_by_ref,
clippy::unused_self,
Expand Down

0 comments on commit c1f2d24

Please sign in to comment.