-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
Error if
is not allowed in a const fn
when compiling with nightly
#281
Comments
It seems time 0.2. was imported via |
This is caused by an upstream issue I noted about a month ago — taiki-e/const_fn#17. Pinging @taiki-e now that there is a confirmed case of code breaking in the wild. Treating nightly as the then-beta compiler, rather than encompassing the entirety of the feature set that will be stabilized at some point during that release cycle, would avoid an issue like this. It would be difficult to keep track of what is stabilized when (the exact date). The only alternative for me is to change every instance of 1.46 to 1.47, but I'd then be needlessly excluding anyone using a compiler that is fully capable of doing what is asked. Frankly, if this behavior isn't changed, I'll consider forking. I'd rather fork than have time's support for nightly be like Swiss cheese. |
Thanks for details, good to know. FWIW I have fixed that issue downgrading to actix-web 2.0, going to first upgrade my nightly then will switch over. |
@jhpratt I'm ok if change the implementation to treat
FWIW, |
The time crate relies on The
As I said above, I'll fix time's behavior, as I consider that to be a bug. I'd obviously prefer to avoid forking, and would also prefer to not emit a |
You don't have to emit |
I'll revisit the current behavior in taiki-e/const_fn#27, but it's probably not immediately decided, so I recommend using |
Using |
FWIW, |
Good to know! I'll take a look at what can be converted to that crate, as it's certainly more powerful than the const_fn crate (it looks like a feature superset). |
Hello, by some reason I started getting compile errors on nigthly with time 0.2.22:
was not able to dug the root cause, but might it be related with latest changes?
I am using nightly-2020-06-10
The text was updated successfully, but these errors were encountered: