Refactor ty_vec - represent &[T] as &([T])#13636
Merged
bors merged 1 commit intorust-lang:masterfrom Apr 20, 2014
Merged
Conversation
Refactores all uses of ty_vec and associated things to remove the vstore abstraction (still used for strings, for now). Pointers to vectors are stored as ty_rptr or ty_uniq wrapped around a ty_vec. There are no user-facing changes. Existing behaviour is preserved by special-casing many instances of pointers containing vectors. Hopefully with DST most of these hacks will go away. For now it is useful to leave them hanging around rather than abstracting them into a method or something. Closes rust-lang#13554.
bors
added a commit
that referenced
this pull request
Apr 20, 2014
Refactors all uses of ty_vec and associated things to remove the vstore abstraction (still used for strings, for now). Pointers to vectors are stored as ty_rptr or ty_uniq wrapped around a ty_vec. There are no user-facing changes. Existing behaviour is preserved by special-casing many instances of pointers containing vectors. Hopefully with DST most of these hacks will go away. For now it is useful to leave them hanging around rather than abstracting them into a method or something. Closes #13554.
Member
Author
|
I hope that once DST is finished some of the cases where we match on sty and special case say |
Member
ty_vec(mt, Option<uint>),Ouch, I should have reviewed this, it reverted the mutability change (and who knows what else) :(. |
Member
Author
|
@eddyb probably good for you to cast your eye over this still. Reverting the mutabilty change was deliberate since vstore no longer exists (for vecs, still there for strs for now), I couldn't keep mutability there. |
Member
|
But the mutability is in the |
flip1995
pushed a commit
to flip1995/rust
that referenced
this pull request
Nov 7, 2024
…ile, r=dswij Extend `large_include_file` lint to also work on attributes I realized randomly while working on another lint that `large_include_file` was not emitted on attributes. This PR fixes that. changelog: Extend `large_include_file` lint to also work on attributes
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.
Refactors all uses of ty_vec and associated things to remove the vstore abstraction (still used for strings, for now). Pointers to vectors are stored as ty_rptr or ty_uniq wrapped around a ty_vec. There are no user-facing changes. Existing behaviour is preserved by special-casing many instances of pointers containing vectors. Hopefully with DST most of these hacks will go away. For now it is useful to leave them hanging around rather than abstracting them into a method or something.
Closes #13554.