Skip to content

Commit 477f52c

Browse files
rchen152facebook-github-bot
authored andcommitted
Import ruff_annotate_snippets
Summary: I want to use [annotate-snippets](https://github.com/rust-lang/annotate-snippets-rs) to format code snippets in error messages. Unfortunately, annotate-snippets [always prints a non-customizable level label](rust-lang/annotate-snippets-rs#167), and a [proposed patch](rust-lang/annotate-snippets-rs#171) to fix this has been sitting unreviewed since January. Ruff has forked annotate-snippets and applied this patch, along with a couple other bug fixes. We could do the same thing (fork annotate-snippets ourselves), but it's simpler for now to reuse the Ruff fork. I followed the instructions here to bring in a new Rust library: https://www.internalfb.com/wiki/Rust/Third_Party_Libraries/Adding_or_Updating_Libraries/. Reviewed By: yangdanny97 Differential Revision: D76367898 fbshipit-source-id: 2b4727790c8b7d1d7b7028bc34e2f577cef8864c
1 parent f08416b commit 477f52c

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

Cargo.lock

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)