1738: ⬆️ insta r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2019-08-29 14:04:28 +00:00 committed by GitHub
commit 7d72ca8000
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 1446 additions and 1486 deletions

180
Cargo.lock generated
View file

@ -76,25 +76,6 @@ name = "bitflags"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "block-buffer"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"block-padding 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
"generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "block-padding"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "bstr"
version = "0.2.7"
@ -103,11 +84,6 @@ dependencies = [
"memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "byte-tools"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "byteorder"
version = "1.3.2"
@ -206,15 +182,9 @@ dependencies = [
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
"num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)",
"num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
"time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "ci_info"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "clap"
version = "2.33.0"
@ -261,6 +231,21 @@ dependencies = [
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "console"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"clicolors-control 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"encode_unicode 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"termios 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"unicode-width 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)",
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "crossbeam"
version = "0.7.2"
@ -345,14 +330,6 @@ name = "difference"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "digest"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "drop_bomb"
version = "0.1.4"
@ -409,11 +386,6 @@ dependencies = [
"synstructure 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "fake-simd"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "filetime"
version = "0.2.5"
@ -512,14 +484,6 @@ dependencies = [
"serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "generic-array"
version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"typenum 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "getrandom"
version = "0.1.10"
@ -602,18 +566,12 @@ dependencies = [
[[package]]
name = "insta"
version = "0.10.1"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"chrono 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)",
"ci_info 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"console 0.7.7 (registry+https://github.com/rust-lang/crates.io-index)",
"console 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"pest 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"pest_derive 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"ron 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_yaml 0.8.9 (registry+https://github.com/rust-lang/crates.io-index)",
@ -743,11 +701,6 @@ dependencies = [
"url 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "maplit"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "matches"
version = "0.1.8"
@ -879,11 +832,6 @@ dependencies = [
"parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "opaque-debug"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "ordermap"
version = "0.3.5"
@ -938,45 +886,6 @@ name = "percent-encoding"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "pest"
version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"ucd-trie 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "pest_derive"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"pest 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"pest_generator 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "pest_generator"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"pest 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"pest_meta 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)",
"quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)",
"syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "pest_meta"
version = "2.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"maplit 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
"pest 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"sha-1 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "petgraph"
version = "0.4.13"
@ -1134,7 +1043,7 @@ dependencies = [
"chalk-rust-ir 0.1.0 (git+https://github.com/rust-lang/chalk.git)",
"chalk-solve 0.1.0 (git+https://github.com/rust-lang/chalk.git)",
"ena 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)",
"insta 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
"insta 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"lalrpop-intern 0.15.1 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"once_cell 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1156,7 +1065,7 @@ version = "0.1.0"
dependencies = [
"format-buf 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"fst 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"insta 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
"insta 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
"itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
"join_to_string 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
@ -1529,16 +1438,6 @@ dependencies = [
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "ron"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)",
"bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "ron"
version = "0.5.1"
@ -1688,17 +1587,6 @@ dependencies = [
"yaml-rust 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "sha-1"
version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"block-buffer 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
"digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
"fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"opaque-debug 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "slab"
version = "0.4.2"
@ -1842,16 +1730,6 @@ dependencies = [
"winapi 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "typenum"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "ucd-trie"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "unicase"
version = "2.4.0"
@ -2006,10 +1884,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum bit-set 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e84c238982c4b1e1ee668d136c510c67a13465279c0cb367ea6baf6310620a80"
"checksum bit-vec 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f59bbe95d4e52a6398ec21238d31577f2b28a9d86807f06ca59d191d8440d0bb"
"checksum bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3d155346769a6855b86399e9bc3814ab343cd3d62c7e985113d46a0ec3c281fd"
"checksum block-buffer 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b"
"checksum block-padding 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "6d4dc3af3ee2e12f3e5d224e5e1e3d73668abbeb69e566d361f7d5563a4fdf09"
"checksum bstr 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "94cdf78eb7e94c566c1f5dbe2abf8fc70a548fc902942a48c4b3a98b48ca9ade"
"checksum byte-tools 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7"
"checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5"
"checksum c2-chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7d64d04786e0f528460fc884753cf8dddcc466be308f6026f8e355c41a0e4101"
"checksum cargo_metadata 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "700b3731fd7d357223d0000f4dbf1808401b694609035c3c411fbc0cd375c426"
@ -2021,11 +1896,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum chalk-rust-ir 0.1.0 (git+https://github.com/rust-lang/chalk.git)" = "<none>"
"checksum chalk-solve 0.1.0 (git+https://github.com/rust-lang/chalk.git)" = "<none>"
"checksum chrono 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "77d81f58b7301084de3b958691458a53c3f7e0b1d702f77e550b6a88e3a88abe"
"checksum ci_info 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e5e881307a989a3a5e20d52a32cc05950e3c2178cccfcc9428271a6cde09f902"
"checksum clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5067f5bb2d80ef5d68b4c87db81601f0b75bca627bc2ef76b141d7b846a3c6d9"
"checksum clicolors-control 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "73abfd4c73d003a674ce5d2933fca6ce6c42480ea84a5ffe0a2dc39ed56300f9"
"checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
"checksum console 0.7.7 (registry+https://github.com/rust-lang/crates.io-index)" = "8ca57c2c14b8a2bf3105bc9d15574aad80babf6a9c44b1058034cdf8bd169628"
"checksum console 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b147390a412132d75d10dd3b7b175a69cf5fd95032f7503c7091b8831ba10242"
"checksum crossbeam 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2d818a4990769aac0c7ff1360e233ef3a41adcb009ebb2036bf6915eb0f6b23c"
"checksum crossbeam-channel 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "c8ec7fcd21571dc78f96cc96243cab8d8f035247c3efd16c687be154c3fa9efa"
"checksum crossbeam-deque 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)" = "05e44b8cf3e1a625844d1750e1f7820da46044ff6d28f4d43e455ba3e5bb2c13"
@ -2035,7 +1910,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum crossbeam-utils 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)" = "04973fa96e96579258a5091af6003abde64af786b860f18622b82e026cca60e6"
"checksum derive-new 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)" = "71f31892cd5c62e414316f2963c5689242c43d8e7bbcaaeca97e5e28c95d91d9"
"checksum difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
"checksum digest 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5"
"checksum drop_bomb 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "69b26e475fd29098530e709294e94e661974c851aed42512793f120fed4e199f"
"checksum dtoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "ea57b42383d091c85abcc2706240b94ab2a8fa1fc81c10ff23c4de06e2a90b5e"
"checksum either 1.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "5527cfe0d098f36e3f8839852688e63c8fff1c90b2b405aef730615f9a7bcf7b"
@ -2044,7 +1918,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum encode_unicode 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "90b2c9496c001e8cb61827acdefad780795c42264c137744cae6f7d9e3450abd"
"checksum failure 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "795bd83d3abeb9220f257e597aa0080a508b27533824adf336529648f6abf7e2"
"checksum failure_derive 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ea1063915fd7ef4309e222a5a07cf9c319fb9c7836b1f89b85458672dbb127e1"
"checksum fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed"
"checksum filetime 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "2f8c63033fcba1f51ef744505b3cad42510432b904c062afa67ad7ece008429d"
"checksum fixedbitset 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "86d4de0081402f5e88cdac65c8dcdcc73118c1a7a465e2a05f0da05843a8ea33"
"checksum flexi_logger 0.14.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2be2727ae1f60711d1991788605245e70cc500bd1d92edb909af160634e1a869"
@ -2057,7 +1930,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum fuchsia-cprng 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"
"checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
"checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
"checksum generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)" = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec"
"checksum getrandom 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "6171a6cc63fbabbe27c2b5ee268e8b7fe5dc1eb0dd2dfad537c1dfed6f69117e"
"checksum glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
"checksum globset 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "925aa2cac82d8834e2b2a4415b6f6879757fb5c0928fc445ae76461a12eed8f2"
@ -2067,7 +1939,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum indicatif 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2c60da1c9abea75996b70a931bba6c750730399005b61ccd853cee50ef3d0d0c"
"checksum inotify 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "40b54539f3910d6f84fbf9a643efd6e3aa6e4f001426c0329576128255994718"
"checksum inotify-sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "e74a1aa87c59aeff6ef2cc2fa62d41bc43f54952f55652656b18a02fd5e356c0"
"checksum insta 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fcb8917b02e8fee27da19291be792fa53acec68ea0b7a45a914dcb80a67d42ab"
"checksum insta 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "23f83ab4ee86f38b292f0420c27fd412690a4baa9ea0ad4e3fa624bf34379b76"
"checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08"
"checksum itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5b8467d9c1cebe26feb08c640139247fac215782d35371ade9a2136ed6085358"
"checksum itoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "501266b7edd0174f8530248f87f99c88fbe60ca4ef3dd486835b8d8d53136f7f"
@ -2085,7 +1957,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum lock_api 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f8912e782533a93a167888781b836336a6ca5da6175c05944c86cf28c31104dc"
"checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"
"checksum lsp-types 0.60.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fe3edefcd66dde1f7f1df706f46520a3c93adc5ca4bc5747da6621195e894efd"
"checksum maplit 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "08cbb6b4fef96b6d77bfc40ec491b1690c779e77b05cd9f07f787ed376fd4c43"
"checksum matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08"
"checksum memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e"
"checksum memoffset 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ce6075db033bbbb7ee5a0bbd3a3186bbae616f57fb001c485c7ff77955f8177f"
@ -2100,17 +1971,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcef43580c035376c0705c42792c294b66974abbfd2789b511784023f71f3273"
"checksum number_prefix 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "dbf9993e59c894e3c08aa1c2712914e9e6bf1fcbfc6bef283e2183df345a4fee"
"checksum once_cell 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1824583b0e4dc0c1716eea4fb51a9ca2634943f0b07fd929e79af6aeb5a513cc"
"checksum opaque-debug 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c"
"checksum ordermap 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "a86ed3f5f244b372d6b1a00b72ef7f8876d0bc6a78a4c9985c53614041512063"
"checksum parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252"
"checksum parking_lot_core 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b"
"checksum paste 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "423a519e1c6e828f1e73b720f9d9ed2fa643dce8a7737fb43235ce0b41eeaa49"
"checksum paste-impl 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "4214c9e912ef61bf42b81ba9a47e8aad1b2ffaf739ab162bf96d1e011f54e6c5"
"checksum percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
"checksum pest 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "933085deae3f32071f135d799d75667b63c8dc1f4537159756e3d4ceab41868c"
"checksum pest_derive 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0"
"checksum pest_generator 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "63120576c4efd69615b5537d3d052257328a4ca82876771d6944424ccfd9f646"
"checksum pest_meta 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f249ea6de7c7b7aba92b4ff4376a994c6dbd98fd2166c89d5c4947397ecb574d"
"checksum petgraph 0.4.13 (registry+https://github.com/rust-lang/crates.io-index)" = "9c3659d1ee90221741f65dd128d9998311b0e40c5d3c23a62445938214abce4f"
"checksum ppv-lite86 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e3cbf9f658cdb5000fcf6f362b8ea2ba154b9f146a61c7a20d647034c6b6561b"
"checksum proc-macro-hack 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e688f31d92ffd7c1ddc57a1b4e6d773c0f2a14ee437a4b0a4f5a69c80eb221c8"
@ -2145,7 +2011,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum regex-syntax 0.6.11 (registry+https://github.com/rust-lang/crates.io-index)" = "b143cceb2ca5e56d5671988ef8b15615733e7ee16cd348e064333b251b89343f"
"checksum relative-path 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "0e7790c7f1cc73d831d28dc5a7deb316a006e7848e6a7f467cdb10a0a9e0fb1c"
"checksum remove_dir_all 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4a83fa3702a688b9359eccba92d153ac33fd2e8462f9e0e3fdf155239ea7792e"
"checksum ron 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "17f52a24414403f81528b67488cf8edc4eda977d3af1646bb6b106a600ead78f"
"checksum ron 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2ece421e0c4129b90e4a35b6f625e472e96c552136f5093a2f4fa2bbb75a62d5"
"checksum rowan 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dc2b79612dedc9004083a61448eb669d336d56690aab29fbd7249e8c8ab41d8c"
"checksum rustc-demangle 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783"
@ -2163,7 +2028,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704"
"checksum serde_repr 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "cd02c7587ec314570041b2754829f84d873ced14a96d1fd1823531e11db40573"
"checksum serde_yaml 0.8.9 (registry+https://github.com/rust-lang/crates.io-index)" = "38b08a9a90e5260fe01c6480ec7c811606df6d3a660415808c3c3fa8ed95b582"
"checksum sha-1 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "23962131a91661d643c98940b20fcaffe62d776a823247be80a48fcb8b6fce68"
"checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
"checksum smallvec 0.6.10 (registry+https://github.com/rust-lang/crates.io-index)" = "ab606a9c5e214920bb66c458cd7be8ef094f813f20fe77a54cc7dbfff220d4b7"
"checksum smol_str 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "590700be3630457c56f8c73c0ea39881476ad7076cd84057d44f4f38f79914fb"
@ -2179,8 +2043,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum thread_local 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c6b53e329000edc2b34dbe8545fd20e55a333362d0a321909685a19bd28c3f1b"
"checksum threadpool 1.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e2f0c90a5f3459330ac8bc0d2f879c693bb7a2f59689c1083fc4ef83834da865"
"checksum time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)" = "db8dcfca086c1143c9270ac42a2bbd8a7ee477b78ac8e45b19abfb0cbede4b6f"
"checksum typenum 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "612d636f949607bdf9b123b4a6f6d966dedf3ff669f7f045890d3a4a73948169"
"checksum ucd-trie 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "8f00ed7be0c1ff1e24f46c3d2af4859f7e863672ba3a6e92e7cff702bf9f06c2"
"checksum unicase 2.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a84e5511b2a947f3ae965dcb29b13b7b1691b6e7332cf5dbc1744138d5acb7f6"
"checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5"
"checksum unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "141339a08b982d942be2ca06ff8b076563cbe223d1befd5450716790d44e2426"

View file

@ -27,4 +27,4 @@ chalk-ir = { git = "https://github.com/rust-lang/chalk.git" }
lalrpop-intern = "0.15.1"
[dev-dependencies]
insta = "0.10.0"
insta = "0.11.0"

View file

@ -75,7 +75,7 @@ impl MockDatabase {
}
pub fn diagnostics(&self) -> String {
let mut buf = String::from("\n");
let mut buf = String::new();
let mut files: Vec<FileId> = self.files.values().copied().collect();
files.sort();
for file in files {

View file

@ -6,7 +6,7 @@ mod mods;
use std::sync::Arc;
use insta::assert_snapshot_matches;
use insta::assert_snapshot;
use ra_db::SourceDatabase;
use test_utils::covers;
@ -97,7 +97,7 @@ fn crate_def_map_smoke_test() {
enum E { V }
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
E: t
S: t v
@ -130,7 +130,7 @@ fn bogus_paths() {
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
S: t v
foo: t
@ -153,7 +153,7 @@ fn use_as() {
pub struct Baz;
",
);
assert_snapshot_matches!(map,
assert_snapshot!(map,
@r###"
crate
Foo: t v
@ -182,7 +182,7 @@ fn use_trees() {
pub enum Quux {};
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
Quux: t
@ -215,7 +215,7 @@ fn re_exports() {
pub struct Baz;
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
foo: t
@ -250,7 +250,7 @@ fn std_prelude() {
"test_crate": ("/lib.rs", []),
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Bar: t v
Baz: t v
@ -267,7 +267,7 @@ fn can_import_enum_variant() {
use self::E::V;
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
E: t
V: t v
@ -299,7 +299,7 @@ fn edition_2015_imports() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
bar: t
foo: t
@ -326,7 +326,7 @@ fn item_map_using_self() {
pub struct Baz;
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
foo: t
@ -355,7 +355,7 @@ fn item_map_across_crates() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
"###);
@ -383,7 +383,7 @@ fn extern_crate_rename() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
alloc_crate: t
sync: t
@ -415,7 +415,7 @@ fn extern_crate_rename_2015_edition() {
},
);
assert_snapshot_matches!(map,
assert_snapshot!(map,
@r###"
crate
alloc_crate: t
@ -449,7 +449,7 @@ fn import_across_source_roots() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
C: t v
"###);
@ -476,7 +476,7 @@ fn reexport_across_crates() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
"###);
@ -499,7 +499,7 @@ fn values_dont_shadow_extern_crates() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Bar: t v
foo: v

View file

@ -17,7 +17,7 @@ fn glob_1() {
pub struct Baz;
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
Foo: t v
@ -53,7 +53,7 @@ fn glob_2() {
pub use super::*;
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
Foo: t v
@ -89,7 +89,7 @@ fn glob_across_crates() {
"test_crate": ("/lib.rs", []),
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
"###
@ -108,7 +108,7 @@ fn glob_enum() {
use self::Foo::*;
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Bar: t v
Baz: t v

View file

@ -17,7 +17,7 @@ fn macro_rules_are_globally_visible() {
structs!(Bar, Baz);
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Foo: t v
nested: t
@ -45,7 +45,7 @@ fn macro_rules_can_define_modules() {
struct X;
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
m: m
n1: t
@ -82,7 +82,7 @@ fn macro_rules_from_other_crates_are_visible() {
"foo": ("/lib.rs", []),
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Bar: t v
Foo: t v
@ -129,7 +129,7 @@ fn unexpanded_macro_should_expand_by_fixedpoint_loop() {
"foo": ("/lib.rs", []),
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Foo: t v
bar: m

View file

@ -19,7 +19,7 @@ fn name_res_works_for_broken_modules() {
pub struct Baz;
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: _
"###);
@ -41,7 +41,7 @@ fn module_resolution_works_for_non_standard_filenames() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Bar: t v
foo: t
@ -67,7 +67,7 @@ fn module_resolution_works_for_raw_modules() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Bar: t v
async: t
@ -94,7 +94,7 @@ fn module_resolution_decl_path() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Bar: t v
foo: t
@ -110,7 +110,7 @@ fn module_resolution_module_with_path_in_mod_rs() {
r###"
//- /main.rs
mod foo;
//- /foo/mod.rs
#[path = "baz.rs"]
pub mod bar;
@ -125,7 +125,7 @@ fn module_resolution_module_with_path_in_mod_rs() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -144,7 +144,7 @@ fn module_resolution_module_with_path_non_crate_root() {
r###"
//- /main.rs
mod foo;
//- /foo.rs
#[path = "baz.rs"]
pub mod bar;
@ -159,7 +159,7 @@ fn module_resolution_module_with_path_non_crate_root() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -189,7 +189,7 @@ fn module_resolution_module_decl_path_super() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
foo: t
@ -215,7 +215,7 @@ fn module_resolution_explicit_path_mod_rs() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -243,7 +243,7 @@ fn module_resolution_relative_path() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -274,7 +274,7 @@ fn module_resolution_relative_path_2() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -302,7 +302,7 @@ fn module_resolution_explicit_path_mod_rs_2() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -327,7 +327,7 @@ fn module_resolution_explicit_path_mod_rs_with_win_separator() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -354,7 +354,7 @@ fn module_resolution_decl_inside_inline_module_with_path_attribute() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -383,7 +383,7 @@ fn module_resolution_decl_inside_inline_module() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -413,7 +413,7 @@ fn module_resolution_decl_inside_inline_module_2_with_path_attribute() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -444,7 +444,7 @@ fn module_resolution_decl_inside_inline_module_3() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -475,7 +475,7 @@ fn module_resolution_decl_inside_inline_module_empty_path() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -503,7 +503,7 @@ fn module_resolution_decl_empty_path() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -530,7 +530,7 @@ fn module_resolution_decl_inside_inline_module_relative_path() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -561,7 +561,7 @@ fn module_resolution_decl_inside_inline_module_in_crate_root() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
Baz: t v
foo: t
@ -596,7 +596,7 @@ fn module_resolution_decl_inside_inline_module_in_mod_rs() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -634,7 +634,7 @@ fn module_resolution_decl_inside_inline_module_in_non_crate_root() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -672,7 +672,7 @@ fn module_resolution_decl_inside_inline_module_in_non_crate_root_2() {
},
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
@ -701,8 +701,8 @@ fn unresolved_module_diagnostics() {
)
.diagnostics();
assert_snapshot_matches!(diagnostics, @r###"
"mod bar;": unresolved module
"###
assert_snapshot!(diagnostics, @r###"
"mod bar;": unresolved module
"###
);
}

View file

@ -12,7 +12,7 @@ fn primitive_reexport() {
pub use i32 as int;
",
);
assert_snapshot_matches!(map, @r###"
assert_snapshot!(map, @r###"
crate
foo: t
int: t

File diff suppressed because it is too large Load diff

View file

@ -27,7 +27,7 @@ test_utils = { path = "../test_utils" }
ra_assists = { path = "../ra_assists" }
[dev-dependencies]
insta = "0.10.0"
insta = "0.11.0"
[dev-dependencies.proptest]
version = "0.9.0"

View file

@ -68,7 +68,7 @@ fn complete_methods(acc: &mut Completions, ctx: &CompletionContext, receiver: Ty
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn do_ref_completion(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Reference)
@ -76,7 +76,7 @@ mod tests {
#[test]
fn test_struct_field_completion() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A { the_field: u32 }
@ -102,7 +102,7 @@ mod tests {
#[test]
fn test_struct_field_completion_self() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A {
@ -144,7 +144,7 @@ mod tests {
#[test]
fn test_struct_field_completion_autoderef() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A { the_field: (u32, i32) }
@ -180,7 +180,7 @@ mod tests {
#[test]
fn test_no_struct_field_completion_for_method_call() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A { the_field: u32 }
@ -195,7 +195,7 @@ mod tests {
#[test]
fn test_method_completion() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A {}
@ -224,7 +224,7 @@ mod tests {
#[test]
fn test_trait_method_completion() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A {}
@ -252,7 +252,7 @@ mod tests {
#[test]
fn test_trait_method_completion_deduplicated() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A {}
@ -280,7 +280,7 @@ mod tests {
#[test]
fn test_no_non_self_method() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A {}
@ -298,7 +298,7 @@ mod tests {
#[test]
fn test_method_attr_filtering() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A {}
@ -331,7 +331,7 @@ mod tests {
#[test]
fn test_tuple_field_completion() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
fn foo() {
@ -365,7 +365,7 @@ mod tests {
#[test]
fn test_tuple_field_inference() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
pub struct S;
@ -400,7 +400,7 @@ mod tests {
#[test]
fn test_completion_works_in_consts() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_ref_completion(
r"
struct A { the_field: u32 }
@ -426,7 +426,7 @@ mod tests {
#[test]
fn test_completion_await_impls_future() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_completion(
r###"
//- /main.rs

View file

@ -51,7 +51,7 @@ pub(super) fn complete_fn_param(acc: &mut Completions, ctx: &CompletionContext)
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn do_magic_completion(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Magic)
@ -59,7 +59,7 @@ mod tests {
#[test]
fn test_param_completion_last_param() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_magic_completion(
r"
fn foo(file_id: FileId) {}
@ -83,7 +83,7 @@ mod tests {
#[test]
fn test_param_completion_nth_param() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_magic_completion(
r"
fn foo(file_id: FileId) {}
@ -107,7 +107,7 @@ mod tests {
#[test]
fn test_param_completion_trait_param() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_magic_completion(
r"
pub(crate) trait SourceRoot {

View file

@ -113,7 +113,7 @@ fn complete_return(
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn do_keyword_completion(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Keyword)
@ -121,7 +121,7 @@ mod tests {
#[test]
fn completes_keywords_in_use_stmt() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
use <|>
@ -152,7 +152,7 @@ mod tests {
]"###
);
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
use a::<|>
@ -176,7 +176,7 @@ mod tests {
]"###
);
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
use a::{b, <|>}
@ -203,7 +203,7 @@ mod tests {
#[test]
fn completes_various_keywords_in_function() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn quux() {
@ -253,7 +253,7 @@ mod tests {
#[test]
fn completes_else_after_if() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn quux() {
@ -319,7 +319,7 @@ mod tests {
#[test]
fn test_completion_return_value() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn quux() -> i32 {
@ -366,7 +366,7 @@ mod tests {
},
]"###
);
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn quux() {
@ -417,7 +417,7 @@ mod tests {
#[test]
fn dont_add_semi_after_return_if_not_a_statement() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn quux() -> i32 {
@ -469,7 +469,7 @@ mod tests {
#[test]
fn last_return_in_block_has_semi() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn quux() -> i32 {
@ -517,7 +517,7 @@ mod tests {
},
]"###
);
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn quux() -> i32 {
@ -571,7 +571,7 @@ mod tests {
#[test]
fn completes_break_and_continue_in_loops() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn quux() -> i32 {
@ -633,7 +633,7 @@ mod tests {
);
// No completion: lambda isolates control flow
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn quux() -> i32 {
@ -683,7 +683,7 @@ mod tests {
#[test]
fn no_semi_after_break_continue_in_expr() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_keyword_completion(
r"
fn f() {

View file

@ -79,7 +79,7 @@ mod tests {
use test_utils::covers;
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn do_reference_completion(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Reference)
@ -120,7 +120,7 @@ mod tests {
#[test]
fn completes_mod_with_docs() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
use self::my<|>;
@ -149,7 +149,7 @@ mod tests {
#[test]
fn completes_use_item_starting_with_self() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
use self::m::<|>;
@ -173,7 +173,7 @@ mod tests {
#[test]
fn completes_use_item_starting_with_crate() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -204,7 +204,7 @@ mod tests {
#[test]
fn completes_nested_use_tree() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -235,7 +235,7 @@ mod tests {
#[test]
fn completes_deeply_nested_use_tree() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -263,7 +263,7 @@ mod tests {
#[test]
fn completes_enum_variant() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -306,7 +306,7 @@ mod tests {
#[test]
fn completes_enum_variant_with_details() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -363,7 +363,7 @@ mod tests {
#[test]
fn completes_struct_associated_method() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -396,7 +396,7 @@ mod tests {
#[test]
fn completes_struct_associated_const() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -429,7 +429,7 @@ mod tests {
#[test]
fn completes_struct_associated_type() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -462,7 +462,7 @@ mod tests {
#[test]
fn completes_enum_associated_method() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -495,7 +495,7 @@ mod tests {
#[test]
fn completes_union_associated_method() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -528,7 +528,7 @@ mod tests {
#[test]
fn completes_use_paths_across_crates() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /main.rs
@ -554,7 +554,7 @@ mod tests {
#[test]
fn completes_type_alias() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
struct S;

View file

@ -28,7 +28,7 @@ pub(super) fn complete_pattern(acc: &mut Completions, ctx: &CompletionContext) {
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn complete(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Reference)
@ -53,7 +53,7 @@ mod tests {
}
",
);
assert_debug_snapshot_matches!(completions, @r###"
assert_debug_snapshot!(completions, @r###"
[
CompletionItem {
label: "E",

View file

@ -72,7 +72,7 @@ pub(super) fn complete_postfix(acc: &mut Completions, ctx: &CompletionContext) {
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn do_postfix_completion(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Postfix)
@ -80,7 +80,7 @@ mod tests {
#[test]
fn postfix_completion_works_for_trivial_path_expression() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_postfix_completion(
r#"
fn main() {
@ -152,7 +152,7 @@ mod tests {
#[test]
fn some_postfix_completions_ignored() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_postfix_completion(
r#"
fn main() {

View file

@ -23,7 +23,7 @@ pub(super) fn complete_record_literal(acc: &mut Completions, ctx: &CompletionCon
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn complete(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Reference)
@ -39,7 +39,7 @@ mod tests {
}
",
);
assert_debug_snapshot_matches!(completions, @r###"
assert_debug_snapshot!(completions, @r###"
[
CompletionItem {
label: "the_field",
@ -65,7 +65,7 @@ mod tests {
}
",
);
assert_debug_snapshot_matches!(completions, @r###"
assert_debug_snapshot!(completions, @r###"
[
CompletionItem {
label: "a",
@ -91,7 +91,7 @@ mod tests {
}
",
);
assert_debug_snapshot_matches!(completions, @r###"
assert_debug_snapshot!(completions, @r###"
[
CompletionItem {
label: "b",
@ -116,7 +116,7 @@ mod tests {
}
",
);
assert_debug_snapshot_matches!(completions, @r###"
assert_debug_snapshot!(completions, @r###"
[
CompletionItem {
label: "a",

View file

@ -22,7 +22,7 @@ pub(super) fn complete_record_pattern(acc: &mut Completions, ctx: &CompletionCon
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn complete(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Reference)
@ -41,7 +41,7 @@ mod tests {
}
",
);
assert_debug_snapshot_matches!(completions, @r###"
assert_debug_snapshot!(completions, @r###"
[
CompletionItem {
label: "foo",
@ -70,7 +70,7 @@ mod tests {
}
",
);
assert_debug_snapshot_matches!(completions, @r###"
assert_debug_snapshot!(completions, @r###"
[
CompletionItem {
label: "bar",

View file

@ -122,7 +122,7 @@ impl ImportResolver {
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn do_reference_completion(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Reference)
@ -130,7 +130,7 @@ mod tests {
#[test]
fn completes_bindings_from_let() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
fn quux(x: i32) {
@ -171,7 +171,7 @@ mod tests {
#[test]
fn completes_bindings_from_if_let() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
fn quux() {
@ -215,7 +215,7 @@ mod tests {
#[test]
fn completes_bindings_from_for() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
fn quux() {
@ -247,7 +247,7 @@ mod tests {
#[test]
fn completes_generic_params() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
fn quux<T>() {
@ -277,7 +277,7 @@ mod tests {
#[test]
fn completes_generic_params_in_struct() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
struct X<T> {
@ -306,7 +306,7 @@ mod tests {
#[test]
fn completes_module_items() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
struct Foo;
@ -345,7 +345,7 @@ mod tests {
#[test]
fn completes_extern_prelude() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
//- /lib.rs
@ -369,7 +369,7 @@ mod tests {
#[test]
fn completes_module_items_in_nested_modules() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
struct Foo;
@ -401,7 +401,7 @@ mod tests {
#[test]
fn completes_return_type() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
struct Foo;
@ -430,7 +430,7 @@ mod tests {
#[test]
fn dont_show_both_completions_for_shadowing() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
fn foo() {
@ -465,7 +465,7 @@ mod tests {
#[test]
fn completes_self_in_methods() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(r"impl S { fn foo(&self) { <|> } }"),
@r#"[
CompletionItem {
@ -489,7 +489,7 @@ mod tests {
#[test]
fn completes_prelude() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /main.rs

View file

@ -40,7 +40,7 @@ fn ${1:feature}() {
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
fn do_snippet_completion(code: &str) -> Vec<CompletionItem> {
do_completion(code, CompletionKind::Snippet)
@ -48,7 +48,7 @@ mod tests {
#[test]
fn completes_snippets_in_expressions() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_snippet_completion(r"fn foo(x: i32) { <|> }"),
@r#"[
CompletionItem {
@ -71,11 +71,11 @@ mod tests {
#[test]
fn should_not_complete_snippets_in_path() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_snippet_completion(r"fn foo(x: i32) { ::foo<|> }"),
@r#"[]"#
);
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_snippet_completion(r"fn foo(x: i32) { ::<|> }"),
@r#"[]"#
);
@ -83,7 +83,7 @@ mod tests {
#[test]
fn completes_snippets_in_items() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_snippet_completion(
r"
#[cfg(test)]

View file

@ -186,7 +186,7 @@ impl Completions {
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
use test_utils::covers;
fn do_reference_completion(code: &str) -> Vec<CompletionItem> {
@ -196,7 +196,7 @@ mod tests {
#[test]
fn inserts_parens_for_function_calls() {
covers!(inserts_parens_for_function_calls);
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
fn no_args() {}
@ -222,7 +222,7 @@ mod tests {
},
]"###
);
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
fn with_args(x: i32, y: String) {}
@ -248,7 +248,7 @@ mod tests {
},
]"###
);
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
r"
struct S {}
@ -275,7 +275,7 @@ mod tests {
#[test]
fn dont_render_function_parens_in_use_item() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -298,7 +298,7 @@ mod tests {
#[test]
fn dont_render_function_parens_if_already_call() {
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs
@ -327,7 +327,7 @@ mod tests {
},
]"#
);
assert_debug_snapshot_matches!(
assert_debug_snapshot!(
do_reference_completion(
"
//- /lib.rs

View file

@ -183,7 +183,7 @@ fn check_struct_shorthand_initialization(
#[cfg(test)]
mod tests {
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
use join_to_string::join;
use ra_syntax::SourceFile;
use test_utils::assert_eq_text;
@ -519,7 +519,7 @@ mod tests {
fn test_unresolved_module_diagnostic() {
let (analysis, file_id) = single_file("mod foo;");
let diagnostics = analysis.diagnostics(file_id).unwrap();
assert_debug_snapshot_matches!(diagnostics, @r###"
assert_debug_snapshot!(diagnostics, @r###"
[
Diagnostic {
message: "unresolved module",

View file

@ -161,7 +161,7 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> {
#[cfg(test)]
mod tests {
use super::*;
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
#[test]
fn test_file_structure() {
@ -204,7 +204,7 @@ fn very_obsolete() {}
.ok()
.unwrap();
let structure = file_structure(&file);
assert_debug_snapshot_matches!(structure,
assert_debug_snapshot!(structure,
@r#"[
StructureNode {
parent: None,

View file

@ -169,7 +169,7 @@ fn get_node_displayable_type(
#[cfg(test)]
mod tests {
use crate::mock_analysis::single_file;
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
#[test]
fn let_statement() {
@ -210,7 +210,7 @@ fn main() {
}"#,
);
assert_debug_snapshot_matches!(analysis.inlay_hints(file_id).unwrap(), @r#"[
assert_debug_snapshot!(analysis.inlay_hints(file_id).unwrap(), @r#"[
InlayHint {
range: [193; 197),
kind: TypeHint,
@ -277,7 +277,7 @@ fn main() {
}"#,
);
assert_debug_snapshot_matches!(analysis.inlay_hints(file_id).unwrap(), @r#"[
assert_debug_snapshot!(analysis.inlay_hints(file_id).unwrap(), @r#"[
InlayHint {
range: [21; 30),
kind: TypeHint,
@ -304,7 +304,7 @@ fn main() {
}"#,
);
assert_debug_snapshot_matches!(analysis.inlay_hints(file_id).unwrap(), @r#"[
assert_debug_snapshot!(analysis.inlay_hints(file_id).unwrap(), @r#"[
InlayHint {
range: [21; 30),
kind: TypeHint,
@ -350,7 +350,7 @@ fn main() {
}"#,
);
assert_debug_snapshot_matches!(analysis.inlay_hints(file_id).unwrap(), @r#"[
assert_debug_snapshot!(analysis.inlay_hints(file_id).unwrap(), @r#"[
InlayHint {
range: [166; 170),
kind: TypeHint,
@ -411,7 +411,7 @@ fn main() {
}"#,
);
assert_debug_snapshot_matches!(analysis.inlay_hints(file_id).unwrap(), @r###"
assert_debug_snapshot!(analysis.inlay_hints(file_id).unwrap(), @r###"
[
InlayHint {
range: [166; 170),
@ -474,7 +474,7 @@ fn main() {
}"#,
);
assert_debug_snapshot_matches!(analysis.inlay_hints(file_id).unwrap(), @r#"[
assert_debug_snapshot!(analysis.inlay_hints(file_id).unwrap(), @r#"[
InlayHint {
range: [311; 315),
kind: TypeHint,

View file

@ -200,7 +200,7 @@ mod tests {
mock_analysis::analysis_and_position, mock_analysis::single_file_with_position, FileId,
ReferenceSearchResult,
};
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
use test_utils::assert_eq_text;
#[test]
@ -341,7 +341,7 @@ mod tests {
);
let new_name = "foo2";
let source_change = analysis.rename(position, new_name).unwrap();
assert_debug_snapshot_matches!(&source_change,
assert_debug_snapshot!(&source_change,
@r#"Some(
SourceChange {
label: "rename",
@ -388,7 +388,7 @@ mod tests {
);
let new_name = "foo2";
let source_change = analysis.rename(position, new_name).unwrap();
assert_debug_snapshot_matches!(&source_change,
assert_debug_snapshot!(&source_change,
@r###"Some(
SourceChange {
label: "rename",

View file

@ -71,7 +71,7 @@ fn runnable_mod(db: &RootDatabase, file_id: FileId, module: ast::Module) -> Opti
#[cfg(test)]
mod tests {
use insta::assert_debug_snapshot_matches;
use insta::assert_debug_snapshot;
use crate::mock_analysis::analysis_and_position;
@ -92,7 +92,7 @@ mod tests {
"#,
);
let runnables = analysis.runnables(pos.file_id).unwrap();
assert_debug_snapshot_matches!(&runnables,
assert_debug_snapshot!(&runnables,
@r#"[
Runnable {
range: [1; 21),
@ -127,7 +127,7 @@ mod tests {
"#,
);
let runnables = analysis.runnables(pos.file_id).unwrap();
assert_debug_snapshot_matches!(&runnables,
assert_debug_snapshot!(&runnables,
@r#"[
Runnable {
range: [1; 59),
@ -160,7 +160,7 @@ mod tests {
"#,
);
let runnables = analysis.runnables(pos.file_id).unwrap();
assert_debug_snapshot_matches!(&runnables,
assert_debug_snapshot!(&runnables,
@r#"[
Runnable {
range: [23; 85),
@ -195,7 +195,7 @@ mod tests {
"#,
);
let runnables = analysis.runnables(pos.file_id).unwrap();
assert_debug_snapshot_matches!(&runnables,
assert_debug_snapshot!(&runnables,
@r#"[
Runnable {
range: [41; 115),