Repository navigation
Fix docs of alloc fn: Allocator API stabilized - #165889
Conversation
|
Thanks for the pull request, and welcome! The Rust Project has assigned @Mark-Simulacrum (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks. Please see the contribution instructions and our LLM policy for more information. Why was this reviewer chosen?The reviewer was selected based on:
|
|
Question for libs: do we still wanna deprecate @rustbot label: +I-libs-nominated |
|
Per the libs meeting today, we'd rather just strike that - deprecation is a pretty high bar. We can say in the docs that one should prefer |
|
I dunno if "pretty high" but higher, at least, than wherever the motive for deprecating this was. |
|
The author invited us to simply push edits, so I'm gonna take them up on that. |
|
@bors r+ rollup |
…Simulacrum Fix docs of alloc fn: Allocator API stabilized The documentation of the [std::alloc::alloc()](https://doc.rust-lang.org/stable/std/alloc/fn.alloc.html) function still references the "future stabilization" of the Allocator trait and the Global type, which was just stabilized in 1.000.0: > This function is expected to be deprecated in favor of the allocate method of the [Global](https://doc.rust-lang.org/stable/std/alloc/struct.Global.html) type when it and the [Allocator](https://doc.rust-lang.org/stable/std/alloc/trait.Allocator.html) trait become stable. This PR removes the part referencing stabilization or deprecation, instead simply suggesting the preferred alternative.
Rollup of 15 pull requests Successful merges: - #166266 (miri subtree update) - #165720 (windows: remove redundant prefix parsing in `PathBuf::_push`) - #164878 (Don't require `extern "llvm-intrinsic"` return structs to be `#[repr(packed)]`) - #165008 (Support `NonNull` pointers as `asm!` input operands) - #165892 (`rustc_builtin_macros` cleanup, part 10) - #164485 (Stabilize unchecked `nonzero_ops`) - #165618 (Implement RangeIntersect on core::range types) - #165833 (Deallocate with the right provenance on Windows) - #165834 (Implement tidy alphabetical --bless on Windows) - #165889 (Fix docs of alloc fn: Allocator API stabilized) - #165923 (Don't load/store a LLVM aggregate type when returning an array from a generic SIMD intrinsic) - #166012 (Added more queries to AdtDef in rustc_public to check for rust language types) - #166216 (Stop using #![no_core] in profiler_builtins) - #166259 (fmt: Improve `Debug` for `FormattingOptions`) - #166263 (Show slice split results for empty and singleton slices)
…Simulacrum Fix docs of alloc fn: Allocator API stabilized The documentation of the [std::alloc::alloc()](https://doc.rust-lang.org/stable/std/alloc/fn.alloc.html) function still references the "future stabilization" of the Allocator trait and the Global type, which was just stabilized in 1.000.0: > This function is expected to be deprecated in favor of the allocate method of the [Global](https://doc.rust-lang.org/stable/std/alloc/struct.Global.html) type when it and the [Allocator](https://doc.rust-lang.org/stable/std/alloc/trait.Allocator.html) trait become stable. This PR removes the part referencing stabilization or deprecation, instead simply suggesting the preferred alternative.
…Simulacrum Fix docs of alloc fn: Allocator API stabilized The documentation of the [std::alloc::alloc()](https://doc.rust-lang.org/stable/std/alloc/fn.alloc.html) function still references the "future stabilization" of the Allocator trait and the Global type, which was just stabilized in 1.000.0: > This function is expected to be deprecated in favor of the allocate method of the [Global](https://doc.rust-lang.org/stable/std/alloc/struct.Global.html) type when it and the [Allocator](https://doc.rust-lang.org/stable/std/alloc/trait.Allocator.html) trait become stable. This PR removes the part referencing stabilization or deprecation, instead simply suggesting the preferred alternative.
…uwer Rollup of 19 pull requests Successful merges: - #166266 (miri subtree update) - #164878 (Don't require `extern "llvm-intrinsic"` return structs to be `#[repr(packed)]`) - #165008 (Support `NonNull` pointers as `asm!` input operands) - #165892 (`rustc_builtin_macros` cleanup, part 10) - #165930 (Add red-green mark when dumping dep graph. Show DefIds if available) - #166280 (std: also mark doctests with skip_unsupported_miri_tests) - #166295 (use `cfg!(overflow_checks)` in `overflow_checks` intrinsic instead of `cfg!(debug_assertions)`) - #164485 (Stabilize unchecked `nonzero_ops`) - #165618 (Implement RangeIntersect on core::range types) - #165782 (Make unsafe unknown diagnostic attributes an error again) - #165833 (Deallocate with the right provenance on Windows) - #165834 (Implement tidy alphabetical --bless on Windows) - #165889 (Fix docs of alloc fn: Allocator API stabilized) - #165923 (Don't load/store a LLVM aggregate type when returning an array from a generic SIMD intrinsic) - #166012 (Added more queries to AdtDef in rustc_public to check for rust language types) - #166186 (OpenOptions::append: clarify docs) - #166216 (Stop using #![no_core] in profiler_builtins) - #166259 (fmt: Improve `Debug` for `FormattingOptions`) - #166263 (Show slice split results for empty and singleton slices)
…uwer Rollup of 18 pull requests Successful merges: - #164878 (Don't require `extern "llvm-intrinsic"` return structs to be `#[repr(packed)]`) - #165008 (Support `NonNull` pointers as `asm!` input operands) - #165892 (`rustc_builtin_macros` cleanup, part 10) - #165930 (Add red-green mark when dumping dep graph. Show DefIds if available) - #166280 (std: also mark doctests with skip_unsupported_miri_tests) - #166295 (use `cfg!(overflow_checks)` in `overflow_checks` intrinsic instead of `cfg!(debug_assertions)`) - #164485 (Stabilize unchecked `nonzero_ops`) - #165618 (Implement RangeIntersect on core::range types) - #165782 (Make unsafe unknown diagnostic attributes an error again) - #165833 (Deallocate with the right provenance on Windows) - #165834 (Implement tidy alphabetical --bless on Windows) - #165889 (Fix docs of alloc fn: Allocator API stabilized) - #165923 (Don't load/store a LLVM aggregate type when returning an array from a generic SIMD intrinsic) - #166012 (Added more queries to AdtDef in rustc_public to check for rust language types) - #166186 (OpenOptions::append: clarify docs) - #166216 (Stop using #![no_core] in profiler_builtins) - #166259 (fmt: Improve `Debug` for `FormattingOptions`) - #166263 (Show slice split results for empty and singleton slices)
…uwer Rollup of 18 pull requests Successful merges: - #164878 (Don't require `extern "llvm-intrinsic"` return structs to be `#[repr(packed)]`) - #165008 (Support `NonNull` pointers as `asm!` input operands) - #165892 (`rustc_builtin_macros` cleanup, part 10) - #165930 (Add red-green mark when dumping dep graph. Show DefIds if available) - #166280 (std: also mark doctests with skip_unsupported_miri_tests) - #166295 (use `cfg!(overflow_checks)` in `overflow_checks` intrinsic instead of `cfg!(debug_assertions)`) - #164485 (Stabilize unchecked `nonzero_ops`) - #165618 (Implement RangeIntersect on core::range types) - #165782 (Make unsafe unknown diagnostic attributes an error again) - #165833 (Deallocate with the right provenance on Windows) - #165834 (Implement tidy alphabetical --bless on Windows) - #165889 (Fix docs of alloc fn: Allocator API stabilized) - #165923 (Don't load/store a LLVM aggregate type when returning an array from a generic SIMD intrinsic) - #166012 (Added more queries to AdtDef in rustc_public to check for rust language types) - #166186 (OpenOptions::append: clarify docs) - #166216 (Stop using #![no_core] in profiler_builtins) - #166259 (fmt: Improve `Debug` for `FormattingOptions`) - #166263 (Show slice split results for empty and singleton slices)
Rollup merge of #165889 - BioTomateDE:outdated-docs, r=Mark-Simulacrum Fix docs of alloc fn: Allocator API stabilized The documentation of the [std::alloc::alloc()](https://doc.rust-lang.org/stable/std/alloc/fn.alloc.html) function still references the "future stabilization" of the Allocator trait and the Global type, which was just stabilized in 1.000.0: > This function is expected to be deprecated in favor of the allocate method of the [Global](https://doc.rust-lang.org/stable/std/alloc/struct.Global.html) type when it and the [Allocator](https://doc.rust-lang.org/stable/std/alloc/trait.Allocator.html) trait become stable. This PR removes the part referencing stabilization or deprecation, instead simply suggesting the preferred alternative.
The documentation of the std::alloc::alloc() function still references the "future stabilization" of the Allocator trait and the Global type, which was just stabilized in 1.000.0:
This PR removes the part referencing stabilization or deprecation, instead simply suggesting the preferred alternative.