diff options
Diffstat (limited to 'src/tools/cargo/tests/testsuite/mock-std/library/alloc')
-rw-r--r-- | src/tools/cargo/tests/testsuite/mock-std/library/alloc/Cargo.toml | 8 | ||||
-rw-r--r-- | src/tools/cargo/tests/testsuite/mock-std/library/alloc/src/lib.rs | 11 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/tools/cargo/tests/testsuite/mock-std/library/alloc/Cargo.toml b/src/tools/cargo/tests/testsuite/mock-std/library/alloc/Cargo.toml new file mode 100644 index 000000000..dc965abff --- /dev/null +++ b/src/tools/cargo/tests/testsuite/mock-std/library/alloc/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "alloc" +version = "0.1.0" +authors = ["Alex Crichton <alex@alexcrichton.com>"] +edition = "2018" + +[dependencies] +registry-dep-using-core = { version = "*", features = ['mockbuild'] } diff --git a/src/tools/cargo/tests/testsuite/mock-std/library/alloc/src/lib.rs b/src/tools/cargo/tests/testsuite/mock-std/library/alloc/src/lib.rs new file mode 100644 index 000000000..823716e40 --- /dev/null +++ b/src/tools/cargo/tests/testsuite/mock-std/library/alloc/src/lib.rs @@ -0,0 +1,11 @@ +#![feature(staged_api)] +#![stable(since = "1.0.0", feature = "dummy")] + +extern crate alloc; + +#[stable(since = "1.0.0", feature = "dummy")] +pub use alloc::*; + +#[stable(since = "1.0.0", feature = "dummy")] +pub fn custom_api() { +} |