Repository navigation
Lower to hir::Params for required trait functions - #166147
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Lower to `hir::Params` for required trait functions
5e7d96f to
cb432b1
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
hir::Params for required trait functionshir::Params for required trait functions
This comment was marked as outdated.
This comment was marked as outdated.
cb432b1 to
ba69df0
Compare
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Lower to `hir::Param`s for required trait functions
|
Changes to the size of AST and/or HIR nodes. cc @nnethercote
cc @rust-lang/clippy |
This comment has been minimized.
This comment has been minimized.
c1821bd to
6a6515c
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Processed the feedback
This works well for me. |
6a6515c to
6fda44b
Compare
| let Some((data, scope_owner)) = self.bindings.last_mut() else { | ||
| // This pattern is part of a `Param` of a body-less function, skip it | ||
| return | ||
| }; |
There was a problem hiding this comment.
This will cause another regression sadly
I believe it should be sufficient to prove invariant (and so keeping an unwrap) by checking that cx.enclosing_body is something
There was a problem hiding this comment.
Oh right because items can be nested, I will fix that, sorry
There was a problem hiding this comment.
yeah, r=me after replacing this with
if cx.enclosing_body.is_none() {
return;
}and returning an old unwrap line back (and optionally test it because i haven't :D)
6fda44b to
258c973
Compare
258c973 to
f4a8ee6
Compare
|
@bors r=kivooeo |
Lower to `hir::Param`s for required trait functions The same as rust-lang#166142, but for required trait functions. Also includes a bunch of cleanup. I recommend reviewing commit by commit, every commit passes tests. Earlier commits leave TODOs that are fixed by later commits Part of rust-lang#164357 r? Kivooeo
Lower to `hir::Param`s for required trait functions The same as rust-lang#166142, but for required trait functions. Also includes a bunch of cleanup. I recommend reviewing commit by commit, every commit passes tests. Earlier commits leave TODOs that are fixed by later commits Part of rust-lang#164357 r? Kivooeo
Lower to `hir::Param`s for required trait functions The same as rust-lang#166142, but for required trait functions. Also includes a bunch of cleanup. I recommend reviewing commit by commit, every commit passes tests. Earlier commits leave TODOs that are fixed by later commits Part of rust-lang#164357 r? Kivooeo
…uwer Rollup of 14 pull requests Successful merges: - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166400 (Revert "stabilize {Arc,Rc}::is_unique") - #166417 (Correctly specify that the head cannot be >= capacity) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice)
…uwer Rollup of 14 pull requests Successful merges: - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166400 (Revert "stabilize {Arc,Rc}::is_unique") - #166417 (Correctly specify that the head cannot be >= capacity) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice)
Lower to `hir::Param`s for required trait functions The same as rust-lang#166142, but for required trait functions. Also includes a bunch of cleanup. I recommend reviewing commit by commit, every commit passes tests. Earlier commits leave TODOs that are fixed by later commits Part of rust-lang#164357 r? Kivooeo
…uwer Rollup of 15 pull requests Successful merges: - #166429 (1.100.1 relnotes) - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166400 (Revert "stabilize {Arc,Rc}::is_unique") - #166417 (Correctly specify that the head cannot be >= capacity) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice)
…uwer Rollup of 15 pull requests Successful merges: - #166429 (1.100.1 relnotes) - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166400 (Revert "stabilize {Arc,Rc}::is_unique") - #166417 (Correctly specify that the head cannot be >= capacity) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice)
Rollup of 15 pull requests Successful merges: - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166417 (Correctly specify that the head cannot be >= capacity) - #166429 (1.100.1 relnotes) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice) - #166521 (Not-so-pointless change to hashbrown subtree)
Rollup merge of #166147 - JonathanBrouwer:param6, r=kivooeo Lower to `hir::Param`s for required trait functions The same as #166142, but for required trait functions. Also includes a bunch of cleanup. I recommend reviewing commit by commit, every commit passes tests. Earlier commits leave TODOs that are fixed by later commits Part of #164357 r? Kivooeo
Rollup of 15 pull requests Successful merges: - rust-lang/rust#165847 (Skip fulfillment when normalization produces no obligations) - rust-lang/rust#166147 (Lower to `hir::Param`s for required trait functions) - rust-lang/rust#166414 (rustdoc: Use source snippet to render `include_*` literals) - rust-lang/rust#166497 (Integrate doc comment target checking on parameters & where bounds) - rust-lang/rust#166500 (Fix float zero patterns after a failed guard) - rust-lang/rust#165791 (Sync tier 3 addition policy with Forge) - rust-lang/rust#166417 (Correctly specify that the head cannot be >= capacity) - rust-lang/rust#166429 (1.100.1 relnotes) - rust-lang/rust#166448 (triagebot: Send "in progress" message when nomination is in progress) - rust-lang/rust#166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - rust-lang/rust#166498 (Update the Platform Support page for the *-espidf targets) - rust-lang/rust#166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - rust-lang/rust#166511 (Documentation: clarify Termination::report doc) - rust-lang/rust#166514 (coroutine: unify the word choice) - rust-lang/rust#166521 (Not-so-pointless change to hashbrown subtree)
View all comments
The same as #166142, but for required trait functions.
Also includes a bunch of cleanup.
I recommend reviewing commit by commit, every commit passes tests.
Earlier commits leave TODOs that are fixed by later commits
Part of #164357
r? Kivooeo