@@ -9,12 +9,24 @@ declare_clippy_lint! {
9
9
/// Checks for usage of `as` conversions.
10
10
///
11
11
/// Note that this lint is specialized in linting *every single* use of `as`
12
- /// regardless of whether good alternatives exist or not.
13
- /// If you want more precise lints for `as`, please consider using these separate lints:
14
- /// `unnecessary_cast`, `cast_lossless/cast_possible_truncation/cast_possible_wrap/cast_precision_loss/cast_sign_loss`,
15
- /// `fn_to_numeric_cast(_with_truncation)`, `char_lit_as_u8`, `ref_to_mut` and `ptr_as_ptr`.
16
- /// There is a good explanation the reason why this lint should work in this way and how it is useful
17
- /// [in this issue](https://github.com/rust-lang/rust-clippy/issues/5122).
12
+ /// regardless of whether good alternatives exist or not. If you want more
13
+ /// precise lints for `as`, please consider using these separate lints:
14
+ ///
15
+ /// - clippy::cast_lossless
16
+ /// - clippy::cast_possible_truncation
17
+ /// - clippy::cast_possible_wrap
18
+ /// - clippy::cast_precision_loss
19
+ /// - clippy::cast_sign_loss
20
+ /// - clippy::char_lit_as_u8
21
+ /// - clippy::fn_to_numeric_cast
22
+ /// - clippy::fn_to_numeric_cast_with_truncation
23
+ /// - clippy::ptr_as_ptr
24
+ /// - clippy::unnecessary_cast
25
+ /// - invalid_reference_casting
26
+ ///
27
+ /// There is a good explanation the reason why this lint should work in this
28
+ /// way and how it is useful [in this
29
+ /// issue](https://github.com/rust-lang/rust-clippy/issues/5122).
18
30
///
19
31
/// ### Why restrict this?
20
32
/// `as` conversions will perform many kinds of
0 commit comments