Skip to content

Commit f8998e9

Browse files
committed
as_slice removed
1 parent 14b3a40 commit f8998e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_middle/src/ty/print/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
19201920
}
19211921
// Otherwise, print the array separated by commas (or if it's a tuple)
19221922
(ty::ValTreeKind::Branch(fields), ty::Array(..) | ty::Tuple(..)) => {
1923-
let fields_iter = fields.as_slice().iter().copied();
1923+
let fields_iter = fields.iter();
19241924

19251925
match *cv.ty.kind() {
19261926
ty::Array(..) => {

0 commit comments

Comments
 (0)