File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -53,17 +53,11 @@ pub struct RawVec<T, A: Allocator = Global> {
53
53
}
54
54
55
55
impl < T > RawVec < T , Global > {
56
- /// HACK(Centril): This exists because `#[unstable]` `const fn`s needn't conform
57
- /// to `min_const_fn` and so they cannot be called in `min_const_fn`s either .
56
+ /// HACK(Centril): This exists because stable `const fn` can only call stable `const fn`, so
57
+ /// they cannot call `Self::new()` .
58
58
///
59
- /// If you change `RawVec<T>::new` or dependencies, please take care to not
60
- /// introduce anything that would truly violate `min_const_fn`.
61
- ///
62
- /// NOTE: We could avoid this hack and check conformance with some
63
- /// `#[rustc_force_min_const_fn]` attribute which requires conformance
64
- /// with `min_const_fn` but does not necessarily allow calling it in
65
- /// `stable(...) const fn` / user code not enabling `foo` when
66
- /// `#[rustc_const_unstable(feature = "foo", issue = "01234")]` is present.
59
+ /// If you change `RawVec<T>::new` or dependencies, please take care to not introduce anything
60
+ /// that would truly const-call something unstable.
67
61
pub const NEW : Self = Self :: new ( ) ;
68
62
69
63
/// Creates the biggest possible `RawVec` (on the system heap)
You can’t perform that action at this time.
0 commit comments