Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate customizations from rust-1.68.0 to rust-1.74.0 #31

Conversation

J-ZhengLi
Copy link

changelog: none

surechen and others added 30 commits December 1, 2023 14:40
[`passing_string_to_c_functions`]
[`untrusted_lib_loading`]
[`falliable_memory_allocation`]

Signed-off-by: J-ZhengLi <[email protected]>
finish implement lint [`mem_unsafe_functions`];
add simple description for unimplemented lints;

Signed-off-by: J-ZhengLi <[email protected]>
that detects unsafe block in `quote!`

Signed-off-by: J-ZhengLi <[email protected]>
that detects external block without explicit label "C"

Signed-off-by: J-ZhengLi <[email protected]>
Signed-off-by: SparrowLii <[email protected]>
Signed-off-by: SparrowLii <[email protected]>
Signed-off-by: SparrowLii <[email protected]>
that detects function calls that blocks thread under async context.

Signed-off-by: J-ZhengLi <[email protected]>
fix name typo;
add configuration;
add tests;
add more precised checks;
limit check ranges to external functions, and `Vec::with_capacity` only;
some other nit changes;

Signed-off-by: J-ZhengLi <[email protected]>
add some additional test cases;

Signed-off-by: J-ZhengLi <[email protected]>
- add configurations to allow additional detected functions
- only checks for functions `DefId` instead of its name ident
- check for io function call with matching args rather than any io calls.
- change error output
- code refractoring

Signed-off-by: J-ZhengLi <[email protected]>
- add more test cases
- disallow `repr(simd)` for extern mod funtion items
- improve error messages and include type usage span
- code refractoring

Signed-off-by: J-ZhengLi <[email protected]>
adjust `guidelines` lints configuration so that all configured function list will override existing ones;
move all configurable `guidelines` ui-toml tests into a single folder;

Signed-off-by: J-ZhengLi <[email protected]>
one false negative problem left to fix

Signed-off-by: J-ZhengLi <[email protected]>
and rewite using visitors for more in-depth detection

Signed-off-by: J-ZhengLi <[email protected]>
Signed-off-by: J-ZhengLi <[email protected]>
@J-ZhengLi J-ZhengLi force-pushed the custom_lints_1.74.0 branch 6 times, most recently from f2f1b3c to f25fa70 Compare December 1, 2023 09:49
@surechen
Copy link

surechen commented Dec 1, 2023

LGTM

@surechen surechen merged commit d5b213b into open-rust-initiative:custom-lint-1.74.0 Dec 1, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants