]> git.lizzy.rs Git - rust.git/commit
Rename include_bin! to include_bytes!
authorChris Wong <lambda.fairy@gmail.com>
Sun, 21 Dec 2014 21:57:09 +0000 (10:57 +1300)
committerChris Wong <lambda.fairy@gmail.com>
Tue, 23 Dec 2014 09:06:32 +0000 (22:06 +1300)
commit85c1a4b1ba09dae786b3554e0ab596814efabe0e
tree361dd0205510de3ea787361683a12de74efb9400
parent62fb41c32bd97c4e9bc286a1db5d7126a06b8b91
Rename include_bin! to include_bytes!

According to [RFC 344][], methods that return `&[u8]` should have names
ending in `bytes`. Though `include_bin!` is a macro not a method, it
seems reasonable to follow the convention anyway.

We keep the old name around for now, but trigger a deprecation warning
when it is used.

[RFC 344]: https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md

[breaking-change]
src/doc/reference.md
src/librustdoc/html/render.rs
src/libstd/macros.rs
src/libsyntax/ext/base.rs
src/libsyntax/ext/source_util.rs
src/test/bench/shootout-k-nucleotide-pipes.rs
src/test/compile-fail/macros-nonfatal-errors.rs
src/test/run-make/symbols-are-reasonable/lib.rs
src/test/run-pass/syntax-extension-source-utils.rs