about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-02 02:03:15 +0000
committerbors <bors@rust-lang.org>2019-01-02 02:03:15 +0000
commit96530344ef951c79e07cad69cf65eddb876b0e2d (patch)
treee8e9ecad3e45da009e2cd410b3756810064f3b65 /src/libsyntax/parse/parser.rs
parent443ae75eaf86e59da21b75e2e72b7b1dcf2c90e5 (diff)
parent496f547af604f5430ab6fbb3ce78ef0ea79a6ae8 (diff)
downloadrust-96530344ef951c79e07cad69cf65eddb876b0e2d.tar.gz
rust-96530344ef951c79e07cad69cf65eddb876b0e2d.zip
Auto merge of #56827 - faern:eliminate-recv-timeout-panic, r=KodrAus
Eliminate Receiver::recv_timeout panic

Fixes #54552.

This panic is because `recv_timeout` uses `Instant::now() + timeout` internally. This possible panic is not mentioned in the documentation for this method.

Very recently we merged (still unstable) support for checked addition (#56490) of `Instant + Duration`, so it's now finally possible to add these together without risking a panic.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions