Skip to content

Feature Request for Adding Line Numbers Editable Sections of Code #1593

Closed
rust-lang/rust
#100655
@ErdemOzgen

Description

@ErdemOzgen

In example of Option and Unwrap Running code will generate this output:

   Compiling playground v0.0.1 (/playground)
    Finished dev [unoptimized + debuginfo] target(s) in 0.58s
     Running `target/debug/playground`
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/main.rs:16:24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
water? How nice.
Yuck! Too sugary.
No drink? Oh well.
I love coffees!!!!!

Although comments in // `unwrap` returns a `panic` when it receives a `None`. tells which part is panicking. It will be nice to add line numbers for editable sections of code.

LineNumbers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions