-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionE-hardS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
In rust-analyzer using "go to definition" on the to_string()
part of 5.to_string()
takes you to:
pub trait ToString {
fn to_string(&self) -> String;
}
In IntelliJ it takes you to the more useful:
impl<T: fmt::Display + ?Sized> ToString for T {
#[inline]
default fn to_string(&self) -> String {
use fmt::Write;
let mut buf = String::new();
buf.write_fmt(format_args!("{}", self))
.expect("a Display implementation returned an error unexpectedly");
buf.shrink_to_fit();
buf
}
}
SomeoneToIgnore, kjeremy, Aloso, ruabmbua, samlh and 86 more
Metadata
Metadata
Assignees
Labels
A-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionE-hardS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now