-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
fallback default
to None
during ast-lowering for lifetime binder
#119042
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this to ast validation or some post-macro-expansion pass.
Yes, I agree with this, and it's a great catch.
But I'm curious about how we can change the default in |
985c57d
to
dd8809c
Compare
I have shifted this process into the AST lowering stage: if the |
ci is green. @rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me after leaving a comment
default
to None
during parse late-bound lifetime
This comment has been minimized.
This comment has been minimized.
None
during ast-loweing for lifetime binder
This comment has been minimized.
This comment has been minimized.
None
during ast-loweing for lifetime binderdefault
to None
during ast-loweing for lifetime binder
This comment has been minimized.
This comment has been minimized.
dd8809c
to
873ed19
Compare
@bors r+ |
default
to None
during ast-loweing for lifetime binderdefault
to None
during ast-lowering for lifetime binder
873ed19
to
e16efbd
Compare
@rustbot ready |
@bors r+ |
fallback `default` to `None` during ast-lowering for lifetime binder Fixes rust-lang#118697 This is another attempt. It has a fallback, setting `default` to `None` and emit an error for non-lifetime binders during ast lowering. r? `@compiler-errors`
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
@bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (a75fed7): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 670.607s -> 671.414s (0.12%) |
…ompiler-errors Deny defaults for higher-ranked generic parameters Fixes rust-lang#119489 (incl. rust-lang#119489 (comment)). Partially reverts rust-lang#119042. cc `@bvanjoi` r? `@compiler-errors` or compiler
…ompiler-errors Deny defaults for higher-ranked generic parameters Fixes rust-lang#119489 (incl. rust-lang#119489 (comment)). Partially reverts rust-lang#119042. cc ``@bvanjoi`` r? ``@compiler-errors`` or compiler
…ompiler-errors Deny defaults for higher-ranked generic parameters Fixes rust-lang#119489 (incl. rust-lang#119489 (comment)). Partially reverts rust-lang#119042. cc ```@bvanjoi``` r? ```@compiler-errors``` or compiler
Rollup merge of rust-lang#119494 - fmease:deny-hr-param-defaults, r=compiler-errors Deny defaults for higher-ranked generic parameters Fixes rust-lang#119489 (incl. rust-lang#119489 (comment)). Partially reverts rust-lang#119042. cc ```@bvanjoi``` r? ```@compiler-errors``` or compiler
Fixes #118697
This is another attempt. It has a fallback, setting
default
toNone
and emit an error for non-lifetime binders during ast lowering.r? @compiler-errors