about summary refs log tree commit diff
path: root/compiler/rustc_span
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-10-18 22:30:16 +0200
committerMara Bos <m-ou.se@m-ou.se>2020-10-18 22:30:16 +0200
commit3beb2e95a98e90f43809a9ab1fb7175d4fa7aa8d (patch)
treef9d62c295b54888714864c0565deb54bd8f49f75 /compiler/rustc_span
parentf228efc3f56ca13a4a969d0ee72c2e0844ac6a72 (diff)
downloadrust-3beb2e95a98e90f43809a9ab1fb7175d4fa7aa8d.tar.gz
rust-3beb2e95a98e90f43809a9ab1fb7175d4fa7aa8d.zip
Expand assert!(expr) to panic() function instead of panic!() macro.
The panic message might contain braces which should never be
interpreted as format placeholders, which panic!() will do in a future
edition.
Diffstat (limited to 'compiler/rustc_span')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index c6949d9387c..733d2b1ef9a 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -791,6 +791,7 @@ symbols! {
         panic_runtime,
         panic_str,
         panic_unwind,
+        panicking,
         param_attrs,
         parent_trait,
         partial_cmp,