Rustpkg: tests, and doing inference properly#5920
Closed
catamorphism wants to merge 9 commits intorust-lang:incomingfrom
Closed
Rustpkg: tests, and doing inference properly#5920catamorphism wants to merge 9 commits intorust-lang:incomingfrom
catamorphism wants to merge 9 commits intorust-lang:incomingfrom
Conversation
1. Fail when there's no package script and no crates named main.rs, lib.rs, bench.rs, or test.rs. 2. Inject the crate link_meta "name" and "vers" attributes, so that the output file gets named correctly in the library case. 3. Normalize '-' to '_' in package names.
There's no test runner for rustpkg yet; just sketching out a few basic test scenarios. pass/ contains packages that should compile successfully, whereas fail/ contains packages that should fail to build.
1. Implemented the `clean` command 2. The methods implementing rustpkg commands all returned `bool`. Since most of not all of the error situations seem unrecoverable, I changed the methods to return unit (and also stubbed out several more methods that were assuming a package script existed, to be re-implemented in the future)
This is a test file containing examples of commands that should succeed. When we write the test runner, we will have to figure out how to automate them.
These are examples of what *should* work, and probably don't work yet.
bors
added a commit
that referenced
this pull request
Apr 18, 2013
flip1995
pushed a commit
to flip1995/rust
that referenced
this pull request
Aug 28, 2020
…_call, r=mikerite Fix FP for `redundant_closure_call` Fix rust-lang#5916 changelog: Fix FP for `redundant_closure_call` when called in function body
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
r? @graydon