1
Fork 0

replace guess_head_span with def_span

This commit is contained in:
Takayuki Maeda 2022-07-04 17:23:24 +09:00
parent 5b8cf49c51
commit 83dea35384
24 changed files with 111 additions and 177 deletions

View file

@ -795,7 +795,7 @@ fn foo(&self) -> Self::T { String::new() }
if item_def_id == proj_ty_item_def_id =>
{
Some((
self.sess.source_map().guess_head_span(self.def_span(item.def_id)),
self.def_span(item.def_id),
format!("consider calling `{}`", self.def_path_str(item.def_id)),
))
}