rust-lang / rust-lang/backtrace-rs

`Symbol` struct is not `Clone`

Open
#387 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
628
Forks
291
PR merge metrics
No merged PRs in 30d

Description

It does not appear possible to use the raw backtrace functionality effectively, because the Symbol struct does not implement Clone, and the resolve_frame callback is passed a &Symbol reference which is not 'static. As a result, there's no way to store that symbol for later use.

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 reading the raw backtrace API around the Symbol struct and the resolve_frame callback, focusing on the lifetime limitation described in the issue. Done means a caller can retain a symbol for later use through a supported cloneable value, with coverage for that use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.