Skip to content

fix: disambiguate prior rule file labels in conflicts - #824

Open
Maksym (maksym-mishchenko) wants to merge 1 commit into
microsoft:mainfrom
maksym-mishchenko:maksym-mishchenko-conflict-label-follow-up
Open

Maksym (maksym-mishchenko) wants to merge 1 commit into
microsoft:mainfrom
maksym-mishchenko:maksym-mishchenko-conflict-label-follow-up

Conversation

@maksym-mishchenko

Copy link
Copy Markdown
Contributor

Summary

Fix the diagnostic ambiguity left by #820: an actual line break and the literal characters \n could display as the same earlier-rule file location. Encode % as %25, LF as %0A, and CR as %0D in that location. Ordinary Windows paths, the current-rule source context, conflict evaluation, and binding statuses stay unchanged.

Verification

  • cargo test --lib rule_conflict_ -- --nocapture (6 passed after three expected pre-fix failures).
  • cargo fmt --all -- --check and git diff --check passed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant