Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBuild without +nightly #277
Conversation
This comment has been minimized.
This comment has been minimized.
|
Are you sure you used stable for It probably wouldn't be too hard to move away from this though. |
This comment has been minimized.
This comment has been minimized.
|
Removing the nightly dependency seems worthwhile. |
This comment has been minimized.
This comment has been minimized.
Ouch, you're right! I was seemingly running it with 1.17.0-nightly. Anyway, let's keep this PR open until we have managed to remove the nightly dependency. @cuviper, can you point us in the right direction? |
This comment has been minimized.
This comment has been minimized.
|
@perlun doing something like |
This comment has been minimized.
This comment has been minimized.
|
Well, But for plain |
This comment has been minimized.
This comment has been minimized.
Ah, yeah, forgot about that -- but you could do it the demo directories, I think, right? We should write a stable version of compiletest. It's pretty silly for that to use unstable code. |
This comment has been minimized.
This comment has been minimized.
I'm not sure what you mean. The demo directories are the only place we use But generally speaking, yes, I'd like it better if most of our testing could run on stable too. |
This comment has been minimized.
This comment has been minimized.
|
Oh, sorry, I was mixing things up. I thought you were referring to the |
perlun
changed the title
README: Run examples without +nightly
Build without +nightly
Apr 7, 2017
perlun
force-pushed the
perlun:patch-1
branch
from
1f0c083
to
2a8630e
Apr 7, 2017
This comment has been minimized.
This comment has been minimized.
|
@nikomatsakis I changed the PR to only fix the trivial |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
CI reveals that we don't actually do a plain build of rayon-demo, or the |
This comment has been minimized.
This comment has been minimized.
|
@cuviper Good point, fixed the Travis config to build the rayon-demo always now (i.e. for all rust versions in the build matrix). |
This comment has been minimized.
This comment has been minimized.
|
I think the test line needs to go back under nightly -- it will still need features for |
This comment has been minimized.
This comment has been minimized.
|
One can run benchmarks on stable with bencher, though I mostly don't do that because of the extra macro boilerplate. However, every day of more serious Rust usage brings more needs for a way to measure and understand performance with the stable compiler's codegen. An up front disclaimer is that bencher is a stop-gap measure and not a project that tries to make a better bencher. |
perlun
force-pushed the
perlun:patch-1
branch
from
b74cc3d
to
3d70d16
Apr 10, 2017
This comment has been minimized.
This comment has been minimized.
|
@cuviper @nikomatsakis It now builds on 3/4 configurations in the build matrix. Any suggestions on what we can do with the fourth? (it complained about "multiple versions of rayon" or something like that) |
cuviper
reviewed
Apr 13, 2017
| @@ -16,6 +16,7 @@ matrix: | |||
|
|
|||
| script: | |||
| - cargo build --features="$FEATURES" | |||
| - cargo build | |||
This comment has been minimized.
This comment has been minimized.
cuviper
Apr 13, 2017
Member
Sorry, I think we've been talking past each other on this. I meant you should add:
- cargo build --features="$FEATURES" -p rayon-demo
... leaving the matching cargo test under nightly only.
This comment has been minimized.
This comment has been minimized.
|
@perlun I think changing the line as I suggested will solve the "multiple versions of rayon". |
perlun
force-pushed the
perlun:patch-1
branch
from
3d70d16
to
509ee69
Apr 13, 2017
This comment has been minimized.
This comment has been minimized.
Ah, thanks for explaining. I changed like you suggested but now get another error:
|
This comment has been minimized.
This comment has been minimized.
|
Bah, the cargo with rust-1.12 doesn't handle |
perlun
force-pushed the
perlun:patch-1
branch
from
509ee69
to
b41f0cc
Apr 13, 2017
This comment has been minimized.
This comment has been minimized.
Why do we need to support 1.12 still btw? |
This comment has been minimized.
This comment has been minimized.
|
It's a deliberate choice not to increase the minimum Rust required if we can help it. That matters less for rayon-demo though. |
This comment has been minimized.
This comment has been minimized.
Yep, now we are down to them; that's what Travis is complaining about now. |
cuviper
referenced this pull request
Apr 19, 2017
Merged
Add Windows CI(Appveyor) and enable unstable features in Travis on stable Rust #321
This comment has been minimized.
This comment has been minimized.
|
@cuviper Bear with my ignorance, but what would be the proper way to implement these functions without using the rust-lang/rust#34511 unstable feature? Can it be done? |
This comment has been minimized.
This comment has been minimized.
|
Don't worry about asking questions! At a first glance, try changing the return value to some nonsense, like So for
We can't fully name that type ourselves, but the good news is that
Not only is this building on top of the same type from the first example, but it also uses a closure which we literally cannot name at all. One possibility is to create a new custom The other way is to box it into a trait object, like |
This comment has been minimized.
This comment has been minimized.
|
@cuviper Thanks for the really detailed answer! Unfortunately, I haven't yet found the time and energy to complete it. I don't work with Rust regularly so "switching mindset" to be able to productively get things done can be challenging for me... If anyone else wants to pick this up and complete it, I won't mind. Otherwise, we're perhaps better off closing for now rather than letting it remain open for many months more. |
This comment has been minimized.
This comment has been minimized.
|
Ok, no problem. If someone wants to start a new PR, feel welcome! |
perlun commentedMar 24, 2017
First, thanks for a great library everybody!😄
I happened to see this, and I tried the examples. They seem to run just fine on stable Rust nowadays. Any particular reason why we'd want to keep running these on nightly, or is just a remnant from the past?