Merge pull request #56 from RalfJung/const_fn

the const_fn compiler feature is a NOP
This commit is contained in:
Gilad Naaman 2021-05-04 21:39:09 -07:00 committed by GitHub
commit 9ab0fcd406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,5 +71,3 @@ 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)]
```
If you intend to use `offset_of!` inside a `const fn`, also add the `const_fn` compiler feature.