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.
2 parents d435882 + d3f6855 commit 6a1857cCopy full SHA for 6a1857c
core/src/panic/location.rs
@@ -193,8 +193,9 @@ impl<'a> Location<'a> {
193
/// This is useful for interop with APIs that expect C/C++ `__FILE__` or
194
/// `std::source_location::file_name`, both of which return a nul-terminated `const char*`.
195
#[must_use]
196
- #[unstable(feature = "file_with_nul", issue = "141727")]
197
#[inline]
+ #[stable(feature = "file_with_nul", since = "CURRENT_RUSTC_VERSION")]
198
+ #[rustc_const_stable(feature = "file_with_nul", since = "CURRENT_RUSTC_VERSION")]
199
pub const fn file_as_c_str(&self) -> &'a CStr {
200
let filename = self.filename.as_ptr();
201
0 commit comments