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 3e21361 commit c9890ecCopy full SHA for c9890ec
core/src/panic/location.rs
@@ -183,7 +183,7 @@ impl<'a> Location<'a> {
183
#[must_use]
184
#[stable(feature = "panic_hooks", since = "1.10.0")]
185
#[rustc_const_stable(feature = "const_location_fields", since = "1.79.0")]
186
- pub const fn file(&self) -> &str {
+ pub const fn file(&self) -> &'a str {
187
// SAFETY: The filename is valid.
188
unsafe { self.filename.as_ref() }
189
}
0 commit comments