Cameron Steffen
|
6fc52a63d1
|
Move some utils to clippy_utils::source module
|
2021-03-15 15:34:15 -05:00 |
|
Yoshitomo Nakanishi
|
bdeec5dbd6
|
Use TypeckResults::expr_ty instead of TyCtxt::type_of to fix "Not a type" ICE
|
2021-02-27 22:57:29 +09:00 |
|
Yoshitomo Nakanishi
|
9b0c1ebc18
|
Change to span_lint_and_sugg from span_lint_and_help
|
2021-02-16 18:07:09 +09:00 |
|
Yoshitomo Nakanishi
|
1f8ee3cc19
|
Handle struct ctor case
|
2021-02-16 11:20:51 +09:00 |
|
Yoshitomo Nakanishi
|
fb91c76586
|
Add more tests for default_numeric_fallback
|
2021-02-15 23:33:27 +09:00 |
|
Yoshitomo Nakanishi
|
0198ac7bdd
|
Add fn_sig_opt to get fn signature from HirId
|
2021-02-15 23:29:18 +09:00 |
|
Yoshitomo Nakanishi
|
93796b2346
|
Add some restrictions to default_numeric_fallback to avoid FNs
|
2021-02-15 14:43:37 +09:00 |
|
Yoshitomo Nakanishi
|
22d4483dee
|
Simplify DefaultNumericFallback
|
2021-02-07 18:11:31 +09:00 |
|
Yoshitomo Nakanishi
|
8b8b0a94b0
|
Fix enclosing_body_owner_opt and rename it to enclosing_body_opt
|
2021-02-04 22:57:03 +09:00 |
|
Yoshitomo Nakanishi
|
e32e4dedf1
|
New lint: default_numeric_fallback
|
2021-02-04 17:26:43 +09:00 |
|