Repository navigation
Add example of implementing Allocator to its docs - #165287
Conversation
|
|
|
|
Fixed. |
c8d975a to
7034526
Compare
…e, r=tgross35 Add example of implementing Allocator to its docs Part of [rust-lang#163232](rust-lang#163232) Adds an example In Allocator trait showing a custom allocator with live counts, forwards it to `System` and is used with `Box::new_in()`. r? @tgross35
Rollup of 15 pull requests Successful merges: - #165271 (Re-enable most of `test-aarch64-apple-macos-26-2`) - #165331 (miri subtree update) - #165211 (Streamline function_item_references lint) - #165273 (Add some docs for our allocator `unstable_feature_bound`s) - #165279 (explicitly test the win32 symbol byte count suffix) - #162688 (Fix invalid suggestions and misleading notes for imports) - #165198 (expand the docs of `Complex<T>`) - #165231 (Remove redundant parameter from `AttributeParser::parse_attribute_list()` & `AttributeParser::parse_single_args()`) - #165248 (add {Receiver,Sender,SyncSender}::{is_empty,len}) - #165284 (Ensure the display impl of uXX is small with optimize_for_size) - #165287 (Add example of implementing Allocator to its docs) - #165297 (Cleanup `rustdoc-html` tests) - #165298 (Improve diagnostics for notable-trait color arguments) - #165336 (Refactor `analyze_attr` to use a match) - #165338 (`rust-analyzer` subtree update)
Rollup of 15 pull requests Successful merges: - #165271 (Re-enable most of `test-aarch64-apple-macos-26-2`) - #165331 (miri subtree update) - #165211 (Streamline function_item_references lint) - #165273 (Add some docs for our allocator `unstable_feature_bound`s) - #165279 (explicitly test the win32 symbol byte count suffix) - #162688 (Fix invalid suggestions and misleading notes for imports) - #165198 (expand the docs of `Complex<T>`) - #165231 (Remove redundant parameter from `AttributeParser::parse_attribute_list()` & `AttributeParser::parse_single_args()`) - #165248 (add {Receiver,Sender,SyncSender}::{is_empty,len}) - #165284 (Ensure the display impl of uXX is small with optimize_for_size) - #165287 (Add example of implementing Allocator to its docs) - #165297 (Cleanup `rustdoc-html` tests) - #165298 (Improve diagnostics for notable-trait color arguments) - #165336 (Refactor `analyze_attr` to use a match) - #165338 (`rust-analyzer` subtree update)
…uwer Rollup of 14 pull requests Successful merges: - #165271 (Re-enable most of `test-aarch64-apple-macos-26-2`) - #165211 (Streamline function_item_references lint) - #165273 (Add some docs for our allocator `unstable_feature_bound`s) - #165279 (explicitly test the win32 symbol byte count suffix) - #162688 (Fix invalid suggestions and misleading notes for imports) - #165198 (expand the docs of `Complex<T>`) - #165231 (Remove redundant parameter from `AttributeParser::parse_attribute_list()` & `AttributeParser::parse_single_args()`) - #165248 (add {Receiver,Sender,SyncSender}::{is_empty,len}) - #165284 (Ensure the display impl of uXX is small with optimize_for_size) - #165287 (Add example of implementing Allocator to its docs) - #165297 (Cleanup `rustdoc-html` tests) - #165298 (Improve diagnostics for notable-trait color arguments) - #165336 (Refactor `analyze_attr` to use a match) - #165338 (`rust-analyzer` subtree update)
Rollup merge of #165287 - whiplashvin:allocator-trait-example, r=tgross35 Add example of implementing Allocator to its docs Part of [#163232](#163232) Adds an example In Allocator trait showing a custom allocator with live counts, forwards it to `System` and is used with `Box::new_in()`. r? @tgross35
Part of #163232
Adds an example In Allocator trait showing a custom allocator with live counts, forwards it to
Systemand is used withBox::new_in().r? @tgross35