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

aljabar fails to build on latest version of rustc #21

Closed
maplant opened this issue Jul 19, 2020 · 0 comments · Fixed by #23
Closed

aljabar fails to build on latest version of rustc #21

maplant opened this issue Jul 19, 2020 · 0 comments · Fixed by #23

Comments

@maplant
Copy link
Owner

maplant commented Jul 19, 2020

Aljabar fails to build with the following errors:

error: constant expression depends on a generic parameter
   --> src/vector.rs:173:30
    |
173 |     pub fn truncate(self) -> (TruncatedVector<T, { N }>, T) {
    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this may fail depending on what value the parameter takes

error: constant expression depends on a generic parameter
   --> src/vector.rs:201:36
    |
201 |     pub fn extend(self, new: T) -> ExtendedVector<T, { N }> {
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this may fail depending on what value the parameter takes

error: aborting due to 2 previous errors

It's not a huge concern, as some earlier versions of the compiler do support this just mine, but the decision to make these functions illegal have ramifications for their future existence in this crate.

My inclination is to wait a while, and maybe these functions will just end up being compilable.

A side pretty big issue is that now it's impossible to view the documentation on docs.rs for the time being.

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 a pull request may close this issue.

1 participant