Skip to content

Rollup of 11 pull requests #34552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Jun 30, 2016
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7ffd46c
add regression test for #33455
dsprenkels Jun 24, 2016
58955de
Add new error codes and improve some explanations
GuillaumeGomez Jun 25, 2016
e01a2ba
Forbid type parameters and global paths in macro invocations
jseyfried Jun 27, 2016
b4611b1
Add regression test
jseyfried Jun 27, 2016
b8f9c88
Revert "skip double negation in const eval"
oli-obk Jun 27, 2016
f41de0f
Disable debuginfo tests for a given blacklist of LLDB versions
michaelwoerister Jun 27, 2016
beebaf1
rustdoc: Fix a few stripping issues
ollie27 Jun 27, 2016
b968ee3
cleanup: don't count attributes on an item in a statement position as…
jseyfried Jun 14, 2016
2dc15f2
cleanup: use `DummyResult` to implement `MacroGenerable::dummy`
jseyfried Jun 17, 2016
4a13bcb
groundwork: use `resolve_identifier` instead of `resolve_path` to cla…
jseyfried Jun 19, 2016
36a4eb9
cleanup: refactor away `ast::NodeIdAssigner`
jseyfried Jun 22, 2016
ec0c150
groundwork: refactor the interface that `resolve` exposes to `driver`
jseyfried Jun 22, 2016
e58963d
groundwork: create the `Resolver` earlier in phase 2
jseyfried Jun 22, 2016
f05da01
rustdoc: Fix empty Implementations section on some module pages
ollie27 Jun 28, 2016
232783c
Fix infinite loop on recursive module exports in an extern crate
jseyfried Jun 28, 2016
9ffe1c9
Add regression test
jseyfried Jun 29, 2016
66ef652
Disallow `derive` on items with type macros
jseyfried Jun 24, 2016
a595ffa
Treat `MultiDecorator`s as a special case of `MultiModifier`s
jseyfried Jun 24, 2016
a9d25f8
Refactor away `parser.commit_stmt_expecting()`
jseyfried Jun 29, 2016
8557a2e
Give `ast::ExprKind::Paren` no-op expressions the same node ids as th…
jseyfried Jun 19, 2016
f74d0fb
Rollup merge of #34355 - jseyfried:paren_expression_ids_nonunique, r=nrc
Manishearth Jun 29, 2016
470c519
Rollup merge of #34446 - jseyfried:refactor_decorators, r=nrc
Manishearth Jun 29, 2016
fd45e6e
Rollup merge of #34459 - jseyfried:expansion_cleanup, r=nrc
Manishearth Jun 29, 2016
d11ac23
Rollup merge of #34460 - dsprenkels:issue-33455, r=alexcrichton
Manishearth Jun 29, 2016
2a0c2c3
Rollup merge of #34467 - GuillaumeGomez:err-codes, r=brson
Manishearth Jun 29, 2016
8886818
Rollup merge of #34495 - jseyfried:only_ident_macro_invocations, r=eddyb
Manishearth Jun 29, 2016
2e893ea
Rollup merge of #34497 - oli-obk:double_negation, r=eddyb
Manishearth Jun 29, 2016
5bd3ef8
Rollup merge of #34499 - michaelwoerister:lldb-blacklist, r=alexcrichton
Manishearth Jun 29, 2016
b393c7e
Rollup merge of #34513 - ollie27:rustdoc_stripped, r=alexcrichton
Manishearth Jun 29, 2016
cc15c21
Rollup merge of #34536 - ollie27:rustdoc_module_impls, r=alexcrichton
Manishearth Jun 29, 2016
8e2598c
Rollup merge of #34542 - jseyfried:fix_recursive_modules, r=nrc
Manishearth Jun 29, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libsyntax/ext/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ fn expand_mac_invoc<T>(mac: ast::Mac, ident: Option<Ident>, attrs: Vec<ast::Attr
&fld.cx.ecfg.features.unwrap());
}

if path.segments.len() > 1 {
if path.segments.len() > 1 || path.global || !path.segments[0].parameters.is_empty() {
fld.cx.span_err(path.span, "expected macro name without module separators");
return None;
}
Expand Down
6 changes: 3 additions & 3 deletions src/test/compile-fail/macro-with-seps-err-msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// error-pattern:expected macro name without module separators

fn main() {
globnar::brotz!();
globnar::brotz!(); //~ ERROR expected macro name without module separators
::foo!(); //~ ERROR expected macro name without module separators
foo::<T>!(); //~ ERROR expected macro name without module separators
}