diff options
| author | Michael Lamparski <diagonaldevice@gmail.com> | 2018-02-07 09:31:22 -0500 |
|---|---|---|
| committer | Michael Lamparski <diagonaldevice@gmail.com> | 2018-02-07 09:36:20 -0500 |
| commit | 96eed862a08f0ee1d234f4f83419dd46fe58ccef (patch) | |
| tree | 9cf1209903f98f6a590bd44d7e089d15c767436f /src/libstd/sync | |
| parent | 5fa97c35da2f0eeda4321da7fb5933490b798d79 (diff) | |
| download | rust-96eed862a08f0ee1d234f4f83419dd46fe58ccef.tar.gz rust-96eed862a08f0ee1d234f4f83419dd46fe58ccef.zip | |
libcore/libstd: fix commas in macro_rules! macros
BREAKING CHANGE: (or perhaps, *bugfix*)
In #![no_std] applications, the following calls to `panic!` used
to behave differently; they now behave the same.
Old behavior:
panic!("{{"); // panics with "{{"
panic!("{{",); // panics with "{"
New behavior:
panic!("{{"); // panics with "{{"
panic!("{{",); // panics with "{{"
This only affects calls to `panic!` (and by proxy `assert`
and `debug_assert`) with a single string literal followed by
a trailing comma, and only in `#![no_std]` applications.
Diffstat (limited to 'src/libstd/sync')
0 files changed, 0 insertions, 0 deletions
