lucasly-ba

Results 26 issues of lucasly-ba

Fixes Rust-GCC#4260 on top of PR #4283 Used the HIR default visitor for AssignExpr, added a map, to have all the unused assignments and attached some methods to it. Since...

code: ```rust #[doc] pub fn a(){} ```

code: ```rust #[no_std] fn A() { } ```

code: ```rust //@compile-flags: -frust-incomplete-and-experimental-compiler-do-not-use #[derive()] pub fn check_ge(a: i32, b: i32) -> bool { a >= b } ``` On top of #https://github.com/Rust-GCC/gccrs/pull/4211 : ``` a.rs:1:3: error: derive may only...

code: ```rust #[deprecated(a,a)] pub fn a(){} ``` expected: ``` error[E0541]: unknown meta item 'a' --> a.rs:5:14 | 5 | #[deprecated(a,a)] | ^ expected one of `since`, `note` error: aborting due...

code ```rust pub fn a() { let int_reference = &3; match int_reference { &(0..=5) => (), /// will give us a range pattern _ => (), }; let x =...

This PR implements unused mut lint, it uses the hir default visitor and visit IdentifierPattern and StructPatternFieldIdent, to add to a map of mutable vars in the lint unused context....

This patch is simple, it only moves the check of unused static items and unused const items into the dead-code scan visitor.

This patch refactors all uses of vector patterns since a vector of patterns would be considered as an alt pattern, a vector is considered useless.

code: ```rust pub fn main() { let x = 3; match x { 4 => 0, 3 => 0, }; } ```