Skip to content

Commit

Permalink
don't break on attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
suaviloquence committed May 28, 2024
1 parent 03ff78e commit d4ce6af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content/rust-lint-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The [`[lints]`](https://rust-lang.github.io/rfcs/3389-manifest-lint.html) ([carg

## module/item attributes

For rustc lints, you can add configuration like `#![allow(lint)]` outer attribute to a module as well as attributes like `#[warn(lint)]` on an inner item itself to apply that configuration to just the module/item. Currently, `cargo-semver-checks` has a less granular version of this by adding `#[doc(hidden)]` to an item to exempt it from semver guarantees, but adding this is a breaking change.
For rustc lints, you can add configuration like `#![allow(lint)]` outer attribute to a module as well as attributes like `#[warn(lint)]` on an inner item itself to apply that configuration to just the module/item. Currently, `cargo-semver-checks` has a less granular version of this by adding <span class="nobr">`#[doc(hidden)]`</span> to an item to exempt it from semver guarantees, but adding this is a breaking change.

## lint groups

Expand Down
4 changes: 4 additions & 0 deletions sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@
a:visited {
color: $violet;
}

.nobr {
white-space: nowrap
}
}

#tag-list {
Expand Down

0 comments on commit d4ce6af

Please sign in to comment.