Consider how to replace CARGO_MANIFEST_DIR without trailing slash
- Dominant language
- Rust
- Stars
- 998
- Forks
- 84
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/dtolnay/trybuild/issues/202#issuecomment-1284634512
> My macro outputs "Help: Searching in directory $CARGO_MANIFEST_DIR" when the file it was looking for doesn't exist, which by its nature, will not always be the same path. However, trybuild for some reason doesn't replace that directory with $DIR but leaves the path untouched.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked issue comment and inspect trybuild's diagnostic path replacement behavior for CARGO_MANIFEST_DIR and $DIR. Reproduce a missing-file diagnostic where the manifest directory has no trailing slash, then determine the expected normalized output and verify both trailing-slash cases are covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100