-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arenas cleanup #90990
Arenas cleanup #90990
Conversation
Because it's always `'tcx`. In fact, some of them use a mixture of passed-in `$tcx` and hard-coded `'tcx`, so no other lifetime would even work. This makes the code easier to read.
r? @oli-obk (rust-highfive has picked a reviewer for you, use r? to override) |
@bors rollup=always Because this is a combination of comment changes and trivial code changes. |
@bors r+ |
📌 Commit e73784d has been approved by |
Arenas cleanup I was looking closely at the arenas code and here are some small improvement to readability.
Failed in rollup: #91016 (comment)
|
Also use `Default::default()` in one `TypedArena::default()`, for consistency with `DroplessArena::default()`.
e73784d
to
0a89598
Compare
Huh, I didn't see this with Also, curious that the leading Anyway, I've updated: @bors r=oli-obk |
📌 Commit 0a89598 has been approved by |
The warning is generated by rustdoc so you could see it via
The scheme somehow has been stripped when copy/pasting 🤔, it's not a fault of the warning. |
Arenas cleanup I was looking closely at the arenas code and here are some small improvement to readability.
Rollup of 8 pull requests Successful merges: - rust-lang#89258 (Make char conversion functions unstably const) - rust-lang#90578 (add const generics test) - rust-lang#90633 (Refactor single variant `Candidate` enum into a struct) - rust-lang#90800 (bootstap: create .cargo/config only if not present) - rust-lang#90942 (windows: Return the "Not Found" error when a path is empty) - rust-lang#90947 (Move some tests to more reasonable directories - 9.5) - rust-lang#90961 (Suggest removal of arguments for unit variant, not replacement) - rust-lang#90990 (Arenas cleanup) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…oli-obk More arena cleanups A sequel to rust-lang#90990. r? `@oli-obk`
I was looking closely at the arenas code and here are some small improvement to readability.