about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2018-05-17 13:51:22 -0600
committerGitHub <noreply@github.com>2018-05-17 13:51:22 -0600
commite1848df1811863aab4d7f27041fc249b2e43d2f7 (patch)
tree9299a956ec71073b319bc389da711a55cea2472b /src/rustllvm/RustWrapper.cpp
parentb3734bd78f566dc9c6ddf977fb290c847cccdc9c (diff)
parenta91f6f745e18bd9f32dbcb29286f81efec41eff2 (diff)
downloadrust-e1848df1811863aab4d7f27041fc249b2e43d2f7.tar.gz
rust-e1848df1811863aab4d7f27041fc249b2e43d2f7.zip
Rollup merge of #50649 - nnethercote:tweak-nearest_common_ancestor, r=nikomatsakis
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()`.

r? @nikomatsakis
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions