dtolnay / dtolnay/trybuild

Raise an error if the path given to compile_fail matches no files

Open
#185 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
998
Forks
84
PR merge metrics
No merged PRs in 30d

Description

The `compile_fail` function accepts a string to match against paths. If there's a typo in that string which causes it to match no folder / files the test will pass, but it is probably indicative of a developer error.

I experienced this myself when I renamed the folder where I keep trybuild test vectors, without updating the `compile_fail` call.

The compile_fail function could raise an error in this case.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.