We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
variances_of
1 parent 32ea361 commit c2c6cb4Copy full SHA for c2c6cb4
1 file changed
compiler/rustc_query_impl/src/handle_cycle_error.rs
@@ -104,7 +104,7 @@ pub(crate) fn variances_of<'tcx>(
104
err: Diag<'_>,
105
) -> &'tcx [ty::Variance] {
106
let _guar = err.delay_as_bug();
107
- let n = tcx.generics_of(def_id).own_params.len();
+ let n = tcx.generics_of(def_id).count();
108
tcx.arena.alloc_from_iter(iter::repeat_n(ty::Bivariant, n))
109
}
110
0 commit comments