diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-11-18 23:24:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-18 23:24:43 +0100 |
| commit | 715d83fe01b02c3c42f6a60810cf8fe8316788e5 (patch) | |
| tree | 0d4dc6d475681b6ff32ca51572a0322fb044f579 /src/libsyntax_ext | |
| parent | 5e2ff63e29c20353b9929337e4c3b641adbf488f (diff) | |
| parent | 8e13e433c65f4755f43a527f8777a035f8b6a71b (diff) | |
| download | rust-715d83fe01b02c3c42f6a60810cf8fe8316788e5.tar.gz rust-715d83fe01b02c3c42f6a60810cf8fe8316788e5.zip | |
Rollup merge of #55923 - Zeegomo:master, r=estebank
reword #[test] attribute error on fn items fix of [#55787](https://github.com/rust-lang/rust/issues/55787) Reworded error message from "#[test] attribute is only allowed on fn items" to "#[test] attribute is only allowed on non associated functions"
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_ext/test.rs b/src/libsyntax_ext/test.rs index be3485cfa7c..b8a171b52ad 100644 --- a/src/libsyntax_ext/test.rs +++ b/src/libsyntax_ext/test.rs @@ -53,7 +53,7 @@ pub fn expand_test_or_bench( if let Annotatable::Item(i) = item { i } else { cx.parse_sess.span_diagnostic.span_fatal(item.span(), - "#[test] attribute is only allowed on fn items").raise(); + "#[test] attribute is only allowed on non associated functions").raise(); }; if let ast::ItemKind::Mac(_) = item.node { |
