diff options
| author | bors <bors@rust-lang.org> | 2019-11-12 08:23:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-11-12 08:23:32 +0000 |
| commit | a19f93410d4315408f8775e1be29536302adc223 (patch) | |
| tree | 6712e00314955a7df2c5581f382988e42b250f9e /src/libsyntax_ext | |
| parent | e3d998492abd7d61aba12cfa058fce28c998a3ff (diff) | |
| parent | 420f9263068d9091b1705eaacec9b19059ff1793 (diff) | |
| download | rust-a19f93410d4315408f8775e1be29536302adc223.tar.gz rust-a19f93410d4315408f8775e1be29536302adc223.zip | |
Auto merge of #66323 - JohnTitor:rollup-jl8xdk4, r=JohnTitor
Rollup of 11 pull requests Successful merges: - #65965 (Clean up librustc_typeck error_codes file) - #66230 (remove vestigial comments referring to defunct numeric trait hierarchy) - #66241 (bump openssl version) - #66257 (Drop long-section-names linker workaround for windows-gnu) - #66263 (make the error message more readable) - #66267 (Add rustdoc doc) - #66276 (Move lock into CodeStats) - #66278 (Fix error message about exported symbols from proc-macro crates) - #66280 (Fix HashSet::union performance) - #66299 (support issue = "none" in unstable attributes ) - #66309 (Tiny cleanup to size assertions) Failed merges: r? @ghost
Diffstat (limited to 'src/libsyntax_ext')
| -rw-r--r-- | src/libsyntax_ext/proc_macro_harness.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libsyntax_ext/proc_macro_harness.rs b/src/libsyntax_ext/proc_macro_harness.rs index 792c97d8508..fbded7dc130 100644 --- a/src/libsyntax_ext/proc_macro_harness.rs +++ b/src/libsyntax_ext/proc_macro_harness.rs @@ -92,10 +92,12 @@ pub fn inject(sess: &ParseSess, impl<'a> CollectProcMacros<'a> { fn check_not_pub_in_root(&self, vis: &ast::Visibility, sp: Span) { if self.is_proc_macro_crate && self.in_root && vis.node.is_pub() { - self.handler.span_err(sp, - "`proc-macro` crate types cannot \ - export any items other than functions \ - tagged with `#[proc_macro_derive]` currently"); + self.handler.span_err( + sp, + "`proc-macro` crate types currently cannot export any items other \ + than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, \ + or `#[proc_macro_attribute]`", + ); } } |
