rust-lang / rust-lang/rust-playground

Show exit status

Open
#689 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.