-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Custom allocator support in rustc_serialize
#99920
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @oli-obk (or someone else) soon. Please see the contribution instructions for more information. |
Please rebase over the latest master branch and squash the commits |
e97f121
to
e571d52
Compare
rustdoc-json-types is a public (although nightly-only) API. If possible, consider changing cc @CraftSpider, @aDotInTheVoid, @Enselic Changes rustc_apfloat. rustc_apfloat is currently in limbo and you almost certainly don't want to change it (see #55993). cc @eddyb Some changes occurred in library/proc_macro/src/bridge cc @rust-lang/wg-rls-2 Some changes occurred in src/tools/cargo cc @ehuss Some changes occurred in src/librustdoc/clean/types.rs cc @camelid Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in compiler/rustc_codegen_gcc cc @antoyo
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki This PR changes MIR cc @oli-obk, @RalfJung, @JakobDegen, @davidtwco, @celinval, @vakaras The Miri submodule was changed cc @rust-lang/miri Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @Folyd, @jsha Some changes occurred in compiler/rustc_codegen_cranelift cc @bjorn3
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred in HTML/CSS themes. A change occurred in the Ayu theme. cc @Cldfire
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt |
Uh, I don't think this was rebased corectly. |
Yeah my mistake, fixed now 😰 |
Much better! |
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing trailing newline
This comment has been minimized.
This comment has been minimized.
This doesn't even reflect the current plan any more I think? With the approach I proposed, I don't think we need this PR. |
That's true. But should we keep it anyway, in case someone else wants to serialize a |
yea, this change seems good on its own. I removed the rationale comment from the main post so it doesn't end up in git history. @bors r+ rollup |
📌 Commit d5c90d23a5acd36753ddef0c28437b756551701a has been approved by It is now in the queue for this repository. |
Probably you want to rebase/squash again, bc if you click on first commit, it shows weird things: e571d52 |
@bors r- |
…that use a custom allocator
5d7ad36
to
258d367
Compare
@bors r+ |
…r=oli-obk Custom allocator support in `rustc_serialize` Adding support for `rustc_serialize` encode/decode for `Box` and `Vec` that use a custom allocator.
Rollup of 8 pull requests Successful merges: - rust-lang#99064 (distinguish the method and associated function diagnostic information) - rust-lang#99920 (Custom allocator support in `rustc_serialize`) - rust-lang#100034 ( Elaborate all box dereferences in `ElaborateBoxDerefs`) - rust-lang#100076 (make slice::{split_at,split_at_unchecked} const functions) - rust-lang#100604 (Remove unstable Result::into_ok_or_err) - rust-lang#100933 (Reduce code size of `assert_matches_failed`) - rust-lang#100978 (Handle `Err` in `ast::LitKind::to_token_lit`.) - rust-lang#101010 (rustdoc: remove unused CSS for `.multi-column`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Adding support for
rustc_serialize
encode/decode forBox
andVec
that use a custom allocator.