about summary refs log tree commit diff
path: root/src/rt/rust_shape.cpp
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-08-04 15:56:40 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-08-04 15:56:40 -0700
commit5f03ca48d8348197b52697f54a34e471b0edd79f (patch)
tree2c874cde285abe0feb8d7acb98331e61a7b9f842 /src/rt/rust_shape.cpp
parent2baaeab784a1f5c95deb8bd0c3a9745a969431cc (diff)
downloadrust-5f03ca48d8348197b52697f54a34e471b0edd79f.tar.gz
rust-5f03ca48d8348197b52697f54a34e471b0edd79f.zip
Add a fast path in ty::occurs_check_fails
Use type_contains_vars in occurs_check_fails to avoid doing
any work most of the time. This fixes a performance regression.
(No one else noticed yet that typechecking just got 4x slower, right?
Well, now it isn't anymore. :-})
Diffstat (limited to 'src/rt/rust_shape.cpp')
0 files changed, 0 insertions, 0 deletions