rust-embedded / rust-embedded/heapless

#[track_caller] For functions like "from" that have unwrap() inside.

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

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
2k
Forks
253
Avg merge
1d 2h
Merged PRs (30d)
1

Description

For example the function/trait String::from("some_string"). This should generate better panic information.

It is available since 1.46
https://blog.rust-lang.org/2020/08/27/Rust-1.46.0.html

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

Start by locating String::from and the functions or traits that contain unwrap calls. Check the Rust 1.46 track_caller support described in the linked release post, then determine which entry points should expose caller information. Done means the relevant panic output includes a more useful call location, with tests or examples demonstrating the changed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
embedded-iot
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.