You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In f4f47f6 I changed some string outputs - and so I had to also adjust the tests, which I hope I did - but I cannot test it because I get
$ cargo test
Compiling pineappl v0.5.4 (/home/felix/Physik/N3PDF/PineAPPL/pineappl/pineappl)
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
--> pineappl/src/sparse_array3.rs:244:6
|
244 | impl<T: Clone + Default + PartialEq> SparseArray3<T> {
| ^
...
322 | pub const fn dimensions(&self) -> (usize, usize, usize) {
| ------------------------------------------------------- function declared as const here
|
= note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `pineappl` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed
the mentioned command says something that I have to activate nightly to use unstable features - which is not what I want and moreover PineAPPL is supposed to work with 1.56.1
I'd like to avoid changing the MSRV since I know a few people like to use Rust from their Linux distribution. Commit 6c2b1ac should fix the problem. Please re-open if that isn't the case!
Activity
alecandido commentedon Jul 21, 2022
I guess it has been solved in Rust 1.61.0:
And since now Rust 1.62 is stable, I guess there is no problem.
felixhekhorn commentedon Jul 21, 2022
no problem - as long as we change https://github.com/N3PDF/pineappl/blob/f4f47f63e7118eb43479be8b3eec8fa5b53fc1fa/docs/installation.md#L122
alecandido commentedon Jul 21, 2022
Perfectly fine by me, I'd simply replace
1.56.1bystable, and we'll always make sure it is going to work on stable. What do you think @cschwan?cschwan commentedon Jul 21, 2022
I'd like to avoid changing the MSRV since I know a few people like to use Rust from their Linux distribution. Commit 6c2b1ac should fix the problem. Please re-open if that isn't the case!
felixhekhorn commentedon Jul 22, 2022
cargo testpassed 👍 (after I remembered to runcargo buildfirst - it is quite strangetestis not running it on it's own ... )cschwan commentedon Jul 22, 2022
cargo testcan take quite long to finish which is why it doesn't run by default.