rust/src/librustc_borrowck
Manish Goregaokar 933d481bdd Rollup merge of #36004 - petrochenkov:hashloan, r=arielb1
rustc_borrowck: Don't hash types in loan paths

1) Types for equal loan paths are not always equal, they can sometimes differ in lifetimes, making equal loan paths hash differently.

Example:
71bdeea561/src/libcollections/linked_list.rs (L835-L856)

One of `self.list`s has type
```
&ReFree(CodeExtent(15013/CallSiteScope { fn_id: 18907, body_id: 18912 }), BrNamed(0:DefIndex(3066), 'a(397), WontChange)) mut linked_list::LinkedList<T>
```
and other has type
```
&ReScope(CodeExtent(15018/Remainder(BlockRemainder { block: 18912, first_statement_index: 0 }))) mut linked_list::LinkedList<T>
```
(... but I'm not sure it's not a bug actually.)

2) Not hashing types is faster than hashing types.

r? @arielb1
2016-08-27 09:31:15 +05:30
..
borrowck Rollup merge of #36004 - petrochenkov:hashloan, r=arielb1 2016-08-27 09:31:15 +05:30
bitslice.rs
Cargo.toml Fix Cargo.tomls 2016-06-27 18:30:46 +00:00
diagnostics.rs Update librustc_borrowck error codes check 2016-08-07 20:16:02 +02:00
graphviz.rs
indexed_set.rs introduce the type-safe IdxVec and use it instead of loose indexes 2016-06-09 14:26:08 +03:00
lib.rs Move errors from libsyntax to its own crate 2016-06-23 08:07:35 -04:00