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 e52fb6c commit da13969Copy full SHA for da13969
src/tools/compiletest/src/read2.rs
@@ -74,7 +74,8 @@ impl ProcOutput {
74
}
75
76
let mut head = replace(bytes, Vec::new());
77
- let tail = head.split_off(new_len - TAIL_LEN).into_boxed_slice();
+ let mut middle = head.split_off(HEAD_LEN);
78
+ let tail = middle.split_off(middle.len() - TAIL_LEN).into_boxed_slice();
79
let skipped = new_len - HEAD_LEN - TAIL_LEN;
80
ProcOutput::Abbreviated { head, skipped, tail }
81
0 commit comments