We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 354a965 commit a14a950Copy full SHA for a14a950
src/librustc/ty/util.rs
@@ -681,7 +681,7 @@ impl<'a, 'tcx> ty::TyS<'tcx> {
681
match (r1, r2) {
682
(Representability::SelfRecursive(v1),
683
Representability::SelfRecursive(v2)) => {
684
- Representability::SelfRecursive(v1.iter().map(|s| *s).chain(v2).collect())
+ Representability::SelfRecursive(v1.into_iter().chain(v2).collect())
685
}
686
(r1, r2) => cmp::max(r1, r2)
687
0 commit comments