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 14b3a40 commit f8998e9Copy full SHA for f8998e9
1 file changed
compiler/rustc_middle/src/ty/print/pretty.rs
@@ -1920,7 +1920,7 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
1920
}
1921
// Otherwise, print the array separated by commas (or if it's a tuple)
1922
(ty::ValTreeKind::Branch(fields), ty::Array(..) | ty::Tuple(..)) => {
1923
- let fields_iter = fields.as_slice().iter().copied();
+ let fields_iter = fields.iter();
1924
1925
match *cv.ty.kind() {
1926
ty::Array(..) => {
0 commit comments