Rollup merge of #66086 - RalfJung:smallvec, r=nagisa
bump smallvec to 1.0 This includes https://github.com/servo/rust-smallvec/pull/162, fixing an unsoundness in smallvec. See https://github.com/servo/rust-smallvec/pull/175 for the 1.0 release announcement. Cc @mbrubeck @emilio
This commit is contained in:
commit
167b8fedd6
19 changed files with 53 additions and 47 deletions
56
Cargo.lock
56
Cargo.lock
|
@ -68,7 +68,7 @@ name = "arena"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rustc_data_structures",
|
"rustc_data_structures",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -487,7 +487,7 @@ dependencies = [
|
||||||
"regex-syntax",
|
"regex-syntax",
|
||||||
"semver",
|
"semver",
|
||||||
"serde",
|
"serde",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
"toml",
|
"toml",
|
||||||
"unicode-normalization",
|
"unicode-normalization",
|
||||||
"url 2.1.0",
|
"url 2.1.0",
|
||||||
|
@ -655,7 +655,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0f0ed1a4de2235cabda8558ff5840bffb97fcb64c97827f354a451307df5f72b"
|
checksum = "0f0ed1a4de2235cabda8558ff5840bffb97fcb64c97827f354a451307df5f72b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"crossbeam-utils 0.6.5",
|
"crossbeam-utils 0.6.5",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2392,7 +2392,7 @@ dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"rand 0.6.1",
|
"rand 0.6.1",
|
||||||
"rustc_version",
|
"rustc_version",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
"winapi 0.3.6",
|
"winapi 0.3.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2407,7 +2407,7 @@ dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"redox_syscall",
|
"redox_syscall",
|
||||||
"rustc_version",
|
"rustc_version",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
"winapi 0.3.6",
|
"winapi 0.3.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3135,7 +3135,7 @@ dependencies = [
|
||||||
"rustc_target",
|
"rustc_target",
|
||||||
"scoped-tls",
|
"scoped-tls",
|
||||||
"serialize",
|
"serialize",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"syntax",
|
"syntax",
|
||||||
"syntax_pos",
|
"syntax_pos",
|
||||||
]
|
]
|
||||||
|
@ -3147,7 +3147,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a623fd4805842e9bd0bb6e6dace63efede0ee22de4522a0b03b7c3d15a22f009"
|
checksum = "a623fd4805842e9bd0bb6e6dace63efede0ee22de4522a0b03b7c3d15a22f009"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rustc-ap-rustc_data_structures",
|
"rustc-ap-rustc_data_structures",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3176,7 +3176,7 @@ dependencies = [
|
||||||
"rustc-hash",
|
"rustc-hash",
|
||||||
"rustc-rayon 0.2.0",
|
"rustc-rayon 0.2.0",
|
||||||
"rustc-rayon-core 0.2.0",
|
"rustc-rayon-core 0.2.0",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
"stable_deref_trait",
|
"stable_deref_trait",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3204,7 +3204,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "457a5c204ae2fdaa5bdb5b196e58ca59896870d80445fe423063c9453496e3ea"
|
checksum = "457a5c204ae2fdaa5bdb5b196e58ca59896870d80445fe423063c9453496e3ea"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rustc-ap-serialize",
|
"rustc-ap-serialize",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3250,7 +3250,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "92679240e86f4583cc05f8dcf6439bdab87bac9e6555718469176de9bd52ba20"
|
checksum = "92679240e86f4583cc05f8dcf6439bdab87bac9e6555718469176de9bd52ba20"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"indexmap",
|
"indexmap",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3270,7 +3270,7 @@ dependencies = [
|
||||||
"rustc-ap-serialize",
|
"rustc-ap-serialize",
|
||||||
"rustc-ap-syntax_pos",
|
"rustc-ap-syntax_pos",
|
||||||
"scoped-tls",
|
"scoped-tls",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3393,7 +3393,7 @@ dependencies = [
|
||||||
"crossbeam-utils 0.6.5",
|
"crossbeam-utils 0.6.5",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"smallvec",
|
"smallvec 0.6.10",
|
||||||
"syn 0.15.35",
|
"syn 0.15.35",
|
||||||
"url 2.1.0",
|
"url 2.1.0",
|
||||||
"winapi 0.3.6",
|
"winapi 0.3.6",
|
||||||
|
@ -3404,7 +3404,7 @@ name = "rustc_apfloat"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3484,7 +3484,7 @@ dependencies = [
|
||||||
"rustc-rayon-core 0.3.0",
|
"rustc-rayon-core 0.3.0",
|
||||||
"rustc_index",
|
"rustc_index",
|
||||||
"serialize",
|
"serialize",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"stable_deref_trait",
|
"stable_deref_trait",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3552,7 +3552,7 @@ name = "rustc_index"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serialize",
|
"serialize",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -3579,7 +3579,7 @@ dependencies = [
|
||||||
"rustc_traits",
|
"rustc_traits",
|
||||||
"rustc_typeck",
|
"rustc_typeck",
|
||||||
"serialize",
|
"serialize",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"syntax",
|
"syntax",
|
||||||
"syntax_expand",
|
"syntax_expand",
|
||||||
"syntax_ext",
|
"syntax_ext",
|
||||||
|
@ -3650,7 +3650,7 @@ dependencies = [
|
||||||
"rustc_index",
|
"rustc_index",
|
||||||
"rustc_target",
|
"rustc_target",
|
||||||
"serialize",
|
"serialize",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"stable_deref_trait",
|
"stable_deref_trait",
|
||||||
"syntax",
|
"syntax",
|
||||||
"syntax_expand",
|
"syntax_expand",
|
||||||
|
@ -3675,7 +3675,7 @@ dependencies = [
|
||||||
"rustc_lexer",
|
"rustc_lexer",
|
||||||
"rustc_target",
|
"rustc_target",
|
||||||
"serialize",
|
"serialize",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"syntax",
|
"syntax",
|
||||||
"syntax_pos",
|
"syntax_pos",
|
||||||
]
|
]
|
||||||
|
@ -3746,7 +3746,7 @@ dependencies = [
|
||||||
"rustc_data_structures",
|
"rustc_data_structures",
|
||||||
"rustc_errors",
|
"rustc_errors",
|
||||||
"rustc_metadata",
|
"rustc_metadata",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"syntax",
|
"syntax",
|
||||||
"syntax_expand",
|
"syntax_expand",
|
||||||
"syntax_pos",
|
"syntax_pos",
|
||||||
|
@ -3799,7 +3799,7 @@ dependencies = [
|
||||||
"rustc",
|
"rustc",
|
||||||
"rustc_data_structures",
|
"rustc_data_structures",
|
||||||
"rustc_target",
|
"rustc_target",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"syntax",
|
"syntax",
|
||||||
"syntax_pos",
|
"syntax_pos",
|
||||||
]
|
]
|
||||||
|
@ -3826,7 +3826,7 @@ dependencies = [
|
||||||
"rustc_errors",
|
"rustc_errors",
|
||||||
"rustc_index",
|
"rustc_index",
|
||||||
"rustc_target",
|
"rustc_target",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"syntax",
|
"syntax",
|
||||||
"syntax_pos",
|
"syntax_pos",
|
||||||
]
|
]
|
||||||
|
@ -4070,7 +4070,7 @@ name = "serialize"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"indexmap",
|
"indexmap",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -4134,6 +4134,12 @@ version = "0.6.10"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ab606a9c5e214920bb66c458cd7be8ef094f813f20fe77a54cc7dbfff220d4b7"
|
checksum = "ab606a9c5e214920bb66c458cd7be8ef094f813f20fe77a54cc7dbfff220d4b7"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "smallvec"
|
||||||
|
version = "1.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4ecf3b85f68e8abaa7555aa5abdb1153079387e60b718283d732f03897fcfc86"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "socket2"
|
name = "socket2"
|
||||||
version = "0.3.8"
|
version = "0.3.8"
|
||||||
|
@ -4359,7 +4365,7 @@ dependencies = [
|
||||||
"rustc_target",
|
"rustc_target",
|
||||||
"scoped-tls",
|
"scoped-tls",
|
||||||
"serialize",
|
"serialize",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"syntax_pos",
|
"syntax_pos",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -4377,7 +4383,7 @@ dependencies = [
|
||||||
"rustc_target",
|
"rustc_target",
|
||||||
"scoped-tls",
|
"scoped-tls",
|
||||||
"serialize",
|
"serialize",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"syntax",
|
"syntax",
|
||||||
"syntax_pos",
|
"syntax_pos",
|
||||||
]
|
]
|
||||||
|
@ -4391,7 +4397,7 @@ dependencies = [
|
||||||
"rustc_data_structures",
|
"rustc_data_structures",
|
||||||
"rustc_errors",
|
"rustc_errors",
|
||||||
"rustc_target",
|
"rustc_target",
|
||||||
"smallvec",
|
"smallvec 1.0.0",
|
||||||
"syntax",
|
"syntax",
|
||||||
"syntax_expand",
|
"syntax_expand",
|
||||||
"syntax_pos",
|
"syntax_pos",
|
||||||
|
|
|
@ -10,4 +10,4 @@ path = "lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rustc_data_structures = { path = "../librustc_data_structures" }
|
rustc_data_structures = { path = "../librustc_data_structures" }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
|
|
|
@ -39,5 +39,5 @@ parking_lot = "0.9"
|
||||||
byteorder = { version = "1.3" }
|
byteorder = { version = "1.3" }
|
||||||
chalk-engine = { version = "0.9.0", default-features=false }
|
chalk-engine = { version = "0.9.0", default-features=false }
|
||||||
rustc_fs_util = { path = "../librustc_fs_util" }
|
rustc_fs_util = { path = "../librustc_fs_util" }
|
||||||
smallvec = { version = "0.6.8", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
measureme = "0.4"
|
measureme = "0.4"
|
||||||
|
|
|
@ -304,7 +304,7 @@ impl DropArena {
|
||||||
// Move the content to the arena by copying it and then forgetting
|
// Move the content to the arena by copying it and then forgetting
|
||||||
// the content of the SmallVec
|
// the content of the SmallVec
|
||||||
vec.as_ptr().copy_to_nonoverlapping(start_ptr, len);
|
vec.as_ptr().copy_to_nonoverlapping(start_ptr, len);
|
||||||
mem::forget(vec.drain());
|
mem::forget(vec.drain(..));
|
||||||
|
|
||||||
// Record the destructors after doing the allocation as that may panic
|
// Record the destructors after doing the allocation as that may panic
|
||||||
// and would cause `object`'s destuctor to run twice if it was recorded before
|
// and would cause `object`'s destuctor to run twice if it was recorded before
|
||||||
|
|
|
@ -76,19 +76,19 @@ impl<'tcx> DefIdForest {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for id in ret.root_ids.drain() {
|
for id in ret.root_ids.drain(..) {
|
||||||
if next_forest.contains(tcx, id) {
|
if next_forest.contains(tcx, id) {
|
||||||
next_ret.push(id);
|
next_ret.push(id);
|
||||||
} else {
|
} else {
|
||||||
old_ret.push(id);
|
old_ret.push(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret.root_ids.extend(old_ret.drain());
|
ret.root_ids.extend(old_ret.drain(..));
|
||||||
|
|
||||||
next_ret.extend(next_forest.root_ids.into_iter().filter(|&id| ret.contains(tcx, id)));
|
next_ret.extend(next_forest.root_ids.into_iter().filter(|&id| ret.contains(tcx, id)));
|
||||||
|
|
||||||
mem::swap(&mut next_ret, &mut ret.root_ids);
|
mem::swap(&mut next_ret, &mut ret.root_ids);
|
||||||
next_ret.drain();
|
next_ret.drain(..);
|
||||||
}
|
}
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ impl<'tcx> DefIdForest {
|
||||||
let mut ret = DefIdForest::empty();
|
let mut ret = DefIdForest::empty();
|
||||||
let mut next_ret = SmallVec::new();
|
let mut next_ret = SmallVec::new();
|
||||||
for next_forest in iter {
|
for next_forest in iter {
|
||||||
next_ret.extend(ret.root_ids.drain().filter(|&id| !next_forest.contains(tcx, id)));
|
next_ret.extend(ret.root_ids.drain(..).filter(|&id| !next_forest.contains(tcx, id)));
|
||||||
|
|
||||||
for id in next_forest.root_ids {
|
for id in next_forest.root_ids {
|
||||||
if !next_ret.contains(&id) {
|
if !next_ret.contains(&id) {
|
||||||
|
@ -110,7 +110,7 @@ impl<'tcx> DefIdForest {
|
||||||
}
|
}
|
||||||
|
|
||||||
mem::swap(&mut next_ret, &mut ret.root_ids);
|
mem::swap(&mut next_ret, &mut ret.root_ids);
|
||||||
next_ret.drain();
|
next_ret.drain(..);
|
||||||
}
|
}
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,4 @@ path = "lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bitflags = "1.2.1"
|
bitflags = "1.2.1"
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
|
|
|
@ -23,7 +23,7 @@ stable_deref_trait = "1.0.0"
|
||||||
rayon = { version = "0.3.0", package = "rustc-rayon" }
|
rayon = { version = "0.3.0", package = "rustc-rayon" }
|
||||||
rayon-core = { version = "0.3.0", package = "rustc-rayon-core" }
|
rayon-core = { version = "0.3.0", package = "rustc-rayon-core" }
|
||||||
rustc-hash = "1.0.1"
|
rustc-hash = "1.0.1"
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
rustc_index = { path = "../librustc_index", package = "rustc_index" }
|
rustc_index = { path = "../librustc_index", package = "rustc_index" }
|
||||||
|
|
||||||
[dependencies.parking_lot]
|
[dependencies.parking_lot]
|
||||||
|
|
|
@ -11,4 +11,4 @@ doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rustc_serialize = { path = "../libserialize", package = "serialize" }
|
rustc_serialize = { path = "../libserialize", package = "serialize" }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
|
|
|
@ -12,7 +12,7 @@ doctest = false
|
||||||
[dependencies]
|
[dependencies]
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
rayon = { version = "0.3.0", package = "rustc-rayon" }
|
rayon = { version = "0.3.0", package = "rustc-rayon" }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
syntax = { path = "../libsyntax" }
|
syntax = { path = "../libsyntax" }
|
||||||
syntax_ext = { path = "../libsyntax_ext" }
|
syntax_ext = { path = "../libsyntax_ext" }
|
||||||
syntax_expand = { path = "../libsyntax_expand" }
|
syntax_expand = { path = "../libsyntax_expand" }
|
||||||
|
|
|
@ -13,7 +13,7 @@ doctest = false
|
||||||
flate2 = "1.0"
|
flate2 = "1.0"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
memmap = "0.6"
|
memmap = "0.6"
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
rustc = { path = "../librustc" }
|
rustc = { path = "../librustc" }
|
||||||
rustc_data_structures = { path = "../librustc_data_structures" }
|
rustc_data_structures = { path = "../librustc_data_structures" }
|
||||||
errors = { path = "../librustc_errors", package = "rustc_errors" }
|
errors = { path = "../librustc_errors", package = "rustc_errors" }
|
||||||
|
|
|
@ -26,4 +26,4 @@ rustc_serialize = { path = "../libserialize", package = "serialize" }
|
||||||
syntax = { path = "../libsyntax" }
|
syntax = { path = "../libsyntax" }
|
||||||
syntax_pos = { path = "../libsyntax_pos" }
|
syntax_pos = { path = "../libsyntax_pos" }
|
||||||
rustc_apfloat = { path = "../librustc_apfloat" }
|
rustc_apfloat = { path = "../librustc_apfloat" }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
|
|
|
@ -21,4 +21,4 @@ errors = { path = "../librustc_errors", package = "rustc_errors" }
|
||||||
syntax_pos = { path = "../libsyntax_pos" }
|
syntax_pos = { path = "../libsyntax_pos" }
|
||||||
rustc_data_structures = { path = "../librustc_data_structures" }
|
rustc_data_structures = { path = "../librustc_data_structures" }
|
||||||
rustc_metadata = { path = "../librustc_metadata" }
|
rustc_metadata = { path = "../librustc_metadata" }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
|
|
|
@ -16,4 +16,4 @@ rustc_target = { path = "../librustc_target" }
|
||||||
syntax = { path = "../libsyntax" }
|
syntax = { path = "../libsyntax" }
|
||||||
syntax_pos = { path = "../libsyntax_pos" }
|
syntax_pos = { path = "../libsyntax_pos" }
|
||||||
chalk-engine = { version = "0.9.0", default-features=false }
|
chalk-engine = { version = "0.9.0", default-features=false }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
|
|
|
@ -17,7 +17,7 @@ rustc = { path = "../librustc" }
|
||||||
rustc_data_structures = { path = "../librustc_data_structures" }
|
rustc_data_structures = { path = "../librustc_data_structures" }
|
||||||
errors = { path = "../librustc_errors", package = "rustc_errors" }
|
errors = { path = "../librustc_errors", package = "rustc_errors" }
|
||||||
rustc_target = { path = "../librustc_target" }
|
rustc_target = { path = "../librustc_target" }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
syntax = { path = "../libsyntax" }
|
syntax = { path = "../libsyntax" }
|
||||||
syntax_pos = { path = "../libsyntax_pos" }
|
syntax_pos = { path = "../libsyntax_pos" }
|
||||||
rustc_index = { path = "../librustc_index" }
|
rustc_index = { path = "../librustc_index" }
|
||||||
|
|
|
@ -10,4 +10,4 @@ path = "lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
indexmap = "1"
|
indexmap = "1"
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
|
|
|
@ -21,4 +21,4 @@ rustc_data_structures = { path = "../librustc_data_structures" }
|
||||||
rustc_index = { path = "../librustc_index" }
|
rustc_index = { path = "../librustc_index" }
|
||||||
rustc_lexer = { path = "../librustc_lexer" }
|
rustc_lexer = { path = "../librustc_lexer" }
|
||||||
rustc_target = { path = "../librustc_target" }
|
rustc_target = { path = "../librustc_target" }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
|
|
|
@ -243,7 +243,7 @@ impl TokenStream {
|
||||||
|
|
||||||
// Get the first stream. If it's `None`, create an empty
|
// Get the first stream. If it's `None`, create an empty
|
||||||
// stream.
|
// stream.
|
||||||
let mut iter = streams.drain();
|
let mut iter = streams.drain(..);
|
||||||
let mut first_stream_lrc = iter.next().unwrap().0;
|
let mut first_stream_lrc = iter.next().unwrap().0;
|
||||||
|
|
||||||
// Append the elements to the first stream, after reserving
|
// Append the elements to the first stream, after reserving
|
||||||
|
|
|
@ -22,5 +22,5 @@ rustc_data_structures = { path = "../librustc_data_structures" }
|
||||||
rustc_index = { path = "../librustc_index" }
|
rustc_index = { path = "../librustc_index" }
|
||||||
rustc_lexer = { path = "../librustc_lexer" }
|
rustc_lexer = { path = "../librustc_lexer" }
|
||||||
rustc_target = { path = "../librustc_target" }
|
rustc_target = { path = "../librustc_target" }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
syntax = { path = "../libsyntax" }
|
syntax = { path = "../libsyntax" }
|
||||||
|
|
|
@ -15,7 +15,7 @@ fmt_macros = { path = "../libfmt_macros" }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
rustc_data_structures = { path = "../librustc_data_structures" }
|
rustc_data_structures = { path = "../librustc_data_structures" }
|
||||||
rustc_target = { path = "../librustc_target" }
|
rustc_target = { path = "../librustc_target" }
|
||||||
smallvec = { version = "0.6.7", features = ["union", "may_dangle"] }
|
smallvec = { version = "1.0", features = ["union", "may_dangle"] }
|
||||||
syntax = { path = "../libsyntax" }
|
syntax = { path = "../libsyntax" }
|
||||||
syntax_expand = { path = "../libsyntax_expand" }
|
syntax_expand = { path = "../libsyntax_expand" }
|
||||||
syntax_pos = { path = "../libsyntax_pos" }
|
syntax_pos = { path = "../libsyntax_pos" }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue