Skip to content

Commit

Permalink
Merge pull request #56 from RalfJung/const_fn
Browse files Browse the repository at this point in the history
the const_fn compiler feature is a NOP
  • Loading branch information
Gilnaa authored May 5, 2021
2 parents cc587fa + 96c7cad commit 9ab0fcd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 9ab0fcd

Please sign in to comment.