diff --git a/Cargo.lock b/Cargo.lock index c12a537..dd571bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "rls-data" -version = "0.7.0" +version = "0.8.0" dependencies = [ "rls-span 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 628497a..a658871 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rls-data" -version = "0.7.0" +version = "0.8.0" authors = ["Nick Cameron "] description = "Data structures used by the RLS and Rust compiler" license = "Apache-2.0/MIT" diff --git a/src/lib.rs b/src/lib.rs index 4fdf7e7..319cc58 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -79,7 +79,7 @@ impl Analysis { // DefId::index is a newtype and so the JSON serialisation is ugly. Therefore // we use our own Id which is the same, but without the newtype. -#[derive(Clone, Copy, Debug, RustcDecodable, RustcEncodable, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, RustcDecodable, RustcEncodable, PartialEq, Eq, Hash)] pub struct Id { pub krate: u32, pub index: u32, @@ -268,6 +268,7 @@ pub struct BorrowData { pub scopes: Vec, pub loans: Vec, pub moves: Vec, + pub span: Option, } #[cfg(feature = "borrows")]