diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-11 16:11:14 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-11 16:26:12 +1000 |
| commit | a91f6f745e18bd9f32dbcb29286f81efec41eff2 (patch) | |
| tree | 52344d73efda15a2d65b8a2f5b19e0e7e670c705 /src/rustllvm/RustWrapper.cpp | |
| parent | f9bfe840f41d00e9712f13fbc635ec3fbe95e8c4 (diff) | |
| download | rust-a91f6f745e18bd9f32dbcb29286f81efec41eff2.tar.gz rust-a91f6f745e18bd9f32dbcb29286f81efec41eff2.zip | |
Tweak `nearest_common_ancestor()`.
- Remove the "no nearest common ancestor found" case, because it's never hit in practise. (This means `closure_is_enclosed_by` can also be removed.) - Add a comment about why `SmallVec` is used for the "seen" structures. - Use `&Scope` instead of `Scope` to avoid some `map()` calls. - Use `any(p)` instead of `position(p).is_some()`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
