Open woodsmur opened 3 years ago
@rustbot prioritize
Reproduces on stable 1.48.0 beta 1.49.0-beta.2 nightly 1.50.0 (1c389ffef 2020-11-24)
The ICE triggers since 1.45
@rustbot label +regression-from-stable-to-stable
Assigning P-high
and removing I-prioritize
as discussed in the prioritization working group.
@rustbot glacier "https://gist.github.com/rust-play/27c280d0e5bba7174cf90a120019a279"
I found the code where we add the duplicate Inner = _
predicate mentioned in the Zulip and internals links above, and confirmed that if I don't add the duplicate the program compiles fine. I'm not 100% sure this is the root cause but I think having two predicates for the same associated type doesn't make sense so I'm hopeful.
If I remove the code block that adds the duplicate predicate I get 8 UI test failures. I'll try to figure out why that code exists by looking at failing tests now.
@rustbot claim
Visiting for P-high review
@lcnr is there a roadmap for resolving this? Should we open it up for other people to claim?
(The error does seem like it remains P-high worthy, since I can imagine this to be pretty frustrating to someone since it doesn't print any diagnostic info guiding them towards even the obvious workaround of plugging in u32
for the _
type)
The issue here is that the associated type bound is redundant, we're specifying Inner
on Database
even though that one is already fully constrained by the trait definition of Database
itself.
I don't think it necessarily needs a roadmap, I expect it to be a fairly self-contained - if complex - fix.
I've taken a look at this in the past but I can again 👀
Rust compiler error for simple code like this:
Code
playaround
Meta
rustc --version --verbose
:Error output
Backtrace
```
```