rust/src/librustc/middle/trans
Alex Crichton ec57db083f rustc: Add the concept of a Strict Version Hash
This new SVH is used to uniquely identify all crates as a snapshot in time of
their ABI/API/publicly reachable state. This current calculation is just a hash
of the entire crate's AST. This is obviously incorrect, but it is currently the
reality for today.

This change threads through the new Svh structure which originates from crate
dependencies. The concept of crate id hash is preserved to provide efficient
matching on filenames for crate loading. The inspected hash once crate metadata
is opened has been changed to use the new Svh.

The goal of this hash is to identify when upstream crates have changed but
downstream crates have not been recompiled. This will prevent the def-id drift
problem where upstream crates were recompiled, thereby changing their metadata,
but downstream crates were not recompiled.

In the future this hash can be expanded to exclude contents of the AST like doc
comments, but limitations in the compiler prevent this change from being made at
this time.

Closes #10207
2014-02-28 10:48:04 -08:00
..
_match.rs Move std::{trie, hashmap} to libcollections 2014-02-23 00:35:11 -08:00
adt.rs
asm.rs
base.rs rustc: Add the concept of a Strict Version Hash 2014-02-28 10:48:04 -08:00
basic_block.rs
build.rs
builder.rs Move std::{trie, hashmap} to libcollections 2014-02-23 00:35:11 -08:00
cabi_arm.rs
cabi_mips.rs
cabi_x86_64.rs
cabi_x86.rs
cabi.rs
callee.rs Replace callee_id with information stored in method_map. 2014-02-26 16:06:45 +02:00
cleanup.rs Replace callee_id with information stored in method_map. 2014-02-26 16:06:45 +02:00
closure.rs
common.rs Replace callee_id with information stored in method_map. 2014-02-26 16:06:45 +02:00
consts.rs Replace callee_id with information stored in method_map. 2014-02-26 16:06:45 +02:00
context.rs Move std::{trie, hashmap} to libcollections 2014-02-23 00:35:11 -08:00
controlflow.rs Make break and continue hygienic 2014-02-23 21:20:37 +08:00
datum.rs Transition to new Hash, removing IterBytes and std::to_bytes. 2014-02-24 07:44:10 +11:00
debuginfo.rs Replace callee_id with information stored in method_map. 2014-02-26 16:06:45 +02:00
doc.rs
expr.rs Replace callee_id with information stored in method_map. 2014-02-26 16:06:45 +02:00
foreign.rs
glue.rs
inline.rs
intrinsic.rs rustc: Add the concept of a Strict Version Hash 2014-02-28 10:48:04 -08:00
llrepr.rs
machine.rs
macros.rs
meth.rs Replace callee_id with information stored in method_map. 2014-02-26 16:06:45 +02:00
mod.rs
monomorphize.rs Replace callee_id with information stored in method_map. 2014-02-26 16:06:45 +02:00
reflect.rs
tvec.rs Changed NonCamelCaseTypes lint to warn by default 2014-02-21 08:11:52 +01:00
type_.rs
type_of.rs Changed NonCamelCaseTypes lint to warn by default 2014-02-21 08:11:52 +01:00
value.rs
write_guard.rs