add information about overflowing_literals
@@ -667,13 +667,17 @@ impl Builder {
/// if the leftmost bit was one.
///
/// ```rust,no_run
+ /// //fix doc error about overflowing_literals
+ /// //rendered rfc: https://github.com/rust-lang/rfcs/blob/master/text/2438-deny-integer-literal-overflow-lint.md
+ /// //tracking issue: https://github.com/rust-lang/rust/issues/54502
+ /// #![allow(overflowing_literals)]
+ ///
/// // Logical Right Shift
/// assert_eq!(0b1100_0000 >> 2, 0b0011_0000);
/// assert_eq!(0b0000_0010 >> 1, 0b0000_0001);
/// assert_eq!(0b0000_1100 >> 2, 0b0000_0011);
///
/// // Sign Extended Right Shift
- /// #![allow(overflowing_literals)]
/// assert_eq!(0b0100_0000i8 >> 2, 0b0001_0000);
/// assert_eq!(0b1110_0000i8 >> 1, 0b1111_0000);
/// assert_eq!(0b1100_0000i8 >> 2, 0b1111_0000);
