Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add support for `#[track_caller]` #247
Comments
|
I found the RFC at rust-lang/rfcs#2091. I think this is what I'm looking for. Yesterday, I ended up sprinkling code like this everywhere: let typ = ident(&alias_name.to_camel_case()).context(IdentError {
file: file!(),
line: line!(),
})?;It would be great if there was a variable like |
I have doubts about the true value of this. Why do you reuse an error type so frequently? Concretely speaking, why do you use |
|
Thanks @shepmaster. I'd like to get to a point where each one is uniquely named, but it was easiest at first to wrap an error type generically. Well, until the error was thrown and I couldn't figure out the location. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

This will involve adding a feature flag for Rust 1.46, then adding
#[track_caller]to the context selector methods likebuildandfail.