librustc: remove unnecessary as_mut_slice
calls
This commit is contained in:
parent
5a24058889
commit
d64fd22c71
@ -172,7 +172,7 @@ impl CStore {
|
||||
for (&num, _) in self.metas.borrow().iter() {
|
||||
visit(self, num, &mut ordering);
|
||||
}
|
||||
ordering.as_mut_slice().reverse();
|
||||
ordering.reverse();
|
||||
let mut libs = self.used_crate_sources.borrow()
|
||||
.iter()
|
||||
.map(|src| (src.cnum, match prefer {
|
||||
|
@ -764,7 +764,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
|
||||
}
|
||||
}
|
||||
};
|
||||
output_types.as_mut_slice().sort();
|
||||
output_types.sort();
|
||||
output_types.dedup();
|
||||
if output_types.len() == 0 {
|
||||
output_types.push(OutputTypeExe);
|
||||
|
Loading…
x
Reference in New Issue
Block a user