-
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
[chalkify] duplicate predicates with predicates_defined_on
#52187
Comments
Hint: this duplication is only triggered when using the following form for a super trait: trait Bar where Self: Foo {} For the alternative syntax |
Ok found the culprit: Overall, this is not a big problem apart from giving chalk (and maybe some parts of rustc not using e.g. a |
Sounds about right to me |
Remove duplicate predicates in `explicit_predicates_of` I took a more brutal approach than described in rust-lang#52187. I could have used the `linked_hash_map` crate but this seems overkill, especially as we need a vec storage in the end. r? @nikomatsakis
Remove duplicate predicates in `explicit_predicates_of` I took a more brutal approach than described in rust-lang#52187. I could have used the `linked_hash_map` crate but this seems overkill, especially as we need a vec storage in the end. r? @nikomatsakis
It seems like I missed this one when reviewing #51895:
rust/src/test/ui/chalkify/lower_env1.stderr
Lines 7 to 8 in c6807bb
(same duplicate just below in that same file)
I'm just opening this issue for reference, I'll take some time to investigate later.
cc @nikomatsakis if it's still there when you get back, cc @tmandry
The text was updated successfully, but these errors were encountered: