diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-15 17:46:36 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-15 17:46:36 +0000 |
commit | 148e3d0f6a28f57565538dca7d9c0f5f726a5908 (patch) | |
tree | cd7e8a549ed50efea52d171f6e8d6b7827a9974f | |
parent | 92c03795602c75576a0b3b3fd20cb21c8529fc82 (diff) | |
parent | 26ef7e39f4d7cf150ac855e88efd4fd121f7e578 (diff) |
Merge #7287
7287: Make SyntaxPtr lookup logarithmic r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
-rw-r--r-- | Cargo.lock | 40 | ||||
-rw-r--r-- | crates/syntax/Cargo.toml | 2 |
2 files changed, 31 insertions, 11 deletions
diff --git a/Cargo.lock b/Cargo.lock index 9498d8bf3..dcf939d60 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
@@ -323,7 +323,7 @@ dependencies = [ | |||
323 | "const_fn", | 323 | "const_fn", |
324 | "crossbeam-utils 0.8.1", | 324 | "crossbeam-utils 0.8.1", |
325 | "lazy_static", | 325 | "lazy_static", |
326 | "memoffset", | 326 | "memoffset 0.6.1", |
327 | "scopeguard", | 327 | "scopeguard", |
328 | ] | 328 | ] |
329 | 329 | ||
@@ -910,6 +910,15 @@ dependencies = [ | |||
910 | 910 | ||
911 | [[package]] | 911 | [[package]] |
912 | name = "memoffset" | 912 | name = "memoffset" |
913 | version = "0.5.6" | ||
914 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
915 | checksum = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa" | ||
916 | dependencies = [ | ||
917 | "autocfg", | ||
918 | ] | ||
919 | |||
920 | [[package]] | ||
921 | name = "memoffset" | ||
913 | version = "0.6.1" | 922 | version = "0.6.1" |
914 | source = "registry+https://github.com/rust-lang/crates.io-index" | 923 | source = "registry+https://github.com/rust-lang/crates.io-index" |
915 | checksum = "157b4208e3059a8f9e78d559edc658e13df41410cb3ae03979c83130067fdd87" | 924 | checksum = "157b4208e3059a8f9e78d559edc658e13df41410cb3ae03979c83130067fdd87" |
@@ -1316,14 +1325,14 @@ checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189" | |||
1316 | 1325 | ||
1317 | [[package]] | 1326 | [[package]] |
1318 | name = "rowan" | 1327 | name = "rowan" |
1319 | version = "0.10.0" | 1328 | version = "0.10.1" |
1320 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1329 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1321 | checksum = "1e081ed6eacce09e243b619ab90f069c27b0cff8a6d0eb8ad2ec935b65853798" | 1330 | checksum = "ca9516377b32367ade2fbe1846c75afa4827c8976f1c7d05d5473573d18a1a04" |
1322 | dependencies = [ | 1331 | dependencies = [ |
1323 | "rustc-hash", | 1332 | "rustc-hash", |
1324 | "smol_str", | 1333 | "smol_str", |
1325 | "text-size", | 1334 | "text-size", |
1326 | "thin-dst", | 1335 | "triomphe", |
1327 | ] | 1336 | ] |
1328 | 1337 | ||
1329 | [[package]] | 1338 | [[package]] |
@@ -1569,6 +1578,12 @@ dependencies = [ | |||
1569 | ] | 1578 | ] |
1570 | 1579 | ||
1571 | [[package]] | 1580 | [[package]] |
1581 | name = "stable_deref_trait" | ||
1582 | version = "1.2.0" | ||
1583 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1584 | checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" | ||
1585 | |||
1586 | [[package]] | ||
1572 | name = "stdx" | 1587 | name = "stdx" |
1573 | version = "0.0.0" | 1588 | version = "0.0.0" |
1574 | dependencies = [ | 1589 | dependencies = [ |
@@ -1655,12 +1670,6 @@ dependencies = [ | |||
1655 | ] | 1670 | ] |
1656 | 1671 | ||
1657 | [[package]] | 1672 | [[package]] |
1658 | name = "thin-dst" | ||
1659 | version = "1.1.0" | ||
1660 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1661 | checksum = "db3c46be180f1af9673ebb27bc1235396f61ef6965b3fe0dbb2e624deb604f0e" | ||
1662 | |||
1663 | [[package]] | ||
1664 | name = "thread_local" | 1673 | name = "thread_local" |
1665 | version = "1.0.1" | 1674 | version = "1.0.1" |
1666 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1675 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1802,6 +1811,17 @@ dependencies = [ | |||
1802 | ] | 1811 | ] |
1803 | 1812 | ||
1804 | [[package]] | 1813 | [[package]] |
1814 | name = "triomphe" | ||
1815 | version = "0.1.2" | ||
1816 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1817 | checksum = "6e9d872053cf9e5a833d8c1dd772cdc38ab66a908129d6f73c049c986161d07c" | ||
1818 | dependencies = [ | ||
1819 | "memoffset 0.5.6", | ||
1820 | "serde", | ||
1821 | "stable_deref_trait", | ||
1822 | ] | ||
1823 | |||
1824 | [[package]] | ||
1805 | name = "tt" | 1825 | name = "tt" |
1806 | version = "0.0.0" | 1826 | version = "0.0.0" |
1807 | dependencies = [ | 1827 | dependencies = [ |
diff --git a/crates/syntax/Cargo.toml b/crates/syntax/Cargo.toml index cfeaed9e6..ad8b797fe 100644 --- a/crates/syntax/Cargo.toml +++ b/crates/syntax/Cargo.toml | |||
@@ -12,7 +12,7 @@ doctest = false | |||
12 | 12 | ||
13 | [dependencies] | 13 | [dependencies] |
14 | itertools = "0.10.0" | 14 | itertools = "0.10.0" |
15 | rowan = "0.10.0" | 15 | rowan = "0.10.1" |
16 | rustc_lexer = { version = "697.0.0", package = "rustc-ap-rustc_lexer" } | 16 | rustc_lexer = { version = "697.0.0", package = "rustc-ap-rustc_lexer" } |
17 | rustc-hash = "1.1.0" | 17 | rustc-hash = "1.1.0" |
18 | arrayvec = "0.5.1" | 18 | arrayvec = "0.5.1" |