README: Avoid directory traversal #321
Open
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.
tl;dr Trybuild is better than it may seem for users with complex setups, who already have, or are used to having compilation-failing source files outside their
src/tree.For example, users may already have compilation-failing sources positioned somewhere outside
src/, because of their existing script-based testing (that they want to move away from and move totrybuild).Or, they may want to test (compilation failure) of the same sources under various combinations of features, but (for whatever reason) they don't want to pass the features to
cargo test, but they set up one test crate per feature combination.But It was only after some experimentation, almost an accident, that I've noticed that
trybuilddoes store relative paths in.stderr(instead of absolute paths), but only if the path passed tot.compile_fail(...)does not contain "..".I understand that there may be more restrictions on this, and that there's no guarantee. But, since this work, mentioning this, at least as a hint, would