Skip to content

Commit e8c8c6e

Browse files
committed
corrected lifetime in core::panic::Location::file return type
1 parent 4820c70 commit e8c8c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/panic/location.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl<'a> Location<'a> {
195195
#[must_use]
196196
#[unstable(feature = "file_with_nul", issue = "141727")]
197197
#[inline]
198-
pub const fn file_with_nul(&self) -> &CStr {
198+
pub const fn file_with_nul(&self) -> &'a CStr {
199199
let filename = self.filename.as_ptr();
200200

201201
// SAFETY: The filename is valid for `filename_len+1` bytes, so this addition can't

0 commit comments

Comments
 (0)