-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Cross-crate RPITIT loses bounds #113155
Labels
C-bug
Category: This is a bug.
Comments
Ltrlg
changed the title
Cross-crate RPITIT:
Cross-crate RPITIT loses bounds
Jun 29, 2023
impl ?Sized
is not an iterator
(This is a cc @spastorino: a nice test case to add. |
The reason: incorrect eyeballing + complete ignorance of the subject matter, AKA saying stupid things 😅 . Even better it it's fixable without requiring the new lowering. |
compiler-errors
added a commit
to compiler-errors/rust
that referenced
this issue
Jun 30, 2023
…unds, r=spastorino Encode item bounds for `DefKind::ImplTraitPlaceholder` This was lost in a refactoring -- `hir::ItemKind::OpaqueTy` doesn't always map to `DefKind::Opaque`, specifically for RPITITs, so the check was migrated subtly wrong, and unfortunately I never had a test for this 🙃 Fixes rust-lang#113155 r? `@cjgillot`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cross-crate
I tried this code:
a/src/lib.rs
b/src/lib.rs
Compiled fine with
1.72.0-nightly (5ea666864 2023-06-27)
, but gives the following error with1.72.0-nightly (5bd28f5ea 2023-06-28)
:Single crate
My initial attempt at minimizing the case shown that the single-crate equivalent:
c/src/lib.rs
compiles just fine.
Meta
rustc --version --verbose
:EDIT: Reduced reproduction code.
The text was updated successfully, but these errors were encountered: