about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-05-11 16:11:14 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2018-05-11 16:26:12 +1000
commita91f6f745e18bd9f32dbcb29286f81efec41eff2 (patch)
tree52344d73efda15a2d65b8a2f5b19e0e7e670c705 /src/rustllvm/RustWrapper.cpp
parentf9bfe840f41d00e9712f13fbc635ec3fbe95e8c4 (diff)
downloadrust-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