Rollup merge of #98028 - aticu:master, r=estebank
Add E0790 as more specific variant of E0283 Fixes #81701 I think this should be good to go, there are only two things where I am somewhat unsure: - Is there a better way to get the fully-qualified path for the suggestion? I tried `self.tcx.def_path_str`, but that didn't seem to always give a correct path for the context. - Should all this be extracted into it's own method or is it fine where it is? r? `@estebank`
This commit is contained in:
commit
bfefd587c0
21 changed files with 352 additions and 98 deletions
|
@ -74,6 +74,10 @@ impl TraitImpls {
|
|||
pub fn blanket_impls(&self) -> &[DefId] {
|
||||
self.blanket_impls.as_slice()
|
||||
}
|
||||
|
||||
pub fn non_blanket_impls(&self) -> &FxIndexMap<SimplifiedType, Vec<DefId>> {
|
||||
&self.non_blanket_impls
|
||||
}
|
||||
}
|
||||
|
||||
impl<'tcx> TraitDef {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue