Auto merge of #29274 - thepowersgang:issues-29107-const-unsafe-fn-order, r=nikomatsakis
This PR switches the implemented ordering from `unsafe const fn` (as was in the original RFC) to `const unsafe fn` (which is what the lang team decided on)
This commit is contained in:
commit
04475b92f9
6 changed files with 21 additions and 16 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#![feature(const_fn)]
|
||||
|
||||
unsafe const fn dummy(v: u32) -> u32 {
|
||||
const unsafe fn dummy(v: u32) -> u32 {
|
||||
!v
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@
|
|||
|
||||
#![feature(const_fn)]
|
||||
|
||||
unsafe const fn dummy(v: u32) -> u32 {
|
||||
const unsafe fn dummy(v: u32) -> u32 {
|
||||
!v
|
||||
}
|
||||
|
||||
struct Type;
|
||||
impl Type {
|
||||
unsafe const fn new() -> Type {
|
||||
const unsafe fn new() -> Type {
|
||||
Type
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue