Update the rest of the compiler with ~[T] changes
This commit is contained in:
parent
7d3b0bf391
commit
675b82657e
35 changed files with 140 additions and 166 deletions
|
|
@ -38,7 +38,6 @@ use std::fmt;
|
|||
use std::io::{fs, File, BufferedWriter, MemWriter, BufferedReader};
|
||||
use std::io;
|
||||
use std::local_data;
|
||||
use std::slice;
|
||||
use std::str;
|
||||
use std::strbuf::StrBuf;
|
||||
|
||||
|
|
@ -1047,7 +1046,7 @@ fn item_module(w: &mut Writer, cx: &Context,
|
|||
item: &clean::Item, items: &[clean::Item]) -> fmt::Result {
|
||||
try!(document(w, item));
|
||||
debug!("{:?}", items);
|
||||
let mut indices = slice::from_fn(items.len(), |i| i);
|
||||
let mut indices = Vec::from_fn(items.len(), |i| i);
|
||||
|
||||
fn cmp(i1: &clean::Item, i2: &clean::Item, idx1: uint, idx2: uint) -> Ordering {
|
||||
if shortty(i1) == shortty(i2) {
|
||||
|
|
|
|||
|
|
@ -169,8 +169,8 @@ fn runtest(test: &str, cratename: &str, libs: HashSet<Path>, should_fail: bool,
|
|||
|
||||
fn maketest(s: &str, cratename: &str, loose_feature_gating: bool) -> ~str {
|
||||
let mut prog = StrBuf::from_str(r"
|
||||
#![deny(warnings)];
|
||||
#![allow(unused_variable, dead_assignment, unused_mut, attribute_usage, dead_code)];
|
||||
#![deny(warnings)]
|
||||
#![allow(unused_variable, dead_assignment, unused_mut, attribute_usage, dead_code)]
|
||||
");
|
||||
|
||||
if loose_feature_gating {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue