-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
finish RegionKind
renaming
#117908
finish RegionKind
renaming
#117908
Conversation
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor Some changes occurred in src/tools/clippy cc @rust-lang/clippy This PR changes Stable MIR cc @oli-obk, @celinval, @spastorino, @ouz-a |
This PR changes Stable MIR cc @oli-obk, @celinval, @spastorino, @ouz-a Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
- `ReFree` -> `ReLateParam` - `ReEarlyBound` -> `ReEarlyParam`
1215a28
to
15f2156
Compare
This comment has been minimized.
This comment has been minimized.
assert!(r_a.is_free()); | ||
assert!(r_b.is_free()); | ||
debug!("lub_param_regions(r_a={:?}, r_b={:?})", r_a, r_b); | ||
assert!(r_a.is_late_or_early_param()); |
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.
would it be reasonable to just call this is_param()
I feel like that wouldn't be a confusing name
/// | ||
/// FIXME(@lcnr): This can also store a `DefId`, similar to | ||
/// `TypeVariableOriginKind::TypeParameterDefinition`. | ||
RegionParameterDefinition(Span, Symbol), |
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.
is this used for late and early bound parameters?
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.
only early bound, copied he name from TypeVariableOriginKind
@bors r=BoxyUwU rollup=never p=1 |
This comment has been minimized.
This comment has been minimized.
finish `RegionKind` renaming second step of rust-lang/types-team#95 continues the work from rust-lang#117876. While working on this and I encountered a bunch of further cleanup which I'll either open a tracking issue for or will do in a separate PR: - rewrite the `RegionKind` docs, they still talk about `ReEmpty` and are generally out of date - rename `DescriptionCtx` to `DescriptionCtxt` - what is `CheckRegions::Bound`? - `collect_late_bound_regions` et al - `erase_late_bound_regions` -> `instantiate_bound_regions_with_erased`? - `EraseEarlyRegions` visitor should be removed, feels duplicate r? `@BoxyUwU`
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
@bors p=1 r=BoxyUwU |
finish `RegionKind` renaming second step of rust-lang/types-team#95 continues the work from rust-lang#117876. While working on this and I encountered a bunch of further cleanup which I'll either open a tracking issue for or will do in a separate PR: - rewrite the `RegionKind` docs, they still talk about `ReEmpty` and are generally out of date - rename `DescriptionCtx` to `DescriptionCtxt` - what is `CheckRegions::Bound`? - `collect_late_bound_regions` et al - `erase_late_bound_regions` -> `instantiate_bound_regions_with_erased`? - `EraseEarlyRegions` visitor should be removed, feels duplicate r? `@BoxyUwU`
💔 Test failed - checks-actions |
@bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (1500db7): 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: 673.093s -> 674.821s (0.26%) |
second step of rust-lang/types-team#95
continues the work from #117876. While working on this and I encountered a bunch of further cleanup which I'll either open a tracking issue for or will do in a separate PR:
RegionKind
docs, they still talk aboutReEmpty
and are generally out of dateDescriptionCtx
toDescriptionCtxt
(already inconsistent)CheckRegions::Bound
?collect_late_bound_regions
et alerase_late_bound_regions
->instantiate_bound_regions_with_erased
?EraseEarlyRegions
visitor should be removed, feels duplicater? @BoxyUwU