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 SourceAnnotation ranges and refactor tostd::fmt::Display#27

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
zbraniecki merged 3 commits intorust-lang:masterfromzzau13:master
Mar 26, 2020
Merged

Conversation

@zzau13
Copy link
Contributor

@zzau13zzau13 commentedMar 20, 2020
edited
Loading

Intest_i26 what should be the output?
panic or anything other than the label disappearing?

I would panic or even refactor to TryFrom. What you prefer

Fix#26

zbraniecki reacted with heart emoji
@zbraniecki
Copy link
Contributor

This PR looks awesome! Thank you so much!

fortest_i26 I'd panic for now. We can improve fallibility later.

@zzau13
Copy link
ContributorAuthor

Ok, should panic

@zbraniecki
Copy link
Contributor

Can you mark this PR as draft until you're ready for review? I'm excited to review it :)

@zzau13
Copy link
ContributorAuthor

It seems that the coverage is not correct.
Exactlytests/fixtures/no-color/multiline_annotation.yaml.

In thereport details:

thread 'test_fixtures' panicked at 'SourceAnnotation range `(23, 786)` is bigger than source length `766`', src/display_list/from_snippet.rs:190:9

So I think there are more bugs. So I will review that part of the logic.

@zzau13zzau13 changed the title[WIP] Undefined behaviour and minor issuesFix SourceAnnotation ranges and refactor tostd::fmt::DisplayMar 22, 2020
@zzau13
Copy link
ContributorAuthor

zzau13 commentedMar 22, 2020
edited
Loading

Should already be presentable anddebb3e2 doubles performance

@zbranieckizbraniecki self-requested a reviewMarch 22, 2020 18:49
Copy link
Contributor

@zbranieckizbraniecki left a comment

Choose a reason for hiding this comment

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

Overall - very impressive! Thank you! The patch looks great and is definitely a significant clean up!

Several leftovers:

  • the format example crashes, fix the second annotation to(21,724) (I assume the new values are a fix to calculations)
  • same with the bench
  • your branch seem to have broken color mode -cargo run --example format --features color.

@zzau13
Copy link
ContributorAuthor

zzau13 commentedMar 25, 2020
edited
Loading

The changes are already there.

A detail is that the ranges are start at 0, it should start at 1.
We would have to put much more coverage.

Well but for this PR there is already enough,

zbraniecki reacted with heart emoji

@zzau13zzau13 requested a review fromzbranieckiMarch 25, 2020 18:38
@zbranieckizbraniecki merged commit80ea580 intorust-lang:masterMar 26, 2020
@zbraniecki
Copy link
Contributor

Thank you! This looks awesome!

epage pushed a commit to epage/annotate-snippets-rs that referenced this pull requestSep 29, 2025
This PR contains the following updates:| Package | Type | Update | Change ||---|---|---|---|| [automod](https://redirect.github.com/dtolnay/automod) |dev-dependencies | patch | `1.0.14` -> `1.0.15` |---### Release Notes<details><summary>dtolnay/automod (automod)</summary>###[`v1.0.15`](https://redirect.github.com/dtolnay/automod/releases/tag/1.0.15)[CompareSource](https://redirect.github.com/dtolnay/automod/compare/1.0.14...1.0.15)-   Documentation improvements</details>---### Configuration📅 **Schedule**: Branch creation - "before 5am on the first day of themonth" (UTC), Automerge - At any time (no schedule defined).🚦 **Automerge**: Enabled.♻ **Rebasing**: Whenever PR is behind base branch, or you tick therebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about this updateagain.---- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, checkthis box---This PR was generated by [Mend Renovate](https://mend.io/renovate/).View the [repository joblog](https://developer.mend.io/github/epage/_rust).<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@zbranieckizbranieckizbraniecki approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Error from Snippet to DisplayList

2 participants

@zzau13@zbraniecki

[8]ページ先頭

©2009-2025 Movatter.jp