File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 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> {
5353}
5454
5555impl < 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()` .
5858 ///
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.
6761 pub const NEW : Self = Self :: new ( ) ;
6862
6963 /// Creates the biggest possible `RawVec` (on the system heap)
You can’t perform that action at this time.
0 commit comments