Skip to content

fix: Ignore Drop and Destruct bounds for now #11936

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

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

flodiebold
Copy link
Member

  • T: ~const Drop has a special meaning in Rust 1.61 that we don't implement. (So ideally, we'd only ignore ~const Drop, but this should be fine for now.)
  • Destruct impls are built-in in 1.62 (current nightlies), so until the builtin impls are supported by Chalk, we ignore them as well. Since Destruct is implemented for everything in non-const contexts IIUC, this should also work fine.

Fixes #11932.

- `T: ~const Drop` has a special meaning in Rust 1.61 that we don't implement.
  (So ideally, we'd only ignore `~const Drop`, but this should be fine
  for now.)
- `Destruct` impls are built-in in 1.62 (current nightlies as of 08-04-2022), so until
  the builtin impls are supported by Chalk, we ignore them as well.
  Since `Destruct` is implemented for everything in non-const contexts
  IIUC, this should also work fine.

Fixes rust-lang#11932.
@flodiebold
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 8, 2022

@bors bors bot merged commit 847c552 into rust-lang:master Apr 8, 2022
@lnicola lnicola changed the title Ignore Drop and Destruct bounds for now fix: Ignore Drop and Destruct bounds for now Apr 8, 2022
@flodiebold flodiebold deleted the const-destruct branch April 8, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Expected Option<Lifetime>, got &Option<Lifetime> type mismatches in 1.61.0-beta.1
1 participant