about summary refs log tree commit diff
path: root/src/librustc_errors
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/librustc_errors
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/librustc_errors')
-rw-r--r--src/librustc_errors/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index 0c1418d3cad..362913ceadf 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -5,7 +5,7 @@
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
 #![feature(crate_visibility_modifier)]
 #![feature(nll)]
-#![feature(track_caller)]
+#![cfg_attr(bootstrap, feature(track_caller))]
 
 pub use emitter::ColorConfig;