mirror of
https://gitee.com/openharmony/third_party_rust_memoffset
synced 2024-11-23 07:10:22 +00:00
Merge pull request #63 from yvt/fix-nightly
Fix `unstable_const` for the latest compiler
This commit is contained in:
commit
fd81a21866
@ -61,5 +61,5 @@ features = ["unstable_const"]
|
||||
|
||||
Your crate root: (`lib.rs`/`main.rs`)
|
||||
```rust,ignore
|
||||
#![feature(const_ptr_offset_from, const_maybe_uninit_as_ptr, const_raw_ptr_deref, const_refs_to_cell)]
|
||||
#![feature(const_ptr_offset_from, const_refs_to_cell)]
|
||||
```
|
||||
|
@ -58,12 +58,7 @@
|
||||
#![no_std]
|
||||
#![cfg_attr(
|
||||
feature = "unstable_const",
|
||||
feature(
|
||||
const_ptr_offset_from,
|
||||
const_maybe_uninit_as_ptr,
|
||||
const_raw_ptr_deref,
|
||||
const_refs_to_cell,
|
||||
)
|
||||
feature(const_ptr_offset_from, const_refs_to_cell)
|
||||
)]
|
||||
|
||||
#[macro_use]
|
||||
|
Loading…
Reference in New Issue
Block a user