mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00

Several parts of this are not ideal yet - Frontmatter close should show the open and show the EOF, instead of pointing at the open - Trailing content on close will usually have a newline - Multiple frontmatters should show the original frontmatter - Some content, like supported infostrings, should go in a help - Ideally we try to recover on no closing and instead point out a mismatched open/close But this is still an improvement over nothing!
Canonical home for these tests is https://github.com/rust-lang/rust/tree/master/tests/ui/frontmatter
To update
- Sync changes to this directory
- Run
SNAPSHOTS=overwrite cargo test --test testsuite -- script::rustc
to register new test cases - Run
SNAPSHOTS=overwrite cargo test --test testsuite -- script::rustc
to update snapshots for new test cases
Note:
- A
.stderr
file is assumed that the test fill fail - A
.stdout
file is assumed that the test fill succeed