Uh oh!
There was an error while loading. Please reload this page.
Add a TyPat in the AST to reuse the generic arg lowering logic - #136646
Conversation
This comment has been minimized.
This comment has been minimized.
BoxyUwU
commented
Feb 10, 2025
@rustbot author (ci failing) |
6a1ddf2 to
6d7ce4eComparerustbot
commented
Feb 11, 2025
Some changes occurred in src/tools/rustfmt cc @rust-lang/rustfmt |
| pub operand: &'a Option<ptr::P<T>>, | ||
| pub span: Span, |
There was a problem hiding this comment.
the struct is pub(crate) so there's no benefit to this being pub right?
There was a problem hiding this comment.
Yea but it's more characters 😅
BoxyUwU
commented
Feb 11, 2025
rustfmt changes look roughly right to me, not sure if we're supposed to get approval from rustfmt maintainers before this lands? r=me if we don't need that otherwise r=me after rustfmt approval |
oli-obk
commented
Feb 11, 2025
Rustfmt needs more adjustments to handle pattern types anyway. I think it may be stripping the builtin macro and just leaving the plain @bors r=BoxyUwU |
bors
commented
Feb 11, 2025
ytmimi
commented
Feb 11, 2025
rustfmt changes look fine to me 👍🏼 |
Add a TyPat in the AST to reuse the generic arg lowering logic This simplifies ast lowering significantly with little cost to the pattern types parser. Also fixes any problems we've had with generic args (well, pushes any problems onto the `generic_const_exprs` feature gate) follow-up to rust-lang#136284 (comment) r? `@BoxyUwU`
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#135549 (Document some safety constraints and use more safe wrappers) - rust-lang#135965 (In "specify type" suggestion, skip type params that are already known) - rust-lang#136193 (Implement pattern type ffi checks) - rust-lang#136646 (Add a TyPat in the AST to reuse the generic arg lowering logic) - rust-lang#136699 (std: replace the `FromInner` implementation for addresses with private conversion functions) - rust-lang#136874 (Change the issue number for `likely_unlikely` and `cold_path`) - rust-lang#136884 (Lower fn items as ZST valtrees and delay a bug) - rust-lang#136885 (i686-linux-android: increase CPU baseline to Pentium 4 (without an actual change) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#135549 (Document some safety constraints and use more safe wrappers) - rust-lang#135965 (In "specify type" suggestion, skip type params that are already known) - rust-lang#136193 (Implement pattern type ffi checks) - rust-lang#136646 (Add a TyPat in the AST to reuse the generic arg lowering logic) - rust-lang#136874 (Change the issue number for `likely_unlikely` and `cold_path`) - rust-lang#136884 (Lower fn items as ZST valtrees and delay a bug) - rust-lang#136885 (i686-linux-android: increase CPU baseline to Pentium 4 (without an actual change) - rust-lang#136891 (Check sig for errors before checking for unconstrained anonymous lifetime) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#136646 - oli-obk:pattern-types-ast, r=BoxyUwU Add a TyPat in the AST to reuse the generic arg lowering logic This simplifies ast lowering significantly with little cost to the pattern types parser. Also fixes any problems we've had with generic args (well, pushes any problems onto the `generic_const_exprs` feature gate) follow-up to rust-lang#136284 (comment) r? ``@BoxyUwU``
This simplifies ast lowering significantly with little cost to the pattern types parser.
Also fixes any problems we've had with generic args (well, pushes any problems onto the
generic_const_exprsfeature gate)follow-up to #136284 (comment)
r? @BoxyUwU