about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorAriel Ben-Yehuda <ariel.byd@gmail.com>2015-12-12 19:02:33 +0200
committerAriel Ben-Yehuda <ariel.byd@gmail.com>2015-12-12 19:02:33 +0200
commit08bffdd5c0c0916d9caed05f42419076e1e89359 (patch)
tree37740ef8ac7e07fa8f54c6360a795404dfd42b07 /src/libsyntax/errors
parente583ab628141fc750bbf3277085f4d4d6a0e207d (diff)
downloadrust-08bffdd5c0c0916d9caed05f42419076e1e89359.tar.gz
rust-08bffdd5c0c0916d9caed05f42419076e1e89359.zip
fix dropck performance regression
Turns out that calling `resolve_type_variables_if_possible` in a O(n^2)
loop is a bad idea. Now we just resolve each copy of the region variable
to its lowest name each time (we resolve the region variable to its lowest
name, rather than to its unify-table name to avoid the risk of
the unify-table name changing infinitely many times. That may be
not a problem in practice, but I am not sure of it).
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions