Closed
Description
Right now if you construct an error via its Into
implementation as provided by the blanket implementation in std
it gives the following location.
Location:
/home/jlusby/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:545
We should add #[track_caller]
to this trait and possibily some of the Try
trait implementations so that errors that attempt to track their construction point can correctly point to user code.
cc @anp