]> git.lizzy.rs Git - rust.git/commit
Deprecate the bytes!() macro.
authorSimon Sapin <simon.sapin@exyr.org>
Wed, 18 Jun 2014 18:25:36 +0000 (20:25 +0200)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 19 Jun 2014 00:02:22 +0000 (17:02 -0700)
commit108b8b6dc707775bd54aeea7820e0d473f556718
treea848b9df4646e3311158381252a211a4b8ee2771
parentabf7e933df0c732f14b5b8906161e74e72cd26ca
Deprecate the bytes!() macro.

Replace its usage with byte string literals, except in `bytes!()` tests.
Also add a new snapshot, to be able to use the new b"foo" syntax.

The src/etc/2014-06-rewrite-bytes-macros.py script automatically
rewrites `bytes!()` invocations into byte string literals.
Pass it filenames as arguments to generate a diff that you can inspect,
or `--apply` followed by filenames to apply the changes in place.
Diffs can be piped into `tip` or `pygmentize -l diff` for coloring.
42 files changed:
src/compiletest/runtest.rs
src/doc/complement-cheatsheet.md
src/doc/rust.md
src/etc/2014-06-rewrite-bytes-macros.py [new file with mode: 0755]
src/libcollections/slice.rs
src/libcollections/str.rs
src/libdebug/repr.rs
src/libnative/io/file_unix.rs
src/libnative/io/file_win32.rs
src/librand/lib.rs
src/librustc/metadata/filesearch.rs
src/librustc/middle/trans/debuginfo.rs
src/librustdoc/html/render.rs
src/librustrt/args.rs
src/librustrt/c_str.rs
src/libserialize/base64.rs
src/libserialize/hex.rs
src/libstd/io/buffered.rs
src/libstd/io/fs.rs
src/libstd/io/mem.rs
src/libstd/io/mod.rs
src/libstd/io/pipe.rs
src/libstd/io/stdio.rs
src/libstd/macros.rs
src/libstd/path/mod.rs
src/libstd/path/posix.rs
src/libstd/path/windows.rs
src/libsyntax/ext/bytes.rs
src/libterm/terminfo/parm.rs
src/libterm/terminfo/parser/compiled.rs
src/snapshots.txt
src/test/compile-fail/macros-nonfatal-errors.rs
src/test/compile-fail/syntax-extension-bytes-non-ascii-char-literal.rs
src/test/compile-fail/syntax-extension-bytes-non-literal.rs
src/test/compile-fail/syntax-extension-bytes-too-large-integer-literal.rs
src/test/compile-fail/syntax-extension-bytes-too-large-u8-literal.rs
src/test/compile-fail/syntax-extension-bytes-too-small-integer-literal.rs
src/test/compile-fail/syntax-extension-bytes-too-small-u8-literal.rs
src/test/compile-fail/syntax-extension-bytes-unsupported-literal.rs
src/test/run-pass/issue-4333.rs
src/test/run-pass/tempfile.rs
src/test/run-pass/trait-coercion.rs