Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add a way to keep lines with no annotations #258

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

Merged
epage merged 2 commits into rust-lang:master from Muscraft:keep-lines
Jul 29, 2025

Conversation

Copy link
Member

@Muscraft Muscraft commented Jul 29, 2025

This PR makes it so that you can "annotate" text with AnnotationKind::Visible to keep it from getting folded, allowing you to keep some lines around as context without underlining them with annotation characters.

error: functions are not allowed in struct definitions
 --> $DIR/struct-fn-in-definition.rs:9:5
 |
LL | struct S {
...
LL | fn foo() {}
 | ^^^^^^^^^^^
 |
 = help: unlike in C++, Java, and C#, functions are declared in `impl` blocks

@epage epage merged commit d6c6bbd into rust-lang:master Jul 29, 2025
15 checks passed
@Muscraft Muscraft deleted the keep-lines branch July 29, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /