-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rollup of 6 pull requests #127706
Rollup of 6 pull requests #127706
Commits on Apr 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6bd68fc - Browse repository at this point
Copy the full SHA 6bd68fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for f238eba - Browse repository at this point
Copy the full SHA f238ebaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 853311c - Browse repository at this point
Copy the full SHA 853311cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0692090 - Browse repository at this point
Copy the full SHA 0692090View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0f867e - Browse repository at this point
Copy the full SHA f0f867eView commit details
Commits on Jun 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2d5a483 - Browse repository at this point
Copy the full SHA 2d5a483View commit details
Commits on Jul 6, 2024
-
use "bootstrap" instead of "rustbuild" in comments and docs
Signed-off-by: onur-ozkan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4819270 - Browse repository at this point
Copy the full SHA 4819270View commit details
Commits on Jul 8, 2024
-
Clear
inner_attr_ranges
regularly.There's a comment saying we don't do it for performance reasons, but it doesn't actually affect performance. The commit also tweaks the control flow, to make clearer that two code paths are mutually exclusive.
Configuration menu - View commit details
-
Copy full SHA for 99721c8 - Browse repository at this point
Copy the full SHA 99721c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a47ae57 - Browse repository at this point
Copy the full SHA a47ae57View commit details -
Use iterator normally in
make_attr_token_stream
.In a `for` loop, instead of a `while` loop.
Configuration menu - View commit details
-
Copy full SHA for b162013 - Browse repository at this point
Copy the full SHA b162013View commit details -
Split the stack in
make_attr_token_stream
.It makes for shorter code, and fewer allocations.
Configuration menu - View commit details
-
Copy full SHA for a88c4d6 - Browse repository at this point
Copy the full SHA a88c4d6View commit details
Commits on Jul 9, 2024
-
It's only needed for the `FlatToken::Token` variant. This makes things a little more concise.
Configuration menu - View commit details
-
Copy full SHA for f552794 - Browse repository at this point
Copy the full SHA f552794View commit details
Commits on Jul 10, 2024
-
Change empty replace range condition.
The new condition is equivalent in practice, but it's much more obvious that it would result in an empty range, because the condition lines up with the contents of the iterator.
Configuration menu - View commit details
-
Copy full SHA for 8a390ba - Browse repository at this point
Copy the full SHA 8a390baView commit details -
Returning `Vec<TokenTree>` works better for the call sites than returning `TokenStream`.
Configuration menu - View commit details
-
Copy full SHA for fee1525 - Browse repository at this point
Copy the full SHA fee1525View commit details -
In various functions where the attribute being processed is known to be a `#[cfg_attr(...)]` attribute. I find this a helpful reminder.
Configuration menu - View commit details
-
Copy full SHA for d8b6aa6 - Browse repository at this point
Copy the full SHA d8b6aa6View commit details -
Factor out
AttrsTarget
flattening code.This commit does the following. - Pulls the code out of `AttrTokenStream::to_token_trees` into a new function `attrs_and_tokens_to_token_trees`. - Simplifies `TokenStream::from_ast` by calling the new function. This is nicer than the old way, which created a temporary `AttrTokenStream` containing a single `AttrsTarget` (which required some cloning) just to call `to_token_trees` on it. (It is good to remove this use of `AttrsTarget` which isn't related to `cfg_attr` expansion.)
Configuration menu - View commit details
-
Copy full SHA for d6ebbbf - Browse repository at this point
Copy the full SHA d6ebbbfView commit details -
Explaining things that took me some time to work out.
Configuration menu - View commit details
-
Copy full SHA for 478ba59 - Browse repository at this point
Copy the full SHA 478ba59View commit details
Commits on Jul 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7fc6943 - Browse repository at this point
Copy the full SHA 7fc6943View commit details
Commits on Jul 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4d35754 - Browse repository at this point
Copy the full SHA 4d35754View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17419f6 - Browse repository at this point
Copy the full SHA 17419f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42ee400 - Browse repository at this point
Copy the full SHA 42ee400View commit details
Commits on Jul 14, 2024
-
Rollup merge of rust-lang#122300 - CastilloDel:master, r=cjgillot
Add FileCheck annotations to mir-opt/dest-prop tests Part of rust-lang#116971, adds FileCheck annotations to MIR-opt tests in tests/mir-opt/dest-prop. I would like some feedback. Also, I don't know how to approach `union.rs`. I couldn't figure out what it is testing. r? cjgillot
Configuration menu - View commit details
-
Copy full SHA for 4c493db - Browse repository at this point
Copy the full SHA 4c493dbView commit details -
Rollup merge of rust-lang#127434 - onur-ozkan:use-bootstrap-instead-o…
…f-rustbuild, r=Mark-Simulacrum use "bootstrap" instead of "rustbuild" in comments and docs Let's stick with the single name "bootstrap" to refer to the bootstrap project to avoid confusion. This should make it clearer, especially for new contributors.
Configuration menu - View commit details
-
Copy full SHA for 1d59d22 - Browse repository at this point
Copy the full SHA 1d59d22View commit details -
Rollup merge of rust-lang#127477 - nnethercote:tweak-inner_attr_range…
…s, r=petrochenkov Clear `inner_attr_ranges` regularly. There's a comment saying we don't do it for performance reasons, but it doesn't actually affect performance. The commit also tweaks the control flow, to make clearer that two code paths are mutually exclusive. r? ````@petrochenkov````
Configuration menu - View commit details
-
Copy full SHA for 1c8ea14 - Browse repository at this point
Copy the full SHA 1c8ea14View commit details -
Rollup merge of rust-lang#127558 - nnethercote:more-Attribute-cleanup…
…s, r=petrochenkov More attribute cleanups A follow-up to rust-lang#127308. r? ```@petrochenkov```
Configuration menu - View commit details
-
Copy full SHA for 125343e - Browse repository at this point
Copy the full SHA 125343eView commit details -
Rollup merge of rust-lang#127659 - saethlin:manually-drop-bufwriter, …
…r=joboet Use ManuallyDrop in BufWriter::into_parts The fact that `mem::forget` takes by value means that it interacts very poorly with Stacked Borrows; generally users think of calling it as a no-op, but in Stacked Borrows, the field retagging tends to cause surprise tag invalidation.
Configuration menu - View commit details
-
Copy full SHA for 2d8493b - Browse repository at this point
Copy the full SHA 2d8493bView commit details -
Rollup merge of rust-lang#127671 - notriddle:notriddle/issue-d, r=Mar…
…k-Simulacrum rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 8) Follow up * rust-lang#116214 * rust-lang#116432 * rust-lang#116824 * rust-lang#118105 * rust-lang#119561 * rust-lang#123574 * rust-lang#125382 As always, it's easier to review the commits one at a time. Don't use the Files Changed tab. It's confusing.
Configuration menu - View commit details
-
Copy full SHA for 6a3566c - Browse repository at this point
Copy the full SHA 6a3566cView commit details