Ed Page 90b68c87f4 fix(manifest): Show error source to users
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!
2025-09-08 16:06:29 -05:00
..

Canonical home for these tests is https://github.com/rust-lang/rust/tree/master/tests/ui/frontmatter

To update

  1. Sync changes to this directory
  2. Run SNAPSHOTS=overwrite cargo test --test testsuite -- script::rustc to register new test cases
  3. 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