Skip to content

Commit

Permalink
Enable the where_clauses_object_safety lint by default (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc authored Mar 22, 2023
1 parent e5f96e8 commit a360752
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/src/config-lints.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ https://doc.rust-lang.org/rustc/lints/listing/deny-by-default.html#soft-unstable

This prevents the use of language and library features which were accidentally stabilized. This is forbidden because there's no reason to need to use these, and forbidding them reduces the set of APIs and features we have to consider in PL/Rust.

### `where_clauses_object_safety`

https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#where-clauses-object-safety

This avoids some soundness holes that are in the language which can be used to trigger various crashes, see the lint documentation for details.

## PL/Rust `plrustc` Lints

### `plrust_extern_blocks`
Expand Down
1 change: 1 addition & 0 deletions plrust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const DEFAULT_LINTS: &'static str = "\
deprecated, \
suspicious_auto_trait_impls, \
unaligned_references, \
where_clauses_object_safety, \
soft_unstable\
";

Expand Down

0 comments on commit a360752

Please sign in to comment.