We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce46b7 commit 6e83da1Copy full SHA for 6e83da1
compiler/rustc_typeck/src/astconv/mod.rs
@@ -365,7 +365,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
365
// here and so associated type bindings will be handled regardless of whether there are any
366
// non-`Self` generic parameters.
367
if generics.params.is_empty() {
368
- return (tcx.intern_substs(&[]), arg_count);
+ return (tcx.intern_substs(parent_substs), arg_count);
369
}
370
371
struct SubstsForAstPathCtxt<'a, 'tcx> {
0 commit comments