Closed
Description
In call chains, the newly stabilized feature to make panics point to useful locations doesn't report the actual call site of the expand/unwrap call, but to the start of the call chain.
let v = None;
//v---- reported panic location
v.map(|x: ()| x)
.map(|_| ())
//v---- expected panic location
.expect("test");
It should rather point to the expect/unwrap instead. You can have multiple such expects/unwraps in your chain.
Edit: happens on latest nightly as well as on the 1.42.0 stable release.