Skip to content
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

Make sure der crate is compatible with potential language breaking changes #1374

Conversation

WaffleLapkin
Copy link
Contributor

? currently influences inference s.t. for error()? rustc infers T = (). However, it is quite confusing -- ? is not supposed to influence inference, it's just a conicidence because of the curent implementation. There is an idea to change this behavior in future Rust versions, such that this code won't compile without this change.

See rust-lang/rust#122412 for more information about the change.
(der is used by cargo, so this partially blocks the PR, please ping me once you release a new der version so I can update it inside cargo)

`?` currently influences inference s.t. for `error()?` rustc infers `T = ()`.
However, it is quite confusing -- `?` is not supposed to influence inference,
it's just a conicidence because of the curent implementation. There is an idea
to change this behavior in future Rust versions, such that this code won't
compile without this change.
@tarcieri tarcieri merged commit cf950b3 into RustCrypto:master Apr 1, 2024
106 checks passed
@WaffleLapkin WaffleLapkin deleted the fixup-der-to-be-compatible-with-future-rust-changes branch April 1, 2024 17:01
@baloo
Copy link
Member

baloo commented Apr 1, 2024

@WaffleLapkin this is going to take a little while until we tag a (stable) release for der.
We could backport that to 0.7 and release a 0.7.9 if that makes it easier for you.

@baloo
Copy link
Member

baloo commented Apr 1, 2024

baloo pushed a commit that referenced this pull request Apr 1, 2024
`?` currently influences inference s.t. for `error()?` rustc infers `T = ()`.
However, it is quite confusing -- `?` is not supposed to influence inference,
it's just a conicidence because of the curent implementation. There is an idea
to change this behavior in future Rust versions, such that this code won't
compile without this change.
baloo added a commit to baloo/formats that referenced this pull request Apr 1, 2024
Changed
- make sure der is comptatible with potential language breaking changed (backport of RustCrypto#1374)
@baloo baloo mentioned this pull request Apr 1, 2024
baloo added a commit to baloo/formats that referenced this pull request Apr 1, 2024
Changed
- make sure der is comptatible with potential language breaking changed (backport of RustCrypto#1374)
- ignore RUSTSEC-2023-0071 (backport of RustCrypto#1276)
baloo added a commit that referenced this pull request Apr 1, 2024
* .cargo/audit.toml: ignore RUSTSEC-2023-0071 (#1276)

It's not actionable until a new release of the `rsa` crate is available

* der v0.7.9

Changed
- make sure der is comptatible with potential language breaking changed (backport of #1374)
- ignore RUSTSEC-2023-0071 (backport of #1276)
bors added a commit to rust-lang/cargo that referenced this pull request Apr 2, 2024
Update `der` crate

This soft-blocks some of my work on testing things with the never type, see RustCrypto/formats#1374.
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.

3 participants