mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
Auto merge of #76157 - ArekPiekarz:const_caller_location_tracking_issue, r=joshtriplett
Update tracking issue for const_caller_location Update the tracking issue to https://github.com/rust-lang/rust/issues/76156, as suggested in https://github.com/rust-lang/rust/issues/76105.
This commit is contained in:
commit
73dc675b94
@ -831,7 +831,7 @@ extern "rust-intrinsic" {
|
|||||||
/// Gets a reference to a static `Location` indicating where it was called.
|
/// Gets a reference to a static `Location` indicating where it was called.
|
||||||
///
|
///
|
||||||
/// Consider using [`crate::panic::Location::caller`] instead.
|
/// Consider using [`crate::panic::Location::caller`] instead.
|
||||||
#[rustc_const_unstable(feature = "const_caller_location", issue = "47809")]
|
#[rustc_const_unstable(feature = "const_caller_location", issue = "76156")]
|
||||||
pub fn caller_location() -> &'static crate::panic::Location<'static>;
|
pub fn caller_location() -> &'static crate::panic::Location<'static>;
|
||||||
|
|
||||||
/// Moves a value out of scope without running drop glue.
|
/// Moves a value out of scope without running drop glue.
|
||||||
|
@ -225,7 +225,7 @@ impl<'a> Location<'a> {
|
|||||||
/// assert_ne!(this_location.column(), another_location.column());
|
/// assert_ne!(this_location.column(), another_location.column());
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "track_caller", since = "1.46.0")]
|
#[stable(feature = "track_caller", since = "1.46.0")]
|
||||||
#[rustc_const_unstable(feature = "const_caller_location", issue = "47809")]
|
#[rustc_const_unstable(feature = "const_caller_location", issue = "76156")]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub const fn caller() -> &'static Location<'static> {
|
pub const fn caller() -> &'static Location<'static> {
|
||||||
crate::intrinsics::caller_location()
|
crate::intrinsics::caller_location()
|
||||||
|
Loading…
Reference in New Issue
Block a user