about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2017-12-07 23:59:04 +0100
committerGitHub <noreply@github.com>2017-12-07 23:59:04 +0100
commit0b47f0226760ae059f011006342833564cfa40ae (patch)
tree4e9965f4dbcf426da68fe6acb00a27546f320a3c /src/libstd/sys/unix/stack_overflow.rs
parent655303ce9b759a2b7484a569f9a5df035a7cfdc3 (diff)
parent5847d0babdb4bc4545d9aeb9ef89862589ae1504 (diff)
downloadrust-0b47f0226760ae059f011006342833564cfa40ae.tar.gz
rust-0b47f0226760ae059f011006342833564cfa40ae.zip
Rollup merge of #46548 - jonathanstrong:master, r=dtolnay
Recommends lazily evaluated alternatives for `Option::or` and `Result::or`

Adds language to docs for `Option` and `Result` recommending the use of lazily evaluated alternatives when appropriate. These comments are intended to echo a [clippy lint] on the same topic. The [reddit discussion] may also be of interest.

[clippy lint]: https://rust-lang-nursery.github.io/rust-clippy/master/index.html#or_fun_call
[reddit discussion]: https://www.reddit.com/r/rust/comments/7hutqn/perils_of_optionor_and_resultor/
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions