Rust Marker Linter
Version updated for rust-marker/marker to version v0.4.0.
- This action is used across all versions by 5 repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
The v0.4.0 milestone contains a full list of all changes.
Added
- #306: The
LintPass
trait now as a newcheck_crate
method. - #294: Items and fields now provide information about their visibility
Fixed
- #306: Rustc’s driver no longer ICEs on spans from compiler generated code.
Breaking Changes
- #278: Moved the
span()
method from the inherent impl toHasSpan
trait forClosureParam
,FnParam
,StructFieldPat
. - #278: The trait
TyData
no longer has ownspan()
method, but instead requiresHasSpan
as a supertrait. - #278: All public methods that took
&Span
as a parameter now takeimpl HasSpan
. This is a minor breaking change, as&Span
implementsHasSpan
, but if you relied on type inference based on the function parameter type, then making a method generic may break your code. - #288: Lint identifiers use the lint crate name as a new infix, to prevent name collisions across lint crates.
- #306: The items of a
Crate
are now wrapped in aModItem
, that is the root module of the crate. - #309: Renamed
CallExpr::operand
toCallExpr::func
- #309: Renamed
RefPat::pattern()
->RefPat::pat()
- #309: Renamed
OrPat::patterns()
->RefPat::pats()