Movatterモバイル変換


[0]ホーム

URL:


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

Fix too many anonymized line numbers#5

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@phansch
Copy link
Contributor

This expands the logic for replacing line numbers withLL so that line
numbers are only replaced, when they are actually provided.

Whenlineno isNone, noLL should be shown in the output.

This expands the logic for replacing line numbers with `LL` so that linenumbers are only replaced, when they are actually provided.When `lineno` is `None`, no `LL` should be shown in the output.
DisplayLine::Source{
lineno:None,
inline_marks: vec![],
line:DisplaySourceLine::Empty,
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Should the case ofDisplaySourceLine::Empty +Some(lineno) also be handled in some way? I didn't see any test cases for it, so I left that out for now.

@zbranieckizbraniecki merged commit860899e intorust-lang:masterJul 15, 2019
@phanschphansch deleted the fix_too_many_linenumbers branchJuly 15, 2019 19:21
phansch added a commit to phansch/rust that referenced this pull requestJul 25, 2019
This adds support for the `-Z ui-testing` flag to the newannotate-snippet diagnostic emitter.The support for the flag was added to `annotate-snippet-rs` in these PRs:*rust-lang/annotate-snippets-rs#3*rust-lang/annotate-snippets-rs#5Closesrust-lang#61811
Centril added a commit to Centril/rust that referenced this pull requestJul 26, 2019
…estebanklibrustc_errors: Support ui-testing flag in annotate-snippet emitterThis adds support for the `-Z ui-testing` flag to the newannotate-snippet diagnostic emitter.Support for the flag was added to `annotate-snippet-rs` in these PRs:*rust-lang/annotate-snippets-rs#3*rust-lang/annotate-snippets-rs#5r?@estebankClosesrust-lang#61811
Centril added a commit to Centril/rust that referenced this pull requestJul 26, 2019
…estebanklibrustc_errors: Support ui-testing flag in annotate-snippet emitterThis adds support for the `-Z ui-testing` flag to the newannotate-snippet diagnostic emitter.Support for the flag was added to `annotate-snippet-rs` in these PRs:*rust-lang/annotate-snippets-rs#3*rust-lang/annotate-snippets-rs#5r?@estebankClosesrust-lang#61811
Centril added a commit to Centril/rust that referenced this pull requestJul 26, 2019
…estebanklibrustc_errors: Support ui-testing flag in annotate-snippet emitterThis adds support for the `-Z ui-testing` flag to the newannotate-snippet diagnostic emitter.Support for the flag was added to `annotate-snippet-rs` in these PRs:*rust-lang/annotate-snippets-rs#3*rust-lang/annotate-snippets-rs#5r?@estebankClosesrust-lang#61811
Sign up for freeto 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

@phansch@zbraniecki

[8]ページ先頭

©2009-2025 Movatter.jp