diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-10-18 22:30:16 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-10-18 22:30:16 +0200 |
| commit | 3beb2e95a98e90f43809a9ab1fb7175d4fa7aa8d (patch) | |
| tree | f9d62c295b54888714864c0565deb54bd8f49f75 /compiler/rustc_span | |
| parent | f228efc3f56ca13a4a969d0ee72c2e0844ac6a72 (diff) | |
| download | rust-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.rs | 1 |
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, |
