rust/src/test
Ryan Cumming e1bffbdf66 Fix spurious warning on empty proc macro crates
While attempting to reproduce rust-lang/rust#47086 I noticed the
following warning:

```shell
> rustc /dev/null --crate-type proc-macro
warning: unused variable: `registrar`
 --> /dev/null:0:1
```

As there are no macros to register the automatically generated registrar
function for the crate has no body. As a result its `registrar` argument
is unused triggering the above warning.

The warning is confusing and not easily actionable by the developer. It
could also be triggered legitimately by e.g. having all of the macros in
a crate #[cfg]'ed out.

Fix by naming the generated argument `_registrar` inside
`mk_registrar()`. This suppresses the unused variable warning.
2018-01-22 21:09:14 +11:00
..
codegen Auto merge of #47401 - rkruppe:issue-47278, r=eddyb 2018-01-19 01:58:30 +00:00
codegen-units Convert codegen-unit tests to use start instead of main 2017-12-26 12:26:39 +01:00
compile-fail Auto merge of #47144 - estebank:moved-closure-arg, r=nikomatsakis 2018-01-22 05:30:37 +00:00
compile-fail-fulldeps Reexport -> re-export in prose and documentation comments 2018-01-15 13:36:53 -05:00
debuginfo Debuginfo Shadowed Variable test: fix check numbering 2018-01-06 11:10:17 +00:00
incremental Remove excessive trailing newlines. 2017-12-30 15:50:52 +08:00
incremental-fulldeps Add incremental-fulldeps test suite and regression test for #47290. 2018-01-16 19:31:15 +01:00
mir-opt Add trailing newlines to files which have no trailing newlines. 2017-12-30 15:50:52 +08:00
parse-fail syntax: Disambiguate generics and qualified paths 2018-01-14 18:10:19 +03:00
pretty Fix whitespacing issues in pretty-printing of bounds 2017-12-20 00:23:18 +03:00
run-fail Add 'ignore-cloudabi' to tests that don't and won't build on CloudABI. 2018-01-02 14:11:41 +01:00
run-fail-fulldeps
run-make Remove the 'extern "C"' in the right place 2018-01-20 17:27:15 +01:00
run-pass Auto merge of #47001 - arielb1:private-match, r=nikomatsakis 2018-01-21 12:05:49 +00:00
run-pass-fulldeps Fix spurious warning on empty proc macro crates 2018-01-22 21:09:14 +11:00
run-pass-valgrind Add 'ignore-cloudabi' to tests that don't and won't build on CloudABI. 2018-01-02 14:11:41 +01:00
rustdoc Rollup merge of #47313 - ollie27:rustdoc_record_extern_trait, r=QuietMisdreavus 2018-01-17 23:43:27 +01:00
rustdoc-js Replace Box::{from,into}_unique with {from,into}_nonnull_raw 2018-01-20 11:09:22 +01:00
ui Auto merge of #47144 - estebank:moved-closure-arg, r=nikomatsakis 2018-01-22 05:30:37 +00:00
ui-fulldeps Rollup merge of #47444 - etaoins:dont-include-bang-in-macro-suggestion, r=estebank 2018-01-18 01:57:20 +08:00
COMPILER_TESTS.md A few small improvements to the contributing docs 2017-12-20 22:18:13 +02:00