@@ -911,8 +911,7 @@ declare_lint! {
911
911
912
912
declare_lint ! {
913
913
/// The `trivial_casts` lint detects trivial casts which could be replaced
914
- /// with coercion, which may require [type ascription] or a temporary
915
- /// variable.
914
+ /// with coercion, which may require a temporary variable.
916
915
///
917
916
/// ### Example
918
917
///
@@ -934,12 +933,14 @@ declare_lint! {
934
933
/// with FFI interfaces or complex type aliases, where it triggers
935
934
/// incorrectly, or in situations where it will be more difficult to
936
935
/// clearly express the intent. It may be possible that this will become a
937
- /// warning in the future, possibly with [type ascription] providing a
938
- /// convenient way to work around the current issues. See [RFC 401] for
939
- /// historical context.
940
- ///
941
- /// [type ascription]: https://github.com/rust-lang/rust/issues/23416
942
- /// [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
936
+ /// warning in the future, possibly with an explicit syntax for coercions
937
+ /// providing a convenient way to work around the current issues.
938
+ /// See [RFC 401 (coercions)][rfc-401], [RFC 803 (type ascription)][rfc-803] and
939
+ /// [RFC 3307 (remove type ascription)][rfc-3307] for historical context.
940
+ ///
941
+ /// [rfc-401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
942
+ /// [rfc-803]: https://github.com/rust-lang/rfcs/blob/master/text/0803-type-ascription.md
943
+ /// [rfc-3307]: https://github.com/rust-lang/rfcs/blob/master/text/3307-de-rfc-type-ascription.md
943
944
pub TRIVIAL_CASTS ,
944
945
Allow ,
945
946
"detects trivial casts which could be removed"
@@ -967,12 +968,14 @@ declare_lint! {
967
968
/// with FFI interfaces or complex type aliases, where it triggers
968
969
/// incorrectly, or in situations where it will be more difficult to
969
970
/// clearly express the intent. It may be possible that this will become a
970
- /// warning in the future, possibly with [type ascription] providing a
971
- /// convenient way to work around the current issues. See [RFC 401] for
972
- /// historical context.
973
- ///
974
- /// [type ascription]: https://github.com/rust-lang/rust/issues/23416
975
- /// [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
971
+ /// warning in the future, possibly with an explicit syntax for coercions
972
+ /// providing a convenient way to work around the current issues.
973
+ /// See [RFC 401 (coercions)][rfc-401], [RFC 803 (type ascription)][rfc-803] and
974
+ /// [RFC 3307 (remove type ascription)][rfc-3307] for historical context.
975
+ ///
976
+ /// [rfc-401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
977
+ /// [rfc-803]: https://github.com/rust-lang/rfcs/blob/master/text/0803-type-ascription.md
978
+ /// [rfc-3307]: https://github.com/rust-lang/rfcs/blob/master/text/3307-de-rfc-type-ascription.md
976
979
pub TRIVIAL_NUMERIC_CASTS ,
977
980
Allow ,
978
981
"detects trivial casts of numeric types which could be removed"
0 commit comments