Change the const stab default for internal const fns
This commit is contained in:
parent
395a789def
commit
83b8a561a1
|
@ -108,10 +108,13 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Internal functions need not conform to min const fn unless used inside stable
|
// Internal functions are forced to conform to min const fn.
|
||||||
// const fns. Annotate the internal function with a const stability attribute if
|
// Annotate the internal function with a const stability attribute if
|
||||||
// you need this.
|
// you need to use unstable features.
|
||||||
false
|
// Note: this is an arbitrary choice that does not affect stability or const
|
||||||
|
// safety or anything, it just changes whether we need to annotate some
|
||||||
|
// internal functions with `rustc_const_stable` or with `rustc_const_unstable`
|
||||||
|
true
|
||||||
},
|
},
|
||||||
// Everything else needs to conform, because it would be callable from
|
// Everything else needs to conform, because it would be callable from
|
||||||
// other `min_const_fn` functions.
|
// other `min_const_fn` functions.
|
||||||
|
|
Loading…
Reference in New Issue