rust-lang / rust-lang/rust-playground
Show exit status
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 267
- Avg merge
- 3h 2m
- Merged PRs (30d)
- 6
Description
Programs like this are confusing to run on the playground because they print a panic message, but actually exit successfully:
fn unwind() {
panic!();
}
fn main() {
std::panic::catch_unwind(|| unwind()).unwrap_err();
}
It would be good to have some way to see the exit status of the program on playground, to tell whether the program (thinks it) ran successfully or failed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Rust example in the playground and inspect how program output and execution results are presented. Add a visible exit status for runs, including this successful panic-catching case, and verify that users can distinguish successful and failed execution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100