Skip to content

Conversation

Muscraft
Copy link
Member

@Muscraft Muscraft commented Oct 20, 2025

There were some cases where we were not calculating the correct max line number for suggests, this PR addresses those problems.

src/snippet.rs Outdated

/// A whitespace [`Element`] in a [`Group`]
#[derive(Clone, Debug)]
#[derive(Clone, Copy, Debug)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure we want to have this from an API perspective?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is probably something we should put more thought into, so I will drop it from this PR.

@Muscraft Muscraft force-pushed the fix-suggestion-max-line-num branch from 526149a to 8e9817b Compare October 20, 2025 14:51
@Muscraft Muscraft merged commit 450b2ea into rust-lang:master Oct 20, 2025
15 checks passed
@Muscraft Muscraft deleted the fix-suggestion-max-line-num branch October 20, 2025 15:06
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.

2 participants