We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4820c70 commit e8c8c6eCopy full SHA for e8c8c6e
core/src/panic/location.rs
@@ -195,7 +195,7 @@ impl<'a> Location<'a> {
195
#[must_use]
196
#[unstable(feature = "file_with_nul", issue = "141727")]
197
#[inline]
198
- pub const fn file_with_nul(&self) -> &CStr {
+ pub const fn file_with_nul(&self) -> &'a CStr {
199
let filename = self.filename.as_ptr();
200
201
// SAFETY: The filename is valid for `filename_len+1` bytes, so this addition can't
0 commit comments