pub struct DeprecatedUsageAnalyzer { /* private fields */ }Expand description
DeprecatedUsageAnalyzer — enforces deprecated_usage.
Strategy: run cargo clippy --examples --message-format=json and surface
every warning whose diagnostic code is deprecated. This re-frames the
built-in lint as drift: an example that still calls deprecated API is
teaching users a pattern the codebase is moving away from.
Implementations§
Source§impl DeprecatedUsageAnalyzer
impl DeprecatedUsageAnalyzer
pub fn with_runner(runner: Box<dyn CargoRunner>) -> Self
Trait Implementations§
Source§impl Default for DeprecatedUsageAnalyzer
impl Default for DeprecatedUsageAnalyzer
Source§impl DriftAnalyzer for DeprecatedUsageAnalyzer
impl DriftAnalyzer for DeprecatedUsageAnalyzer
fn analyze(&self, ctx: &ProjectContext) -> Vec<Divergence>
Auto Trait Implementations§
impl !RefUnwindSafe for DeprecatedUsageAnalyzer
impl !UnwindSafe for DeprecatedUsageAnalyzer
impl Freeze for DeprecatedUsageAnalyzer
impl Send for DeprecatedUsageAnalyzer
impl Sync for DeprecatedUsageAnalyzer
impl Unpin for DeprecatedUsageAnalyzer
impl UnsafeUnpin for DeprecatedUsageAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more