Implement FixedSizeEncoding for UnusedGenericParams.#109324
Merged
bors merged 1 commit intorust-lang:masterfrom Mar 19, 2023
Merged
Implement FixedSizeEncoding for UnusedGenericParams.#109324bors merged 1 commit intorust-lang:masterfrom
bors merged 1 commit intorust-lang:masterfrom
Conversation
Collaborator
|
r? @oli-obk (rustbot has picked a reviewer for you, use r? to override) |
Member
|
@bors r+ |
Collaborator
| .get(cdata, def_id.index) | ||
| .map_or_else(|| ty::UnusedGenericParams::new_all_used(), |lazy| lazy.decode((cdata, tcx))) | ||
| } | ||
| unused_generic_params => { cdata.root.tables.unused_generic_params.get(cdata, def_id.index) } |
Contributor
There was a problem hiding this comment.
Suggested change
| unused_generic_params => { cdata.root.tables.unused_generic_params.get(cdata, def_id.index) } | |
| unused_generic_params => { table_direct } |
I think?
Member
There was a problem hiding this comment.
This would require impl ProcessQueryValue for UnusedGenericParams, which is 7 lines of trouble more than it's worth imo: master...Nilstrieb:tabled
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Mar 19, 2023
Rollup of 10 pull requests Successful merges: - rust-lang#104100 (Allow using `Range` as an `Iterator` in const contexts. ) - rust-lang#105793 (Add note for mismatched types because of circular dependencies) - rust-lang#108798 (move default backtrace setting to sys) - rust-lang#108829 (Use Edition 2021 :pat in matches macro) - rust-lang#108973 (Beautify pin! docs) - rust-lang#109003 (Add `useless_anonymous_reexport` lint) - rust-lang#109022 (read_buf_exact: on error, all read bytes are appended to the buffer) - rust-lang#109212 (fix: don't suggest similar method when unstable) - rust-lang#109243 (The name of NativeLib will be presented) - rust-lang#109324 (Implement FixedSizeEncoding for UnusedGenericParams.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using a
Lazyfor actually au32value is 50% overhead, so let's encode the bitset directly.