about summary refs log tree commit diff
path: root/src/test/rustdoc/mod-stackoverflow.rs
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-12-22 12:41:17 +0100
committerNikita Popov <nikita.ppv@gmail.com>2018-12-22 12:41:17 +0100
commitf93cbf617000673e5ad2fc0fd0eff0c9ea229314 (patch)
tree2203ea7ef4dd841e3f60c9e3872f77e1e87584af /src/test/rustdoc/mod-stackoverflow.rs
parent9689ada83891f63164bf117af35cc0abc37daaf1 (diff)
downloadrust-f93cbf617000673e5ad2fc0fd0eff0c9ea229314.tar.gz
rust-f93cbf617000673e5ad2fc0fd0eff0c9ea229314.zip
Short-circuit DefIdForest::intersection()
If the forest is already empty, there is no point in intersecting
further.

Also handle the first element separately, so we don't compute an
unnecessary intersection between the full forest and the first
element, which is always equal to the first element.
Diffstat (limited to 'src/test/rustdoc/mod-stackoverflow.rs')
0 files changed, 0 insertions, 0 deletions