Eduard-Mihai Burtescu
812a8c1e33
Rollup merge of #35596 - crypto-universe:E0254_style_and_tests, r=jonathandturner
...
Add label to E0254
This issue #35513 is a part of #35233 .
r? @jonathandturner
2016-08-14 20:29:50 +03:00
bors
8787a12334
Auto merge of #35592 - jonathandturner:rollup, r=jonathandturner
...
Rollup of 23 pull requests
- Successful merges: #35279 , #35331 , #35358 , #35375 , #35445 , #35448 , #35482 , #35486 , #35505 , #35528 , #35530 , #35532 , #35536 , #35537 , #35541 , #35552 , #35554 , #35555 , #35557 , #35562 , #35565 , #35569 , #35576
- Failed merges: #35395 , #35415 , #35563
2016-08-11 13:14:28 -07:00
crypto-universe
4209f948b1
Add label to E0254
...
This issue #35513 is a part of #35233 .
r? @jonathandturner
2016-08-11 20:15:10 +02:00
Jonathan Turner
d3af9a38ed
Fix tidy warning
2016-08-11 10:17:12 -07:00
Jonathan Turner
294ac7b561
Rollup merge of #35536 - hank-der-hafenarbeiter:E0433, r=jonathandturner
...
Updated E0433 to new error message. (no bonus)
Part of #35345
r? @jonathandturner
2016-08-11 06:33:59 -07:00
petrochenkov
08f0f7c54a
Substitute private type aliases in rustdoc
2016-08-11 00:32:07 +03:00
Niko Matsakis
ae9c049cfc
remove field that need not be public
2016-08-09 20:28:46 -04:00
hank-der-hafenarbeiter
ee076dd937
Updated E0433 to new error message. (no bonus)
2016-08-09 00:26:43 +02:00
bors
f5e7a5910d
Auto merge of #35362 - medzin:E0252, r=GuillaumeGomez
...
Updated error message E0252
Fixes #35306 as part of #35233 .
r? @GuillaumeGomez
2016-08-07 05:48:47 -07:00
Adam Medziński
f4dd1f9500
Updated error message E0252
2016-08-06 13:31:03 +02:00
bors
7bf54f90d6
Auto merge of #35116 - jseyfried:groundwork_for_new_import_semantics, r=nrc
...
resolve: diagnostics improvement and groundwork for RFC 1560
Fixes #35115 , fixes #35135 , and lays groundwork for #32213 (cc #35120 ).
r? @nrc
2016-08-05 14:42:42 -07:00
Ryan Scott
19e140b946
Update E0404 to new format.
2016-08-05 17:36:43 +09:00
Jeffrey Seyfried
0db8ca6ca2
nit: rename module_ -> module
2016-08-01 19:10:05 +00:00
Jeffrey Seyfried
6372a6d7c2
Improve diagnostics for pattern bindings that illegally shadow items.
...
Improve unused import detection.
2016-08-01 19:09:58 +00:00
Jeffrey Seyfried
07c706b57c
Clean up resolver.record_use().
2016-08-01 19:06:47 +00:00
Jeffrey Seyfried
b107a4e4f6
Refactor module.try_define_child(..) -> resolver.try_define(module, ..).
2016-08-01 19:06:45 +00:00
Jeffrey Seyfried
d6b10beb88
Make "type aliases cannot be used for traits" a note instead of a span_label.
2016-07-31 21:29:01 +00:00
Jeffrey Seyfried
93fd214d61
Clean up resolve_trait_reference.
2016-07-31 20:40:03 +00:00
Jeffrey Seyfried
46bd5d3fa0
Avoid emitting a unhelpful cascading resolution error.
2016-07-31 20:17:08 +00:00
Manish Goregaokar
8c6421fb17
Rollup merge of #35063 - jseyfried:avoid_importing_inaccessible_names, r=nrc
...
resolve: Exclude inaccessible names from single imports
If a single import resolves to an inaccessible name in some but not all namespaces, avoid importing the name in the inaccessible namespaces.
Currently, the inaccessible namespaces are imported but cause a privacy error when used.
r? @nrc
2016-07-30 13:44:46 +05:30
Jeffrey Seyfried
132bff9933
If a single import resolves to an inaccessible name in some but not all namespaces,
...
avoid importing the name in the inaccessible namespaces.
Currently, the inaccessible namespaces are imported but cause a privacy error when used.
2016-07-27 05:17:04 +00:00
Vadim Petrochenkov
d7a968eb1c
Fix ICE happening when unresolved imports are used in patterns
2016-07-21 21:19:16 +03:00
Jeffrey Seyfried
44575f708a
Rename mtwt to hygiene
2016-07-17 17:12:35 +00:00
Jeffrey Seyfried
76ed445622
Clean up and encapsulate syntax::ext::mtwt
2016-07-17 17:12:32 +00:00
Jeffrey Seyfried
c83e31e7c9
Include the MacroDefinition rib in the label ribs.
2016-07-15 05:16:21 +00:00
Jeffrey Seyfried
0701571fe7
Implement macro_rules! placeholders and the macro scope map
2016-07-14 01:34:37 +00:00
Jeffrey Seyfried
a15dfca54f
Instead of renaming, treat differently marked identifiers as unequal
2016-07-14 01:34:31 +00:00
Jeffrey Seyfried
195a27faab
Move node id assigning into resolve
2016-07-14 01:30:19 +00:00
petrochenkov
d27e55c5d8
Stabilize FnOnce::Output + Fix rebase
2016-07-08 13:35:17 +03:00
Vadim Petrochenkov
eb32440d45
Do not generate Def::Err in bindings
...
Instead of Def::Err erroneous bindings can get usual definitions that doesn't require special cases later on and have less chances to generate ICE.
2016-07-08 12:42:57 +03:00
Vadim Petrochenkov
d3c94b25cb
Don't generate Def::Err if it's not stored in def_map immediately
2016-07-08 12:36:45 +03:00
bors
b4e11c2af8
Auto merge of #34655 - jseyfried:improve_resolver_api, r=nrc
...
Add to `resolve`'s public API
This adds a public method `with_module_lexical_scope` to `Resolver` to allow users to resolve a path in the lexical scope of an arbitrary module.
r? @nrc
2016-07-06 23:18:23 -07:00
Steve Klabnik
26821a6f88
Rollup merge of #34636 - tshepang:shorten, r=GuillaumeGomez
...
doc: fix and shorten comment
2016-07-06 19:13:08 -04:00
Jeffrey Seyfried
58dd06d9e5
Add FIXME comment
2016-07-05 22:38:41 +00:00
Jeffrey Seyfried
6e0bd44fa3
Add method with_module_lexical_scope to Resolver.
2016-07-05 08:50:43 +00:00
Tshepang Lekhonkhobe
5efc780e14
doc: fix and shorten comment
2016-07-03 22:03:45 +02:00
Jeffrey Seyfried
d1e3d6272e
Add the after_expand entry point between import resolution and the rest of name resolution
2016-07-01 00:07:32 +00:00
Manish Goregaokar
8e2598c3d2
Rollup merge of #34542 - jseyfried:fix_recursive_modules, r=nrc
...
Fix non-termination on recursive module re-exports in extern crates
Fixes #33776 .
r? @nrc
2016-06-29 21:21:24 +05:30
Jeffrey Seyfried
232783c914
Fix infinite loop on recursive module exports in an extern crate
2016-06-28 23:03:56 +00:00
Jeffrey Seyfried
e58963d3e4
groundwork: create the Resolver earlier in phase 2
2016-06-28 05:28:27 +00:00
Jeffrey Seyfried
ec0c150152
groundwork: refactor the interface that resolve exposes to driver
2016-06-28 05:28:26 +00:00
Jeffrey Seyfried
4a13bcb4fb
groundwork: use resolve_identifier instead of resolve_path to classify ident patterns
2016-06-28 05:28:23 +00:00
Jeffrey Seyfried
8748cd92d0
Rollup merge of #34316 - jseyfried:refactor_ast_stmt, r=eddyb
...
Refactor away `ast::Decl`, refactor `ast::Stmt`, and rename `ast::ExprKind::Again` to `ast::ExprKind::Continue`.
2016-06-26 02:17:27 +00:00
Jeffrey Seyfried
33ea1e330c
Rollup merge of #33943 - jseyfried:libsyntax_cleanup, r=nrc
...
Miscellaneous low priority cleanup in `libsyntax`.
2016-06-26 02:15:04 +00:00
Jeffrey Seyfried
d3ae56d755
Rollup merge of #34403 - jonathandturner:move_liberror, r=alexcrichton
...
This PR refactors the 'errors' part of libsyntax into its own crate (librustc_errors). This is the first part of a few refactorings to simplify error reporting and potentially support more output formats (like a standardized JSON output and possibly an --explain mode that can work with the user's code), though this PR stands on its own and doesn't assume further changes.
As part of separating out the errors crate, I have also refactored the code position portion of codemap into its own crate (libsyntax_pos). While it's helpful to have the common code positions in a separate crate for the new errors crate, this may also enable further simplifications in the future.
2016-06-25 22:35:09 +00:00
Jeffrey Seyfried
4e2e31c118
Rollup merge of #34368 - petrochenkov:astqpath, r=Manishearth
...
The AST part of https://github.com/rust-lang/rust/pull/34365
plugin-[breaking-change] cc https://github.com/rust-lang/rust/issues/31645
2016-06-25 22:35:06 +00:00
Jeffrey Seyfried
f0310e061b
Rollup merge of #34213 - josephDunne:trait_item_macros, r=jseyfried
...
**syntax-[breaking-change]** cc #31645
New `TraitItemKind::Macro` variant
This change adds support for macro expansion inside trait items by adding the new `TraitItemKind::Macro` and associated parsing code.
2016-06-25 22:35:01 +00:00
Jonathan Turner
6ae3502134
Move errors from libsyntax to its own crate
2016-06-23 08:07:35 -04:00
Vadim Petrochenkov
f903c97959
Merge PatKind::QPath into PatKind::Path in AST
2016-06-20 23:39:02 +03:00
Guillaume Gomez
8637b4b034
Remove unused functions calls and unused E0406
2016-06-18 17:02:41 +02:00