Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions text/0911-const-fn.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ invariants to be maintained (e.g. `std::ptr::Unique` requires a non-null pointer
struct OptionalInt(u32);
impl OptionalInt {
/// Value must be non-zero
unsafe const fn new(val: u32) -> OptionalInt {
const unsafe fn new(val: u32) -> OptionalInt {
OptionalInt(val)
}
}
Expand Down Expand Up @@ -241,4 +241,4 @@ cannot be taken for granted, at least `if`/`else` should eventually work.

Since it was accepted, the RFC has been updated as follows:

1. Allowed `unsafe const fn`
1. Allowed `const unsafe fn`