]> git.lizzy.rs Git - rust.git/commitdiff
Change tracking issue from #76156 to #102911
authorwoppopo <woppopo@protonmail.com>
Tue, 11 Oct 2022 06:40:37 +0000 (06:40 +0000)
committerwoppopo <woppopo@protonmail.com>
Tue, 11 Oct 2022 06:40:37 +0000 (06:40 +0000)
library/core/src/panic/location.rs
library/core/tests/lib.rs

index 26a410365568c98c050111003a061225286b1c59..6dcf23dde87c75701af08d7c69994931b2590de6 100644 (file)
@@ -123,7 +123,7 @@ pub const fn caller() -> &'static Location<'static> {
     /// ```
     #[must_use]
     #[stable(feature = "panic_hooks", since = "1.10.0")]
-    #[rustc_const_unstable(feature = "const_caller_location", issue = "76156")]
+    #[rustc_const_unstable(feature = "const_location_fields", issue = "102911")]
     #[inline]
     pub const fn file(&self) -> &str {
         self.file
@@ -148,7 +148,7 @@ pub const fn file(&self) -> &str {
     /// ```
     #[must_use]
     #[stable(feature = "panic_hooks", since = "1.10.0")]
-    #[rustc_const_unstable(feature = "const_caller_location", issue = "76156")]
+    #[rustc_const_unstable(feature = "const_location_fields", issue = "102911")]
     #[inline]
     pub const fn line(&self) -> u32 {
         self.line
@@ -173,7 +173,7 @@ pub const fn line(&self) -> u32 {
     /// ```
     #[must_use]
     #[stable(feature = "panic_col", since = "1.25.0")]
-    #[rustc_const_unstable(feature = "const_caller_location", issue = "76156")]
+    #[rustc_const_unstable(feature = "const_location_fields", issue = "102911")]
     #[inline]
     pub const fn column(&self) -> u32 {
         self.col
index 7cf2c0dcefc98e56034b2e73b4db4cd7340aafb4..534f92d3d8ecb86a84ab7771f2cc1b4225f16558 100644 (file)
@@ -21,6 +21,7 @@
 #![feature(const_ptr_write)]
 #![feature(const_trait_impl)]
 #![feature(const_likely)]
+#![feature(const_location_fields)]
 #![feature(core_intrinsics)]
 #![feature(core_private_bignum)]
 #![feature(core_private_diy_float)]