Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

Add SpanData to BorrowData #6

Merged
merged 1 commit into from
Jul 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rls-data"
version = "0.7.0"
version = "0.8.0"
authors = ["Nick Cameron <[email protected]>"]
description = "Data structures used by the RLS and Rust compiler"
license = "Apache-2.0/MIT"
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -268,6 +268,7 @@ pub struct BorrowData {
pub scopes: Vec<Scope>,
pub loans: Vec<Loan>,
pub moves: Vec<Move>,
pub span: Option<SpanData>,
}

#[cfg(feature = "borrows")]
Expand Down