about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2015-11-20 09:34:33 -0800
committerAaron Turon <aturon@mozilla.com>2015-11-20 09:34:33 -0800
commit612d001d74cf9e70e0dd9e8eaca73f33c7ea8c0e (patch)
tree515957a807a6d784ffcfdf2080e50c44480601ca /src/liballoc_system
parent19020210321b08f136349968a8d868f789445090 (diff)
downloadrust-612d001d74cf9e70e0dd9e8eaca73f33c7ea8c0e.tar.gz
rust-612d001d74cf9e70e0dd9e8eaca73f33c7ea8c0e.zip
Change TraitRef subtyping checks to equality
Trait references are always invariant, so all uses of subtyping between
them are equivalent to using equality.

Moreover, the overlap check was previously performed twice per impl
pair, once in each direction. It is now performed only once, and
internally uses the equality check.

On glium, a crate that spends some time in coherence, this change sped
up coherence checking by a few percent (not very significant).
Diffstat (limited to 'src/liballoc_system')
0 files changed, 0 insertions, 0 deletions