rust-osdev / cargo-xbuild

Automatically cross-compiles the sysroot crates core, compiler_builtins, and alloc.
Apache License 2.0
260 stars 25 forks source link

Cargo xbuild fails to compile alloc on 1.33.0-nightly #29

Closed porglezomp closed 5 years ago

porglezomp commented 5 years ago

I tried to use cargo-xbuild today, and am finding that it can't do the minimum case. If I create a new binary (just cargo new one) and then cargo xbuild for my native target, it fails while trying to compile alloc.

Version:

$ rustc --version
rustc 1.33.0-nightly (ceb251214 2019-01-16)
$ cargo --version
cargo 1.33.0-nightly (2b4a5f1f0 2019-01-12)
Massive error log… ``` $ cargo xbuild Updating crates.io index Compiling compiler_builtins v0.1.5 Compiling core v0.0.0 (/Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore) Compiling rustc-std-workspace-core v1.0.0 (/Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/tools/rustc-std-workspace-core) Compiling alloc v0.0.0 (/var/folders/6f/l9rcfr1d2s55xy9vd6rtnvv00000gn/T/xargo.5t16SLxIxhfA) error[E0432]: unresolved import `sync` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/task.rs:14:9 | 14 | use sync::Arc; | ^^^^ did you mean `crate::sync`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `str` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/boxed.rs:78:5 | 78 | use str::from_boxed_utf8_unchecked; | ^^^ did you mean `crate::str`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `alloc` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/node.rs:39:5 | 39 | use alloc::{Global, Alloc, Layout}; | ^^^^^ did you mean `crate::alloc`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/node.rs:40:5 | 40 | use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `borrow` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/prelude.rs:15:57 | 15 | #[unstable(feature = "alloc", issue = "27783")] pub use borrow::ToOwned; | ^^^^^^ did you mean `crate::borrow`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/prelude.rs:16:57 | 16 | #[unstable(feature = "alloc", issue = "27783")] pub use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `slice` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/prelude.rs:17:57 | 17 | #[unstable(feature = "alloc", issue = "27783")] pub use slice::SliceConcatExt; | ^^^^^ did you mean `crate::slice`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `string` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/prelude.rs:18:57 | 18 | #[unstable(feature = "alloc", issue = "27783")] pub use string::{String, ToString}; | ^^^^^^ did you mean `crate::string`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/prelude.rs:19:57 | 19 | #[unstable(feature = "alloc", issue = "27783")] pub use vec::Vec; | ^^^ did you mean `crate::vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `string` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/fmt.rs:530:5 | 530 | use string; | ^^^^^^ no `string` external crate error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/slice.rs:140:9 | 140 | use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/slice.rs:145:9 | 145 | use vec::Vec; | ^^^ did you mean `crate::vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `borrow` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/str.rs:40:5 | 40 | use borrow::{Borrow, ToOwned}; | ^^^^^^ did you mean `crate::borrow`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/str.rs:41:5 | 41 | use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `slice` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/str.rs:42:5 | 42 | use slice::{SliceConcatExt, SliceIndex}; | ^^^^^ did you mean `crate::slice`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `string` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/str.rs:43:5 | 43 | use string::String; | ^^^^^^ did you mean `crate::string`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/str.rs:44:5 | 44 | use vec::Vec; | ^^^ did you mean `crate::vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `str` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/string.rs:62:5 | 62 | use str::{self, from_boxed_utf8_unchecked, FromStr, Utf8Error, Chars}; | ^^^ did you mean `crate::str`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `borrow` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/search.rs:3:5 | 3 | use borrow::Borrow; | ^^^^^^ did you mean `crate::borrow`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `slice` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:154:5 | 154 | use slice; | ^^^^^ no `slice` external crate error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:155:11 | 155 | use vec::{self, Vec}; | ^^^^ no `vec` external crate error[E0432]: unresolved import `borrow` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/map.rs:11:5 | 11 | use borrow::Borrow; | ^^^^^^ did you mean `crate::borrow`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `borrow` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/set.rs:11:5 | 11 | use borrow::Borrow; | ^^^^^^ did you mean `crate::borrow`? | = note: `use` statements changed in Rust 2018; read more at error[E0433]: failed to resolve: use of undeclared type or module `collections` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/set.rs:12:5 | 12 | use collections::btree_map::{self, BTreeMap, Keys}; | ^^^^^^^^^^^ use of undeclared type or module `collections` error[E0432]: unresolved import `collections` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/set.rs:12:5 | 12 | use collections::btree_map::{self, BTreeMap, Keys}; | ^^^^^^^^^^^ did you mean `crate::collections`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/linked_list.rs:23:5 | 23 | use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `collections` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/vec_deque.rs:23:5 | 23 | use collections::CollectionAllocErr; | ^^^^^^^^^^^ did you mean `crate::collections`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `raw_vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/vec_deque.rs:24:5 | 24 | use raw_vec::RawVec; | ^^^^^^^ did you mean `crate::raw_vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/vec_deque.rs:25:5 | 25 | use vec::Vec; | ^^^ did you mean `crate::vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `alloc` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/mod.rs:44:5 | 44 | use alloc::{AllocErr, LayoutErr}; | ^^^^^ did you mean `crate::alloc`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `alloc` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/sync.rs:26:5 | 26 | use alloc::{Global, Alloc, Layout, box_free, handle_alloc_error}; | ^^^^^ did you mean `crate::alloc`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/sync.rs:27:5 | 27 | use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `rc` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/sync.rs:28:5 | 28 | use rc::is_dangling; | ^^ did you mean `crate::rc`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `string` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/sync.rs:29:5 | 29 | use string::String; | ^^^^^^ did you mean `crate::string`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/sync.rs:30:5 | 30 | use vec::Vec; | ^^^ did you mean `crate::vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/rc.rs:232:5 | 232 | use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `alloc` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/rc.rs:253:5 | 253 | use alloc::{Global, Alloc, Layout, box_free, handle_alloc_error}; | ^^^^^ did you mean `crate::alloc`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `string` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/rc.rs:254:5 | 254 | use string::String; | ^^^^^^ did you mean `crate::string`? | = note: `use` statements changed in Rust 2018; read more at error[E0433]: failed to resolve: use of undeclared type or module `collections` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:12:5 | 12 | use collections::CollectionAllocErr::*; | ^^^^^^^^^^^ use of undeclared type or module `collections` error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/rc.rs:255:5 | 255 | use vec::Vec; | ^^^ did you mean `crate::vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `fmt` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/borrow.rs:9:5 | 9 | use fmt; | ^^^ no `fmt` external crate error[E0432]: unresolved import `string` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/borrow.rs:10:5 | 10 | use string::String; | ^^^^^^ did you mean `crate::string`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `borrow` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/slice.rs:96:5 | 96 | use borrow::{Borrow, BorrowMut, ToOwned}; | ^^^^^^ did you mean `crate::borrow`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/slice.rs:97:5 | 97 | use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/slice.rs:98:5 | 98 | use vec::Vec; | ^^^ did you mean `crate::vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `collections` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/string.rs:59:5 | 59 | use collections::CollectionAllocErr; | ^^^^^^^^^^^ did you mean `crate::collections`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `borrow` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/string.rs:60:5 | 60 | use borrow::{Cow, ToOwned}; | ^^^^^^ did you mean `crate::borrow`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/string.rs:61:5 | 61 | use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/string.rs:63:5 | 63 | use vec::Vec; | ^^^ did you mean `crate::vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `collections` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/vec.rs:73:5 | 73 | use collections::CollectionAllocErr; | ^^^^^^^^^^^ did you mean `crate::collections`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `borrow` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/vec.rs:74:5 | 74 | use borrow::ToOwned; | ^^^^^^ did you mean `crate::borrow`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `borrow` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/vec.rs:75:5 | 75 | use borrow::Cow; | ^^^^^^ did you mean `crate::borrow`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `boxed` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/vec.rs:76:5 | 76 | use boxed::Box; | ^^^^^ did you mean `crate::boxed`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `raw_vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/vec.rs:77:5 | 77 | use raw_vec::RawVec; | ^^^^^^^ did you mean `crate::raw_vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/boxed.rs:76:5 | 76 | use vec::Vec; | ^^^ did you mean `crate::vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0432]: unresolved import `raw_vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/boxed.rs:77:5 | 77 | use raw_vec::RawVec; | ^^^^^^^ did you mean `crate::raw_vec`? | = note: `use` statements changed in Rust 2018; read more at error[E0433]: failed to resolve: use of undeclared type or module `Vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:332:28 | 332 | BinaryHeap { data: Vec::with_capacity(capacity) } | ^^^ use of undeclared type or module `Vec` error[E0433]: failed to resolve: use of undeclared type or module `BTreeMap` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/set.rs:218:25 | 218 | BTreeSet { map: BTreeMap::new() } | ^^^^^^^^ use of undeclared type or module `BTreeMap` error[E0433]: failed to resolve: use of undeclared type or module `Layout` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:92:30 | 92 | let layout = Layout::from_size_align(alloc_size, align).unwrap(); | ^^^^^^ use of undeclared type or module `Layout` error[E0433]: failed to resolve: use of undeclared type or module `Layout` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:232:22 | 232 | Some(Layout::from_size_align_unchecked(size, align)) | ^^^^^^ use of undeclared type or module `Layout` error[E0433]: failed to resolve: use of undeclared type or module `Layout` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:316:29 | 316 | Layout::from_size_align_unchecked(new_size, cur.align()) | ^^^^^^ use of undeclared type or module `Layout` error[E0433]: failed to resolve: use of undeclared type or module `Layout` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:326:54 | 326 | Err(_) => handle_alloc_error(Layout::array::(new_cap).unwrap()), | ^^^^^^ use of undeclared type or module `Layout` error[E0433]: failed to resolve: use of undeclared type or module `Layout` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:540:30 | 540 | let new_layout = Layout::new::().repeat(new_cap).unwrap().0; | ^^^^^^ use of undeclared type or module `Layout` error[E0433]: failed to resolve: use of undeclared type or module `Layout` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:604:34 | 604 | let old_layout = Layout::from_size_align_unchecked(old_size, align); | ^^^^^^ use of undeclared type or module `Layout` error[E0433]: failed to resolve: use of undeclared type or module `Layout` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:610:25 | 610 | Layout::from_size_align_unchecked(new_size, align) | ^^^^^^ use of undeclared type or module `Layout` error[E0433]: failed to resolve: use of undeclared type or module `Layout` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:660:30 | 660 | let new_layout = Layout::array::(new_cap).map_err(|_| CapacityOverflow)?; | ^^^^^^ use of undeclared type or module `Layout` error[E0433]: failed to resolve: use of undeclared type or module `Box` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:698:32 | 698 | let output: Box<[T]> = Box::from_raw(slice); | ^^^ use of undeclared type or module `Box` error[E0412]: cannot find type `Vec` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:212:11 | 212 | data: Vec, | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 148 | use crate::vec::Vec; | error[E0412]: cannot find type `Vec` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:594:30 | 594 | pub fn into_vec(self) -> Vec { | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 148 | use crate::vec::Vec; | error[E0412]: cannot find type `Vec` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:616:41 | 616 | pub fn into_sorted_vec(mut self) -> Vec { | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 148 | use crate::vec::Vec; | error[E0412]: cannot find type `Vec` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:1086:19 | 1086 | impl From> for BinaryHeap { | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 148 | use crate::vec::Vec; | error[E0412]: cannot find type `Vec` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:1087:18 | 1087 | fn from(vec: Vec) -> BinaryHeap { | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 148 | use crate::vec::Vec; | error[E0412]: cannot find type `Vec` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:1095:33 | 1095 | impl From> for Vec { | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 148 | use crate::vec::Vec; | error[E0412]: cannot find type `Vec` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:1096:37 | 1096 | fn from(heap: BinaryHeap) -> Vec { | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 148 | use crate::vec::Vec; | error[E0412]: cannot find type `Vec` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:1104:53 | 1104 | BinaryHeap::from(iter.into_iter().collect::>()) | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 148 | use crate::vec::Vec; | error[E0412]: cannot find type `BTreeMap` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/set.rs:63:10 | 63 | map: BTreeMap, | ^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::btree::map::BTreeMap; | error[E0412]: cannot find type `Keys` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/set.rs:75:11 | 75 | iter: Keys<'a, T, ()>, | ^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::btree::map::Keys; | error[E0405]: cannot find trait `Alloc` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:43:25 | 43 | pub struct RawVec { | ^^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | 4 | use core::alloc::Alloc; | 4 | use core::alloc::Alloc; | error[E0412]: cannot find type `Global` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:43:33 | 43 | pub struct RawVec { | ^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::Global; | error[E0405]: cannot find trait `Alloc` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:49:12 | 49 | impl RawVec { | ^^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | 4 | use core::alloc::Alloc; | 4 | use core::alloc::Alloc; | error[E0425]: cannot find function `handle_alloc_error` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:100:31 | 100 | Err(_) => handle_alloc_error(layout), | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::handle_alloc_error; | error[E0412]: cannot find type `Global` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:113:19 | 113 | impl RawVec { | ^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::Global; | error[E0425]: cannot find value `Global` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:120:22 | 120 | Self::new_in(Global) | ^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::Global; | error[E0425]: cannot find value `Global` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:140:41 | 140 | RawVec::allocate_in(cap, false, Global) | ^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::Global; | error[E0425]: cannot find value `Global` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:146:40 | 146 | RawVec::allocate_in(cap, true, Global) | ^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::Global; | error[E0405]: cannot find trait `Alloc` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:150:12 | 150 | impl RawVec { | ^^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | 4 | use core::alloc::Alloc; | 4 | use core::alloc::Alloc; | error[E0412]: cannot find type `Global` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:167:19 | 167 | impl RawVec { | ^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::Global; | error[E0425]: cannot find value `Global` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:179:16 | 179 | a: Global, | ^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::Global; | error[E0412]: cannot find type `Box` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:184:32 | 184 | pub fn from_box(mut slice: Box<[T]>) -> Self { | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::boxed::Box; | error[E0405]: cannot find trait `Alloc` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:193:12 | 193 | impl RawVec { | ^^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | 4 | use core::alloc::Alloc; | 4 | use core::alloc::Alloc; | error[E0412]: cannot find type `Layout` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:223:40 | 223 | fn current_layout(&self) -> Option { | ^^^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | 4 | use core::alloc::Layout; | 4 | use core::alloc::Layout; | error[E0425]: cannot find function `handle_alloc_error` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:315:35 | 315 | Err(_) => handle_alloc_error( | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::handle_alloc_error; | error[E0425]: cannot find function `handle_alloc_error` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:326:35 | 326 | Err(_) => handle_alloc_error(Layout::array::(new_cap).unwrap()), | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::handle_alloc_error; | error[E0412]: cannot find type `CollectionAllocErr` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:386:26 | 386 | -> Result<(), CollectionAllocErr> { | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::CollectionAllocErr; | error[E0412]: cannot find type `CollectionAllocErr` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:423:26 | 423 | -> Result { | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::CollectionAllocErr; | error[E0425]: cannot find value `CapacityOverflow` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:426:73 | 426 | let required_cap = used_cap.checked_add(needed_extra_cap).ok_or(CapacityOverflow)?; | ^^^^^^^^^^^^^^^^ help: a function with a similar name exists | 426 | let required_cap = used_cap.checked_add(needed_extra_cap).ok_or(capacity_overflow)?; | ^^^^^^^^^^^^^^^^^ help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::CollectionAllocErr::CapacityOverflow; | error[E0412]: cannot find type `CollectionAllocErr` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:435:23 | 435 | -> Result<(), CollectionAllocErr> { | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::CollectionAllocErr; | error[E0425]: cannot find function `handle_alloc_error` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:609:31 | 609 | Err(_) => handle_alloc_error( | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::handle_alloc_error; | error[E0405]: cannot find trait `Alloc` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:633:12 | 633 | impl RawVec { | ^^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | 4 | use core::alloc::Alloc; | 4 | use core::alloc::Alloc; | error[E0412]: cannot find type `CollectionAllocErr` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:640:21 | 640 | ) -> Result<(), CollectionAllocErr> { | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::CollectionAllocErr; | error[E0425]: cannot find value `CapacityOverflow` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:657:71 | 657 | Exact => used_cap.checked_add(needed_extra_cap).ok_or(CapacityOverflow)?, | ^^^^^^^^^^^^^^^^ help: a function with a similar name exists | 657 | Exact => used_cap.checked_add(needed_extra_cap).ok_or(capacity_overflow)?, | ^^^^^^^^^^^^^^^^^ help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::CollectionAllocErr::CapacityOverflow; | error[E0425]: cannot find value `CapacityOverflow` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:660:70 | 660 | let new_layout = Layout::array::(new_cap).map_err(|_| CapacityOverflow)?; | ^^^^^^^^^^^^^^^^ help: a function with a similar name exists | 660 | let new_layout = Layout::array::(new_cap).map_err(|_| capacity_overflow)?; | ^^^^^^^^^^^^^^^^^ help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::CollectionAllocErr::CapacityOverflow; | error[E0425]: cannot find function `handle_alloc_error` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:673:48 | 673 | (Err(AllocErr), Infallible) => handle_alloc_error(new_layout), | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::handle_alloc_error; | error[E0412]: cannot find type `Global` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:686:19 | 686 | impl RawVec { | ^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::alloc::Global; | error[E0412]: cannot find type `Box` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:695:37 | 695 | pub unsafe fn into_box(self) -> Box<[T]> { | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::boxed::Box; | error[E0412]: cannot find type `Box` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:698:21 | 698 | let output: Box<[T]> = Box::from_raw(slice); | ^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::boxed::Box; | error[E0405]: cannot find trait `Alloc` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:704:12 | 704 | impl RawVec { | ^^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | 4 | use core::alloc::Alloc; | 4 | use core::alloc::Alloc; | error[E0405]: cannot find trait `Alloc` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:716:33 | 716 | unsafe impl<#[may_dangle] T, A: Alloc> Drop for RawVec { | ^^^^^ not found in this scope help: possible candidates are found in other modules, you can import them into scope | 4 | use core::alloc::Alloc; | 4 | use core::alloc::Alloc; | error[E0412]: cannot find type `CollectionAllocErr` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:735:49 | 735 | fn alloc_guard(alloc_size: usize) -> Result<(), CollectionAllocErr> { | ^^^^^^^^^^^^^^^^^^ not found in this scope help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::CollectionAllocErr; | error[E0425]: cannot find value `CapacityOverflow` in this scope --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:737:13 | 737 | Err(CapacityOverflow) | ^^^^^^^^^^^^^^^^ help: a function with a similar name exists | 737 | Err(capacity_overflow) | ^^^^^^^^^^^^^^^^^ help: possible candidate is found in another module, you can import it into scope | 4 | use crate::collections::CollectionAllocErr::CapacityOverflow; | error[E0659]: `vec` is ambiguous (`macro_rules` vs non-`macro_rules` from other module) --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:313:28 | 313 | BinaryHeap { data: vec![] } | ^^^ ambiguous name | note: `vec` could refer to the macro defined here --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/macros.rs:38:1 | 38 | / macro_rules! vec { 39 | | ($elem:expr; $n:expr) => ( 40 | | $crate::vec::from_elem($elem, $n) 41 | | ); ... | 45 | | ($($x:expr,)*) => (vec![$($x),*]) 46 | | } | |_^ note: `vec` could also refer to the unresolved item imported here --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:155:11 | 155 | use vec::{self, Vec}; | ^^^^ = help: use `self::vec` to refer to this unresolved item unambiguously warning: unused import: `Vec` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/binary_heap.rs:155:17 | 155 | use vec::{self, Vec}; | ^^^ | = note: #[warn(unused_imports)] on by default warning: unused import: `Alloc` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/node.rs:39:21 | 39 | use alloc::{Global, Alloc, Layout}; | ^^^^^ warning: unused imports: `BTreeMap`, `Keys` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/collections/btree/set.rs:12:36 | 12 | use collections::btree_map::{self, BTreeMap, Keys}; | ^^^^^^^^ ^^^^ warning: unused import: `Alloc` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/sync.rs:26:21 | 26 | use alloc::{Global, Alloc, Layout, box_free, handle_alloc_error}; | ^^^^^ warning: unused import: `Alloc` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/rc.rs:253:21 | 253 | use alloc::{Global, Alloc, Layout, box_free, handle_alloc_error}; | ^^^^^ warning: unused imports: `Alloc`, `Global`, `Layout`, `handle_alloc_error` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:10:13 | 10 | use alloc::{Alloc, Layout, Global, handle_alloc_error}; | ^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^^^^^^^^^^^^ warning: unused import: `collections::CollectionAllocErr` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:11:5 | 11 | use collections::CollectionAllocErr; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `collections::CollectionAllocErr::*` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:12:5 | 12 | use collections::CollectionAllocErr::*; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ warning: unused import: `boxed::Box` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:13:5 | 13 | use boxed::Box; | ^^^^^^^^^^ warning: unused import: `alloc::AllocErr` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/raw_vec.rs:642:17 | 642 | use alloc::AllocErr; | ^^^^^^^^^^^^^^^ warning: unused import: `ToOwned` --> /Users/c/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc/string.rs:60:19 | 60 | use borrow::{Cow, ToOwned}; | ^^^^^^^ error: aborting due to 111 previous errors Some errors occurred: E0405, E0412, E0425, E0432, E0433, E0659. For more information about an error, try `rustc --explain E0405`. error: Could not compile `alloc`. To learn more, run the command again with --verbose. error: `"cargo" "rustc" "-p" "alloc" "--release" "--manifest-path" "/var/folders/6f/l9rcfr1d2s55xy9vd6rtnvv00000gn/T/xargo.5t16SLxIxhfA/Cargo.toml" "--target" "x86_64-apple-darwin" "--" "-Z" "force-unstable-if-unmarked"` failed with exit code: Some(101) note: run with `RUST_BACKTRACE=1` for a backtrace ```
phil-opp commented 5 years ago

Try updating your rust nighty.

Cargo-xbuild assumes that the alloc crate uses the 2018 edition, which was a relatively recent change to rust. If you're using an older nightly cargo-xbuild tries to build the old 2015 version of liballoc with edition=2018, which causes the errors.

porglezomp commented 5 years ago

Oh sorry, I meant to include the version information but forgot. I already have the latest nightly that rustup will give me at the moment (due to clippy and rls):

$ cargo --version
cargo 1.33.0-nightly (2b4a5f1f0 2019-01-12)
phil-opp commented 5 years ago

Ah, I think by default rustup tries to install the latest nightly, which currently fails for you since it doesn't have the rls/clippy components. See https://mexus.github.io/rustup-components-history/x86_64-unknown-linux-gnu.html for an overview over which components are included in which nightly. The 2019-02-08 nightly seems to include rls and clippy. Try:

rustup toolchain install nightly-2019-02-08

and try using it via rustup override or rustup default

phil-opp commented 5 years ago

Alternatively you can downgrade to cargo-xbuild 0.5.4, which should support your nightly:

cargo install cargo-xbuild --version 0.5.4 --force
porglezomp commented 5 years ago

Ok, that resolves the issue, thank you very much! Could you add a note about the nightly 1.34 requirement to the README?

phil-opp commented 5 years ago

Done in https://github.com/rust-osdev/cargo-xbuild/commit/55dcd366e651125bf29bca3cfd61156cf27a6447.