Skip to content

Conversation

@nikomatsakis
Copy link
Contributor

Implement the Foo() paren sugar more uniformly as envisioned by the RFC.

r? @pcwalton

Fixes #17703 (among other things).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We ought to investigate the cost of interning ty_tup(Vec::new()).
Actually, one idea I had (interning everything referenced by Ty in the arena) would result in ty_tup(&'tcx [Ty<'tcx>]) which allows a statically declared ty_nil as ty_tup(&[]).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eddyb see also #18614

@nikomatsakis
Copy link
Contributor Author

Closing in favor of #18630, which includes these commits.

lnicola pushed a commit to lnicola/rust that referenced this pull request Dec 11, 2024
fix: Fix parsing of dyn T in generic arg on 2015 edition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unboxed closure sugar not working in trait objects

4 participants