Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 8ca1f50

Browse files
committed
Require nightly compiler
1 parent 0b5b714 commit 8ca1f50

File tree

11 files changed

+161
-299
lines changed

11 files changed

+161
-299
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,21 @@ jobs:
1313
- windows-latest
1414
- macOS-latest
1515
rust:
16-
- stable
17-
- beta
1816
- nightly
1917
cargo_flags:
2018
- ""
2119
- "--no-default-features"
22-
- "--features nightly"
23-
- "--features nightly --no-default-features"
24-
exclude:
25-
- rust: stable
26-
cargo_flags: "--features nightly"
27-
- rust: stable
28-
cargo_flags: "--features nightly --no-default-features"
29-
- rust: beta
30-
cargo_flags: "--features nightly"
31-
- rust: beta
32-
cargo_flags: "--features nightly --no-default-features"
3320
steps:
3421
- name: Install Rust
35-
uses: hecrj/setup-rust-action@master
36-
with:
37-
rust-version: ${{ matrix.rust }}
22+
run: |
23+
rustup set profile minimal
24+
rustup default nightly
3825
3926
- name: Checkout source code
4027
uses: actions/checkout@master
4128

4229
- name: Build
43-
run: cargo build --all ${{ matrix.cargo_flags }} ${{ matrix.additional_flags }}
30+
run: cargo build --all ${{ matrix.cargo_flags }}
4431

4532
- name: Test
46-
run: cargo test --all ${{ matrix.cargo_flags }} ${{ matrix.additional_flags }}
33+
run: cargo test --all ${{ matrix.cargo_flags }}

Cargo.toml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,3 @@ maintenance = { status = "actively-developed" }
1717
[features]
1818
std = []
1919
default = ["std"]
20-
dropck_eyepatch = []
21-
coerce_unsized = []
22-
const_generics = []
23-
core_intrinsics = []
24-
dispatch_from_dyn = []
25-
exact_size_is_empty = []
26-
fn_traits = []
27-
never_type = []
28-
boxed_slice_try_from = ["const_generics"]
29-
receiver_trait = []
30-
nightly = [
31-
"dropck_eyepatch",
32-
"coerce_unsized",
33-
"const_generics",
34-
"core_intrinsics",
35-
"dispatch_from_dyn",
36-
"exact_size_is_empty",
37-
"fn_traits",
38-
"never_type",
39-
"boxed_slice_try_from",
40-
"receiver_trait",
41-
]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Alloc-WG
1212
An attempt to collect several proposals of [rust-lang/wg-allocators](https://github.com/rust-lang/wg-allocators) into a
1313
MVP.
1414

15-
**This crate is WIP** and is designed to replace the alloc crate. However, this is not completely possible as crate, as some
15+
**This crate is WIP**, requires a nightly compiler, and is designed to replace the alloc crate. However, this is not completely possible as crate, as some
1616
compiler features are not possible for crates.
1717

1818
Changes regarding the current `Alloc` trait

src/alloc/abort.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl<A: DeallocRef> DeallocRef for AbortAlloc<A> {
3333
}
3434

3535
impl<A: AllocRef> AllocRef for AbortAlloc<A> {
36-
type Error = crate::Never;
36+
type Error = !;
3737

3838
fn alloc(&mut self, layout: NonZeroLayout) -> Result<NonNull<u8>, Self::Error> {
3939
self.0

0 commit comments

Comments
 (0)