about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-12-01 13:19:41 +0000
committerbors <bors@rust-lang.org>2015-12-01 13:19:41 +0000
commit4dda364ab3a4234524836ca104224d9cb236a599 (patch)
tree72ce8cd21d333d6bff34b897ead535b11f4a13e9 /src/libsyntax/errors
parent0bfdedb0103e4fa6d89d7bc192dade6e8b26164a (diff)
parentf6a1db6199aec28952e0f43b201605fdc45f4a69 (diff)
downloadrust-4dda364ab3a4234524836ca104224d9cb236a599.tar.gz
rust-4dda364ab3a4234524836ca104224d9cb236a599.zip
Auto merge of #30135 - michaelwoerister:interning-checks, r=sanxiyn
This PR adds some safety checks to interning things in `ty::ctxt`. Accidentally re-interning an `AdtDef` has bitten me in the behind just last week (it messes up things in very subtle way only showing up later as an LLVM assertion).

Initially I had also added a check to `ty::ctxt::node_type_insert()` -- but there it seems to be expected that the same table slot is written to multiple times.

Roll-up candidate.
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions