Skip to content

deps: Update Rust crate annotate-snippets to 0.12.0 (libc-0.2) - #5483

Open
renovate-bot wants to merge 1 commit into
rust-lang:libc-0.2from
renovate-bot:renovate/libc-0.2-annotate-snippets-0.x
Open

deps: Update Rust crate annotate-snippets to 0.12.0 (libc-0.2)#5483
renovate-bot wants to merge 1 commit into
rust-lang:libc-0.2from
renovate-bot:renovate/libc-0.2-annotate-snippets-0.x

Conversation

@renovate-bot

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
annotate-snippets dev-dependencies minor 0.11.50.12.0

Release Notes

rust-lang/annotate-snippets-rs (annotate-snippets)

v0.12.16

Compare Source

Fixed
  • Correctly format suggestion paths when DecorStyle::Unicode #​414
  • Correctly highlight multi-line removals that leave only whitespace #​413

v0.12.15

Compare Source

Fixed
  • Source highlighting no longer misaligns when source contains zero-width or multi-width characters #​400

v0.12.14

Compare Source

Fixed
  • Don't trim middle of spans smaller than padding + margin
  • Properly handle replacement length mismatches
  • Account for "gutter" width when trimming middle of long spans
  • Account for left trim when trimming middle of long spans

v0.12.13

Compare Source

Fixed
  • Correctly handle tabs on the first and last lines of multiline Patch #​373 and #​380

v0.12.12

Compare Source

Added

v0.12.11

Compare Source

Fixed
  • Fix Unicode highlight alignment in patches #​357

v0.12.10

Compare Source

Fixed
  • Render all removed lines when multiple Patch remove lines #​353

v0.12.9

Compare Source

Fixes
  • Prefer exact prefix/suffix matches when trimming replacements #​345

v0.12.8

Compare Source

Fixes
  • No longer panic when annotating leading whitespace #​334

v0.12.7

Compare Source

Fixes
  • Correctly calculate annotation offsets when trimming unicode characters #​331

v0.12.6

Compare Source

Changed
  • Upgraded unicode-width to 0.2.2 #​326
    • This update adds support for Unicode 16 and 17, and can affect character width calculations
  • Use straight arrows for standalone Origin #​327
Fixes
  • Correctly calculate line numbers for trimmed multi-line suggestions #​321
  • Respect .fold(false) when set on suggestions #​322
  • Properly calculate the max line number width for suggestions #​323
  • Show full line when Patch span points to line end #​324

v0.12.5

Compare Source

Fixes
  • Highlight the correct span for duplicated diff lines #​318

v0.12.4

Compare Source

Fixes
  • Removed implicit padding with report starting with secondary title #​310

v0.12.3

Compare Source

Features
  • Add Title::element for less boilerplate
  • Add renderer::DEFAULT_*_STYLE to expose default styles
Documentation
  • Clarify role of Renderer::<style> methods

v0.12.2

Compare Source

Fixes
  • Duplicate multi-line annotations get treated like the are distinct #​293
  • Allow passing 0 to Snippet::line_start #​294

v0.12.1

Compare Source

Fixed
  • Correctly format suggestion paths when DecorStyle::Unicode #​414
  • Correctly highlight multi-line removals that leave only whitespace #​413

v0.12.0

Compare Source

Migration

Note that the top-level type changed from Message to Report.
Message is now a single block of text within a Report.

  • Replace Message::footer with either
    • adding a Message to a Group
    • starting a new Group
  • Replace Level::<Variant> with Level::<VARIANT>, e.g. Level::Error -> Level::ERROR
  • Instead of creating Snippets on a Message (the type returned by Level::title), add them to the Group that is created with the Title
  • Snippet::origin has been renamed to Snippet::path
  • Instead of creating an Annotation from a Level, create them from an AnnotationKind
    • AnnotationKind::Primary will automatically match the Level of the Group
    • All others existing annotations should likely be AnnotationKind::Context
  • Level::title has been replaced with Level::primary_level (for first Group) and Level::secondary_level (subsequent Groups)
  • Message::id has moved to Title::id
  • Renamed Renderer::line_no to Renderer::line_num
  • Add snippet.fold(false) if unspecified, removing snippet.fold(true) if specified
Features
  • Added unicode decor support, see renderer::DecorStyle
  • Created [Group] to indicate what all is included between the unicode begin and end decor
  • Added Level::secondary_title to allow for custom ANSI escape code styling to be applied to those Titles
  • Added AnnotationKind::Visible to force spans to be visible within a Snippet, despite code folding, without any visible marker
  • Added Origin for referencing code without the source
  • Added Group::with_level to allow Snippets without a Title
  • Added Level::no_name to hide the level name
  • Added Level::with_name to override what is rendered for that level
  • Added Title::id_url to turn Title::id into a link
  • Added Patch for displaying changes to code
Fixes
  • Switched strings to Cow<str> to allow for easier management of owned data
  • Snippet::path now accepts None
  • Annotation::label now accepts None
  • Various rendering fixes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@forking-renovate forking-renovate Bot added the stable-declined This change is breaking, difficult to backport, low priority, or otherwise not relevant for 0.2 label Sep 5, 2026
@rustbot

rustbot commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

⚠️ Warning ⚠️

  • Pull requests are usually filed against the main branch for this repo, but this one is against libc-0.2. Please double check that you specified the right target!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review stable-declined This change is breaking, difficult to backport, low priority, or otherwise not relevant for 0.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants