about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-02-20 01:13:12 +0800
committerGitHub <noreply@github.com>2019-02-20 01:13:12 +0800
commit5a06eab1f5b56735928a2d16728d9cdbfb44cac2 (patch)
treea1613c4b5f8ef3d0990fba0fcd2c651e7e3c70d3 /src/rustllvm/RustWrapper.cpp
parent4d66b7b76df04c29422ae3385920abb5cb947cff (diff)
parentdad211ef9fdcef5328813a1907d323303f09fc6c (diff)
downloadrust-5a06eab1f5b56735928a2d16728d9cdbfb44cac2.tar.gz
rust-5a06eab1f5b56735928a2d16728d9cdbfb44cac2.zip
Rollup merge of #56470 - llogiq:process-termination-doctest, r=GuillaumeGomez
Modify doctest's auto-`fn main()` to allow `Result`s

This lets the default `fn main()` ~~return `impl Termination`~~ unwrap Results, which allows the use of `?` in most tests without adding it manually. This fixes #56260

~~Blocked on `std::process::Termination` stabilization.~~

Using `Termination` would have been cleaner, but this should work OK.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions