Skip to content

vector cleanup and turning ast::spanned into a struct - #4380

Closed
erickt wants to merge 10 commits into
rust-lang:incomingfrom
erickt:incoming
Closed

vector cleanup and turning ast::spanned into a struct#4380
erickt wants to merge 10 commits into
rust-lang:incomingfrom
erickt:incoming

Conversation

@erickt

Copy link
Copy Markdown
Contributor

Just some code I have queued up in my repository I'd like to upstream. I'm converting all the #[auto_encode]ed code to use structs, so this is the first step. Plus it includes some vector cleanup and a function to partition vectors.

@graydon

Copy link
Copy Markdown
Contributor

r+, what's the performance impact of the inlining?

@erickterickt closed this Jan 14, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 14, 2020
…1995
Improvements for `type_repetition_in_bounds` lint
Some improvements for `type_repetition_in_bounds`:
- add a configurable threshold to trigger the lint (rust-lang#4380). The lint won't trigger anymore if there are more bounds (strictly) than `conf.max_trait_bounds` on this type.
- take generic args into account over bounded type (rust-lang#4323)
- don't lint for predicates generated in macros (rust-lang#4326)
Fixesrust-lang#4380,
Fixesrust-lang#4323,
Fixesrust-lang#4326,
Closesrust-lang#3764
changelog: Fix multiple FPs in `type_repetition_in_bounds` and add a configuration option
Note: the rust-lang#3764 has already been fixed but not closed
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Jun 9, 2025
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Jun 10, 2025
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
6198: Skip macro matcher fragment name semantic highlighting r=matklad a=Veykril
Implements a small state-machine for macro_rules! highlighting to separate out the matcher part of its rules. This skips semantically highlighting names of metavariables in the matcher and expander. This might even allow for more fun macro highlighting things in the future.
Fixesrust-lang#4380.
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Sign up for freeto 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.

2 participants

@erickt@graydon