diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-08-13 13:48:47 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-08-22 18:28:57 +0200 |
| commit | bb78426ca8f12f467e4d3bb38e82c0d3b6209e61 (patch) | |
| tree | 80627d1053b6bb1cdcaea8f50789786613026f04 /src/libsyntax | |
| parent | 674ef668f13c52a1fadbf01b24d8da1e12d15e70 (diff) | |
| download | rust-bb78426ca8f12f467e4d3bb38e82c0d3b6209e61.tar.gz rust-bb78426ca8f12f467e4d3bb38e82c0d3b6209e61.zip | |
Allow panicking with string literal messages inside constants
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 71ad118ed8e..4a819814d81 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -224,6 +224,9 @@ declare_features! ( // Allows comparing raw pointers during const eval (active, const_compare_raw_pointers, "1.27.0", Some(53020), None), + // Allows panicking during const eval (produces compile-time errors) + (active, const_panic, "1.29.0", Some(51999), None), + // Allows using #[prelude_import] on glob `use` items. // // rustc internal |
