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 upSupport stable rustc #107
Conversation
laumann
reviewed
Mar 15, 2018
|
I like the idea! Being able to run on stable is quite nice, and the implementation is nice and "opt-in", just how I like it, so thanks :-) Please look at my comments, I think they should be manageable and then we could merge this. |
| @@ -272,6 +275,8 @@ pub fn make_test_closure(config: &Config, testpaths: &TestPaths) -> test::TestFn | |||
| let config = config.clone(); | |||
| let testpaths = testpaths.clone(); | |||
| test::DynTestFn(Box::new(move || { | |||
| #[cfg(feature = "norustc")] | |||
| let config = config.clone(); // FIXME: why is this needed? | |||
This comment has been minimized.
This comment has been minimized.
laumann
Mar 15, 2018
Owner
Maybe some of the NLL changes in rustc nightly obviates the need to clone config? Or we're looking at a bug in rustc nightly? config has type &Config, so it should be freely copyable across threads, right? It could also be a that's been fixed in nightly, but hasn't made its way to stable?
This comment has been minimized.
This comment has been minimized.
messense
Mar 15, 2018
Author
Contributor
It could be related to test::DynTestFn takes an Box<FnMut() + Send> instead of Box<FnBox() + Send>. (Because FnBox isn't stable)
| @@ -24,7 +24,6 @@ struct Diagnostic { | |||
| level: String, | |||
| spans: Vec<DiagnosticSpan>, | |||
| children: Vec<Diagnostic>, | |||
| rendered: Option<String>, | |||
This comment has been minimized.
This comment has been minimized.
laumann
Mar 15, 2018
Owner
This just fixes the build warning, right? Could I have that in a separate PR?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
||
| // FIXME: Remove this when rotate_left is stable in 1.26 | ||
| #[cfg(feature = "norustc")] | ||
| fn read2_abbreviated(mut child: Child) -> io::Result<Output> { |
This comment has been minimized.
This comment has been minimized.
laumann
Mar 15, 2018
Owner
This looks quite different from the standard version of read2_abbreviated(), why is that?
This comment has been minimized.
This comment has been minimized.
messense
Mar 15, 2018
Author
Contributor
This is just because I don't want to copy the slice::rotate_left impl for now(It should be done if we are going to merge this), see the FIXME above.
This comment has been minimized.
This comment has been minimized.
laumann
Mar 15, 2018
Owner
I was just wondering why read2_abbreviated() was affected by the norustc feature, when it's because of rotate_left. I'd rather have an:
// FIXME: Remove this when rotate_left is stable in 1.26
#[cfg(feature = "norustc")]
fn rotate_left(..) -> {
...
}
to switch implementations of rotate_left.
| @@ -23,6 +23,7 @@ tempdir = { version = "0.3", optional = true } | |||
| serde = "1.0" | |||
| serde_json = "1.0" | |||
| serde_derive = "1.0" | |||
| rustc-test = { git = "https://github.com/messense/rustc-test.git", branch = "update", optional = true} | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
messense
Mar 15, 2018
Author
Contributor
It's a fork of servo/rustc-test with updates from rustc. It should be upstreamed to servo/rustc-test.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
How does the |
messense
added some commits
Mar 13, 2018
messense
changed the title
Proof of concept: support stable rustc
Support stable rustc
Mar 27, 2018
This comment has been minimized.
This comment has been minimized.
|
To move this forward, I have released the updated version of |
phansch
referenced this pull request
Apr 7, 2018
Open
Split up our UI-tests into smaller parts #2038
This comment has been minimized.
This comment has been minimized.
oli-obk
commented
Apr 7, 2018
|
I don't have enough words to express my happiness about this PR! |
laumann
approved these changes
Apr 8, 2018
|
@oli-obk I should not be so slow then :-) @messense Sorry for the absence, had a week off. I think this looks good to go. @SergioBenitez Any comments on this? |
| @@ -8,3 +8,6 @@ authors = ["Thomas Jespersen <laumann.thomas@gmail.com>"] | |||
| [dev-dependencies.compiletest_rs] | |||
| path = ".." | |||
| features = ["tmp"] | |||
|
|
|||
| [features] | |||
| stable = ["compiletest_rs/stable"] | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
messense
Apr 8, 2018
Author
Contributor
See the reference here: https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section
This comment has been minimized.
This comment has been minimized.
| tail.rotate_left(data.len()); | ||
| // FIXME: Remove this when rotate_left is stable in 1.26 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hmm, I checked this out and did:
Am I doing something wrong? I'm on rustc 1.25.0 |
This comment has been minimized.
This comment has been minimized.
|
Of course, I have to do |
laumann
merged commit 6fd4d0b
into
laumann:master
Apr 9, 2018
1 check passed
messense
deleted the
messense:stable
branch
Apr 9, 2018
This comment has been minimized.
This comment has been minimized.
|
0.3.10 is out! |
messense commentedMar 13, 2018
No description provided.