-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
delegation: Implement list delegation #123413
Conversation
886182d
to
90f27e3
Compare
Wait, this conflicts with #122500, which one should I review first? |
@fmease |
This comment was marked as resolved.
This comment was marked as resolved.
90f27e3
to
64743bc
Compare
Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt |
Based on the experience of implementing glob delegation in #124135, I changed the implementation here from using |
This comment has been minimized.
This comment has been minimized.
bf178ca
to
c60d449
Compare
@fmease |
c60d449
to
6dbe452
Compare
This comment was marked as resolved.
This comment was marked as resolved.
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.
Sorry for the long delay 😞
r=me after rebase & with suggestions & questions addressed.
} | ||
if let Some(suffixes) = suffixes { | ||
self.word("::"); | ||
self.word("{"); |
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.
(minor, not blocking) could maybe use one of ibox
, cbox
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.
I'll leave this for some later time.
```rust reuse prefix::{a, b, c} ```
@rustbot ready |
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.
Thanks!
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (3cb0030): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results (secondary 2.1%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 678.182s -> 679.399s (0.18%) |
Using design described in rust-lang/rfcs#3530 (comment) (the lists are desugared at macro expansion time).
List delegations are expanded eagerly when encountered, similarly to
#[cfg]
s, and not enqueued for later resolution/expansion like regular macros or glob delegation (#124135).Part of #118212.