Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Allow empty annotation spans #107

Merged
merged 4 commits into from Mar 21, 2024
Merged

fix: Allow empty annotation spans #107

merged 4 commits into from Mar 21, 2024

Conversation

epage
Copy link
Contributor

@epage epage commented Mar 21, 2024

Cargo works with empty spans in some situations, especially for eol/eof. Annotate-snippets had a test case for this but it was dependent on a hack that remained in Cargo. This unblocks Cargo from removing that hack. I tested my local cargo against this and it fixes the problem I had there.

In the future, we may want to consider using a special form of underlining for empty spans.

Copy link
Contributor

@Muscraft Muscraft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

If you want to create an issue for "a special form of underlining for empty span" that would be great!

@Muscraft Muscraft merged commit fb131af into rust-lang:master Mar 21, 2024
13 checks passed
@epage epage deleted the past branch March 21, 2024 17:17
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.

None yet

2 participants