Skip to content

Commit 73da0b3

Browse files
authored
Unrolled build for #149077
Rollup merge of #149077 - Muscraft:annotate-snippets-simd, r=davidtwco feat: Enable annotate-snippets' simd feature `annotate-snippets` `simd` feature enables the use of `memchr` when searching for `char`/`str`. This should hopefully improve performance when [`annotate-snippets` is passed large `source`](#148188 (comment)).
2 parents 4b1b6dd + 60427ac commit 73da0b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
7979
checksum = "a44baf24dd94e781f74dfe67ffee75a09a57971ddf0f615a178b4f6d404b48ff"
8080
dependencies = [
8181
"anstyle",
82+
"memchr",
8283
"unicode-width 0.2.2",
8384
]
8485

compiler/rustc_errors/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2024"
55

66
[dependencies]
77
# tidy-alphabetical-start
8-
annotate-snippets = "0.12.9"
8+
annotate-snippets = { version = "0.12.9", features = ["simd"] }
99
anstream = "0.6.20"
1010
anstyle = "1.0.13"
1111
derive_setters = "0.1.6"

0 commit comments

Comments
 (0)