Fix overly restrictive lifetime in core::panic::Location::file
return type by ijchen · Pull Request #132087 · rust-lang/rust (original) (raw)
Hmm, this is "overly restrictive" in the current implementation, but sometimes that's on purpose to give implementation freedom. For instance, we couldn't use Cow<'a, str>
internally after your change. (ignoring core
/alloc
for a moment)
The breaking change of the function type is unlikely to be a problem IMO, but the API team should review it overall.
@rustbot label -T-libs +T-libs-api
r? libs-api