replace guess_head_span
with def_span
This commit is contained in:
parent
5b8cf49c51
commit
83dea35384
24 changed files with 111 additions and 177 deletions
|
@ -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)),
|
||||
))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue