mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +00:00
text-size 1.0.0
This commit is contained in:
parent
63a462f37c
commit
e873469500
6 changed files with 16 additions and 12 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -1322,7 +1322,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rowan"
|
name = "rowan"
|
||||||
version = "0.10.0-pre.1"
|
version = "0.10.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1e081ed6eacce09e243b619ab90f069c27b0cff8a6d0eb8ad2ec935b65853798"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rustc-hash",
|
"rustc-hash",
|
||||||
"smol_str",
|
"smol_str",
|
||||||
|
@ -1623,7 +1625,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "text-size"
|
name = "text-size"
|
||||||
version = "1.0.0-pre.1"
|
version = "1.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f03e7efdedc3bc78cb2337f1e2785c39e45f5ef762d9e4ebb137fff7380a6d8a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "thin-dst"
|
name = "thin-dst"
|
||||||
|
|
|
@ -1333,8 +1333,8 @@ mod tests {
|
||||||
[
|
[
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
label: "f()",
|
label: "f()",
|
||||||
source_range: [98; 99),
|
source_range: 98..99,
|
||||||
delete: [98; 99),
|
delete: 98..99,
|
||||||
insert: "f()$0",
|
insert: "f()$0",
|
||||||
kind: Function,
|
kind: Function,
|
||||||
lookup: "f",
|
lookup: "f",
|
||||||
|
@ -1342,15 +1342,15 @@ mod tests {
|
||||||
},
|
},
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
label: "m",
|
label: "m",
|
||||||
source_range: [98; 99),
|
source_range: 98..99,
|
||||||
delete: [98; 99),
|
delete: 98..99,
|
||||||
insert: "m",
|
insert: "m",
|
||||||
kind: Module,
|
kind: Module,
|
||||||
},
|
},
|
||||||
CompletionItem {
|
CompletionItem {
|
||||||
label: "m::E::V",
|
label: "m::E::V",
|
||||||
source_range: [98; 99),
|
source_range: 98..99,
|
||||||
delete: [98; 99),
|
delete: 98..99,
|
||||||
insert: "m::E::V",
|
insert: "m::E::V",
|
||||||
kind: EnumVariant,
|
kind: EnumVariant,
|
||||||
detail: "()",
|
detail: "()",
|
||||||
|
|
|
@ -12,7 +12,7 @@ doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
itertools = "0.9.0"
|
itertools = "0.9.0"
|
||||||
rowan = { path = "../../../rowan" }
|
rowan = "0.10.0"
|
||||||
rustc_lexer = { version = "652.0.0", package = "rustc-ap-rustc_lexer" }
|
rustc_lexer = { version = "652.0.0", package = "rustc-ap-rustc_lexer" }
|
||||||
rustc-hash = "1.1.0"
|
rustc-hash = "1.1.0"
|
||||||
arrayvec = "0.5.1"
|
arrayvec = "0.5.1"
|
||||||
|
|
|
@ -9,4 +9,4 @@ publish = false
|
||||||
doctest = false
|
doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
text-size = { path = "../../../text-size" }
|
text-size = "1.0.0"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//! FIXME: write short doc here
|
//! FIXME: write short doc here
|
||||||
|
|
||||||
use crate::AtomTextEdit;
|
use crate::AtomTextEdit;
|
||||||
// TODO: fix Cargo.toml
|
|
||||||
use text_size::{TextRange, TextSize};
|
use text_size::{TextRange, TextSize};
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
|
|
@ -9,5 +9,5 @@ doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
difference = "2.0.0"
|
difference = "2.0.0"
|
||||||
text-size = { path = "../../../text-size" }
|
text-size = "1.0.0"
|
||||||
serde_json = "1.0.48"
|
serde_json = "1.0.48"
|
||||||
|
|
Loading…
Reference in a new issue