Uh oh!
There was an error while loading. Please reload this page.
Introduce lowering_arena to avoid creating AST nodes on the fly - #101499
Conversation
cjgillot
left a comment
There was a problem hiding this comment.
Just one nit. r=me afterwards.
There was a problem hiding this comment.
Could you use rustc_arena::declare_arena?
There was a problem hiding this comment.
I meant using the macro rustc_arena::declare_arena.
There was a problem hiding this comment.
I've tried to use declare_arena but that imposes a 'tcx lifetime which any of the fields have. At that point I've tried _marker: PhantomData<&'tcx ()> but then I got a bunch of lifetime errors and I ended thinking that using the macro may be more complicated than writing this manually.
Let me know if you still want to persue this or this is ready to be merged in the way it is.
Uh oh!
There was an error while loading. Please reload this page.
e3bfef0 to
2df3743Compareoli-obk
commented
Sep 7, 2022
r? @cjgillot |
spastorino
commented
Sep 7, 2022
@bors r=cjgillot |
bors
commented
Sep 7, 2022
📌 Commit 2df3743a2a4b3bcbdfeb98d4aca2d543e10e6881 has been approved by It is now in the queue for this repository. |
bors
commented
Sep 7, 2022
🌲 The tree is currently closed for pull requests below priority 1000. This pull request will be tested once the tree is reopened. |
spastorino
commented
Sep 7, 2022
@bors rollup |
spastorino
commented
Sep 7, 2022
2df3743 to
ea09747Comparespastorino
commented
Sep 7, 2022
I think this should be merged as is, commented on the problem with |
cjgillot
commented
Sep 8, 2022
@bors r+ rollup |
bors
commented
Sep 8, 2022
📌 Commit ea097476baa4eacb13715439565e34dac73a4c01 has been approved by It is now in the queue for this repository. |
ea09747 to
6a97b08Compare@cjgillot ended doing it with the macro, needed Edit: sorry that I didn't see you have already r+ed. Let me know which version do you prefer and I can |
6a97b08 to
d9a1faaComparespastorino
commented
Sep 8, 2022
bors
commented
Sep 8, 2022
…mpiler-errors Rollup of 7 pull requests Successful merges: - rust-lang#101423 (Fix hermit warnings) - rust-lang#101499 (Introduce lowering_arena to avoid creating AST nodes on the fly) - rust-lang#101530 (llvm-wrapper: adapt for LLVM API changes) - rust-lang#101554 (rustdoc: remove unused CSS `#implementations-list > h3 > span.in-band`) - rust-lang#101580 (rustdoc: remove unused CSS `div.impl-items > div`) - rust-lang#101584 (rustdoc: remove no-op CSS `#settings-menu { padding: 0 }`) - rust-lang#101587 (Make `Debug` impl for `Term` useful) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Revert "Introduce lowering_arena to avoid creating AST nodes on the fly" This reverts commit d9a1faa (rust-lang#101499). This was originally part of rust-lang#101345 which has now been closed as a different approach is taken now. r? `@oli-obk` cc `@spastorino`
@oli-obk requested this and other changes as a way of simplifying #101345. This is just going to make the diff of #101345 smaller.
r? @oli-obk@cjgillot