about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAdam Perry <lol@anp.lol>2020-05-21 16:43:39 -0700
committerAdam Perry <lol@anp.lol>2020-06-30 22:22:32 -0700
commitf07d10db7cf9a985c5fcb4187825642207134970 (patch)
tree0554dcfdae0a12bb52d427d9093ad59f238049c2 /src/libstd
parentd462551a8600e57d8b6f87e71ea56868bc5da6cf (diff)
downloadrust-f07d10db7cf9a985c5fcb4187825642207134970.tar.gz
rust-f07d10db7cf9a985c5fcb4187825642207134970.zip
Stabilize `#[track_caller]`.
Does not yet make its constness stable, though. Use of
`Location::caller` in const contexts is still gated by
`#![feature(const_caller_location)]`.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index ef699ede2a1..372038df54f 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -316,7 +316,7 @@
 #![feature(toowned_clone_into)]
 #![feature(total_cmp)]
 #![feature(trace_macros)]
-#![feature(track_caller)]
+#![cfg_attr(bootstrap, feature(track_caller))]
 #![feature(try_reserve)]
 #![feature(unboxed_closures)]
 #![feature(untagged_unions)]