Closed as not planned
Closed as not planned
Description
This bug is on current RA on current VSC on macOS.
Here's how I triggered it:
5i32.rem_euclid
and then I hovered over rem_euclid
and saw this at the bottom of the tooltip (there is valid input above this)
But it didn't make sense because where is a
in that example? So I dug through the docs and found the original:
/// # Examples
///
/// Basic usage:
///
/// ```
#[doc = concat!("let a: ", stringify!($SelfT), " = 7; // or any other integer type")]
/// let b = 4;
///
/// assert_eq!(a.div_euclid(b), 1); // 7 >= 4 * 1
/// assert_eq!(a.div_euclid(-b), -1); // 7 >= -4 * -1
/// assert_eq!((-a).div_euclid(b), -2); // -7 >= 4 * -2
/// assert_eq!((-a).div_euclid(-b), 2); // -7 >= -4 * 2
/// ```
I appears that doc concat is hurting the RA's ability to udnerstand. Of course, this macro is within:
impl i32 {
int_impl! { i32, i32, u32, 32, 31, -2147483648, 2147483647, 8, "0x10000b3", "0xb301",
"0x12345678", "0x78563412", "0x1e6a2c48", "[0x78, 0x56, 0x34, 0x12]",
"[0x12, 0x34, 0x56, 0x78]", "", "", "" }
}
so the solution is a bit messy.
Good luck to whatever soul must figure this out