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 upAdd support for compiler tests #90
Conversation
fuine
referenced this pull request
Nov 9, 2017
Merged
WIP Improved support for visibility restrictions #88
KodrAus
reviewed
Nov 9, 2017
| @@ -17,9 +17,14 @@ categories = [ "no-std", "rust-patterns" ] | |||
| version = "0.4" | |||
| optional = true | |||
|
|
|||
| [dependencies.compiletest_rs] | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
fuine
Nov 10, 2017
Author
Contributor
I'm afraid it can't at the moment - rust-lang/cargo#1596 and it needs to be optional, because, due to language features, it simply doesn't build on stable/beta
This comment has been minimized.
This comment has been minimized.
fuine
force-pushed the
fuine:compiletest
branch
2 times, most recently
from
1ca6c71
to
60e11d8
Nov 10, 2017
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@fuine Sure. I've got a Windows box handy so will do some troubleshooting over the weekend. |
This comment has been minimized.
This comment has been minimized.
|
Cool, thanks. Just heads up: compile tests work on my machine using both Windows and Linux, they also work on travis, it's just that for some reason appveyor build refuses to find |
This comment has been minimized.
This comment has been minimized.
|
So this is actually failing on my local environment too. Which is probably good news |
This comment has been minimized.
This comment has been minimized.
|
That's great news, however could you test it as well on 60e11d8 ? |
This comment has been minimized.
This comment has been minimized.
|
Yep, specifying the target directly when running the compile tests seems to cause it to fail to find the |
This comment has been minimized.
This comment has been minimized.
|
I don't have any indepth knowledge of appveyor's config, but if you don't specify target doesn't it fallback on w/e target it has set as default/finds first? Also if this is really a proble with |
This comment has been minimized.
This comment has been minimized.
|
Actually at this point I'm willing to test that and just manually see the logs to check which targets are used if we don't specify them explicitly. |
This comment has been minimized.
This comment has been minimized.
I think you're right, and since you're setting the default appropriately this should be fine. My guess is that this is a problem with the rustflags we're giving |
fuine
added some commits
Nov 9, 2017
fuine
force-pushed the
fuine:compiletest
branch
from
dc9f206
to
e5b6815
Nov 12, 2017
This comment has been minimized.
This comment has been minimized.
|
Thanks for the help, I've squashed previous commits and added some notes on the tests. I think it's potentially mergeable once CI goes green, but I can also squash the last commit with the first one - I want to preserve 6529b07 because it explicitly fixes a regression that I introduced in my previous PR. |
This comment has been minimized.
This comment has been minimized.
|
That history looks good to me Thanks for doing this @fuine! Your efforts to improve a bunch of aspects of the library are really appreciated! |
fuine commentedNov 9, 2017
This is an initial version of compiler tests. So far it should work on travis, appveyor is a bit harder to achieve, because there's no simple way to add testing with specified features only on nightly. Please don't merge yet, because I want to at least try to make them run on appveyor as well.
Moreover due to the design of
compiletestcrate and its implementation details there isn't any clear way to annotate warnings/errors in lines that are being expanded by the macro, but rather we are forced to useerror-patterngeneral mechanism. I will document that in code later on, just wanted to highlight it here.