Don't drop parent substs when we have no generic parameters
This commit is contained in:
parent
3ce46b74aa
commit
6e83da1a2d
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||
// here and so associated type bindings will be handled regardless of whether there are any
|
||||
// non-`Self` generic parameters.
|
||||
if generics.params.is_empty() {
|
||||
return (tcx.intern_substs(&[]), arg_count);
|
||||
return (tcx.intern_substs(parent_substs), arg_count);
|
||||
}
|
||||
|
||||
struct SubstsForAstPathCtxt<'a, 'tcx> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue