New lint: unsafe
trait becomes safe
#250
Labels
A-lint
Area: new or existing lint
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-mentor
Call for participation: Mentorship is available for this issue.
This is the opposite direction of #231, and perhaps surprisingly this is also a breaking change since
unsafe impl
is not allowed for safe traits.Implementing an
unsafe trait
requires anunsafe impl
block, but safe traits cannot be implemented with anunsafe impl
block. https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html#implementing-an-unsafe-traitNeeds schema additions to expose whether the trait is
unsafe
:https://doc.rust-lang.org/nightly/nightly-rustc/rustdoc_json_types/struct.Trait.html
https://github.com/obi1kenobi/trustfall-rustdoc-adapter/blob/0b1f021c22aab6e48f38156e52c7b8331447149a/src/rustdoc_schema.graphql#L382
The text was updated successfully, but these errors were encountered: