diagnostics: if AssocFn has self argument, describe as method
Discussed in
329265515
This commit also changes the tooltips on rustdoc intra-doc links
targeting methods.
This commit is contained in:
parent
3b4d6e0804
commit
3d056c3125
25 changed files with 91 additions and 58 deletions
|
@ -439,7 +439,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
|
|||
|
||||
fn create_error_message(&self) -> String {
|
||||
let def_path = self.tcx.def_path_str(self.def_id);
|
||||
let def_kind = self.tcx.def_kind(self.def_id).descr(self.def_id);
|
||||
let def_kind = self.tcx.def_descr(self.def_id);
|
||||
let (quantifier, bound) = self.get_quantifier_and_bound();
|
||||
let kind = self.kind();
|
||||
let provided_lt_args = self.num_provided_lifetime_args();
|
||||
|
@ -990,7 +990,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
|
|||
};
|
||||
|
||||
let msg = {
|
||||
let def_kind = self.tcx.def_kind(self.def_id).descr(self.def_id);
|
||||
let def_kind = self.tcx.def_descr(self.def_id);
|
||||
let (quantifier, bound) = self.get_quantifier_and_bound();
|
||||
|
||||
let params = if bound == 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue