]> git.lizzy.rs Git - rust.git/commit
Fixes #14185.
authorAndrew Gallant <jamslam@gmail.com>
Wed, 4 Jun 2014 20:59:27 +0000 (16:59 -0400)
committerAndrew Gallant <jamslam@gmail.com>
Wed, 4 Jun 2014 20:59:27 +0000 (16:59 -0400)
commit0f73bf32fe7d4e805f2bd16e3d6de66e90b3d3bf
tree106d770ce65b797188da2530140498826e16b4c3
parenta6401b52263336c22879d4ffae3eded97949ee7b
Fixes #14185.

This fix suppresses dead_code warnings from code generated by regex! when
the result of regex! is unused. Correct behavior should be a single
unused variable warning.

Regression tests are included for both `let` and `static` bound regex!
values.
src/libregex_macros/lib.rs
src/test/compile-fail-fulldeps/syntax-extension-regex-unused-static.rs [new file with mode: 0644]
src/test/compile-fail-fulldeps/syntax-extension-regex-unused.rs [new file with mode: 0644]