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

from: BLOCKED) It would be nice to impl From<_> as well, but then the #91

Open
github-actions bot opened this issue May 28, 2022 · 0 comments
Open
Assignees
Labels
feature tracker Issue tracked by bot

Comments

@github-actions
Copy link

On 2022-05-28 @recmo wrote in 1ec2e50 “Recognize new tags”:

BLOCKED) It would be nice to impl From<_> as well, but then the
generic implementation impl<T: Into<U>, U> TryFrom<U> for T conflicts with
our own implementation. This means we can only implement one.
In principle this can be worked around by specialization, but that
triggers other compiler issues at the moment.

// FEATURE: (BLOCKED) It would be nice to impl From<_> as well, but then the
// generic implementation `impl<T: Into<U>, U> TryFrom<U> for T` conflicts with
// our own implementation. This means we can only implement one.
// In principle this can be worked around by `specialization`, but that
// triggers other compiler issues at the moment.

// impl<T, const BITS: usize> From<T> for Uint<BITS>
// where
//     [(); nlimbs(BITS)]:,
//     Uint<BITS>: TryFrom<T>,

From src/from.rs:1

@github-actions github-actions bot added feature tracker Issue tracked by bot labels May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature tracker Issue tracked by bot
Projects
None yet
Development

No branches or pull requests

1 participant