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

Use associated types in const generics #480

Open
Pratyush opened this issue Sep 22, 2022 · 1 comment
Open

Use associated types in const generics #480

Pratyush opened this issue Sep 22, 2022 · 1 comment
Labels
breaking-change This PR contains a breaking change T-refactor Type: cleanup/refactor

Comments

@Pratyush
Copy link
Member

Rust Tracking issue: rust-lang/rust#60551

This would allow use to simplify our Fp<P: FpConfig<N>, N> to just Fp<P: FpConfig> (as FpConfig would itself have N as an associated type. The same simplification would occur for our MontConfig and MontBackend.

@Pratyush Pratyush added T-refactor Type: cleanup/refactor breaking-change This PR contains a breaking change labels Sep 22, 2022
@burdges
Copy link
Contributor

burdges commented Feb 13, 2023

It'll improve many things like avoiding this Vec but right now they've some odd problem with associated constants used internally not being recognized as appropriately bound: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2015&gist=e1114345b12197fdb922ef1acb2e80ae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This PR contains a breaking change T-refactor Type: cleanup/refactor
Projects
None yet
Development

No branches or pull requests

2 participants