about summary refs log tree commit diff
path: root/src/librustc_resolve
AgeCommit message (Collapse)AuthorLines
2016-09-02Address comments.Jeffrey Seyfried-18/+25
2016-09-01Avoid cascading name resolution errors caused by an ambiguous module.Jeffrey Seyfried-30/+40
2016-09-01Avoid reporting multiple ambiguity errors for a single use of a name.Jeffrey Seyfried-11/+19
2016-09-01item_like_imports: Allow unused ambiguous glob imports.Jeffrey Seyfried-10/+55
2016-09-01item_like_imports: Allow multiple glob imports of the same item.Jeffrey Seyfried-5/+15
2016-09-01item_like_imports: Make all visible items glob importable.Jeffrey Seyfried-3/+11
2016-09-01item_like_imports: Allow glob imports with a given visibilityJeffrey Seyfried-5/+27
to reexport some (but not all) names with less visibility.
2016-09-01item_like_imports: Allow single imports with a given visibilityJeffrey Seyfried-11/+40
to reexport some (but not all) namespaces with less visibility.
2016-09-01item_like_imports: Allow glob imports to be shadowed by items and single ↵Jeffrey Seyfried-7/+13
imports.
2016-09-01item_like_imports: Treat private imports like private items.Jeffrey Seyfried-1/+3
2016-09-01Add `item_like_imports` feature.Jeffrey Seyfried-0/+2
2016-09-01Add field `dummy_binding` to `Resolver`.Jeffrey Seyfried-8/+9
2016-09-01Refactor away `resolver.current_vis` and add `module.normal_ancestor_id`.Jeffrey Seyfried-89/+47
2016-09-01Improve diagnostics and remove dead code.Jeffrey Seyfried-29/+17
2016-09-01Refactor `binding.def()` to return a `Def` instead of an `Option<Def>`.Jeffrey Seyfried-22/+20
2016-09-01Rename `new_binding` -> `binding`.Jeffrey Seyfried-4/+4
2016-09-01Refactor away `binding.is_pseudo_public()`.Jeffrey Seyfried-10/+5
2016-08-31Rollup merge of #35773 - EugeneGonzalez:master, r=jonathandturnerJonathan Turner-1/+5
Change E0259 to the new error format Fixes #35514 as part of #35233. Sorry about creating a new PR I was having a lot of troubles squashing the commit because I didn't properly branch the new feature. r? @GuillaumeGomez
2016-08-31Rollup merge of #36141 - GuillaumeGomez:err_codes, r=jonathandturnerJonathan Turner-2/+36
Err codes r? @jonathandturner
2016-08-30Change E0259 to the new error formatEugene R Gonzalez-1/+5
Fixed E0259 unit test Added name of conflict to E0259's note
2016-08-30Add E0530 error explanationggomez-2/+36
2016-08-30Auto merge of #36126 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-1/+5
Rollup of 16 pull requests - Successful merges: #35418, #35759, #35862, #35863, #35895, #35962, #35977, #35993, #35997, #36054, #36056, #36060, #36086, #36100, #36103, #36125 - Failed merges: #35771, #35810
2016-08-30Auto merge of #36066 - jseyfried:rollup, r=Manishearthbors-12/+18
Batch up libsyntax breaking changes Batch of the following syntax-[breaking-change] changes: - #35591: Add a field `span: Span` to `ast::Generics`. - #35618: Remove variant `Mod` of `ast::PathListItemKind` and refactor the remaining variant `ast::PathListKind::Ident` to a struct `ast::PathListKind_`. - #35480: Change uses of `Constness` in the AST to `Spanned<Constness>`. - c.f. `MethodSig`, `ItemKind` - #35728: Refactor `cx.pat_enum()` into `cx.pat_tuple_struct()` and `cx.pat_path()`. - #35850: Generalize the elements of lists in attributes from `MetaItem` to a new type `NestedMetaItem` that can represent a `MetaItem` or a literal. - #35917: Remove traits `AttrMetaMethods`, `AttributeMethods`, and `AttrNestedMetaItemMethods`. - Besides removing imports of these traits, this won't cause fallout. - Add a variant `Union` to `ItemKind` to future proof for `union` (c.f. #36016). - Remove inherent methods `attrs` and `fold_attrs` of `Annotatable`. - Use methods `attrs` and `map_attrs` of `HasAttrs` instead. r? @Manishearth
2016-08-29Update E0260 to new error formatMohit Agarwal-1/+5
Updates #35515. Part of #35233. r? @jonathandturner
2016-08-29Future proof the AST for `union`.Jeffrey Seyfried-0/+3
2016-08-28Rollup merge of #35618 - jseyfried:ast_view_path_refactor, r=eddybJeffrey Seyfried-12/+15
Refactor `PathListItem`s This refactors away variant `Mod` of `ast::PathListItemKind` and refactors the remaining variant `Ident` to a struct `ast::PathListItem_`.
2016-08-27Use `FnvHashMap` in more placesJonas Schievink-27/+26
* A step towards #34902 * More stable error messages in some places related to crate loading * Possible slight performance improvements since all `HashMap`s replaced had small keys where `FnvHashMap` should be faster (although I didn't measure)
2016-08-22Rollup merge of #35858 - shyaamsundhar:patch-1, r=GuillaumeGomezJonathan Turner-6/+12
E0435, E0437 & E0438 New Error Format Part of #35801 , #35802 and #35803 r? @GuillaumeGomez Hi! Please review the changes.
2016-08-22Rollup merge of #35841 - kyrias:new-error-E0424, r=GuillaumeGomezJonathan Turner-3/+5
Update E0424 to the new error format Fixes #35797. Part of #35233. r? @GuillaumeGomez
2016-08-22Rollup merge of #35835 - crypto-universe:E0426, r=jonathandturnerJonathan Turner-5/+7
New format for E0426 Issue #35799 as a part of issue #35233 r? jonathandturner
2016-08-22 Updated E0423 to new formatKnight-2/+4
2016-08-22 Updated E0432 to new formatKnight-5/+9
2016-08-21Refactor away variant `ast::PathListItemKind::Mod`Jeffrey Seyfried-12/+15
and refactor `ast::PathListItemKind::Ident` -> `ast::PathListItem_`.
2016-08-21Auto merge of #35776 - jseyfried:more_groundwork, r=nrcbors-402/+377
resolve: More groundwork for `item_like_imports` (RFC 1560) r? @nrc
2016-08-21Update lib.rsShyam Sundar B-6/+12
Update lib.rs Update lib.rs Update E0438.rs Update E0437.rs Update E0435.rs
2016-08-20Update E0424 to the new error formatJohannes Löthberg-3/+5
Fixes #35797. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
2016-08-19New format for E0426crypto-universe-5/+7
Issue #35799 as a part of issue #35233 ?r jonathandturner
2016-08-19Update E0428 to new formattrixnz-1/+5
2016-08-18Add type `Determinacy`.Jeffrey Seyfried-9/+16
2016-08-18Refactor away `ImportResolvingError`.Jeffrey Seyfried-30/+10
2016-08-18Rename `source` -> `name` in `finalize_import`.Jeffrey Seyfried-21/+20
2016-08-18Rename `target_module` to `module` or `imported_module`.Jeffrey Seyfried-26/+24
2016-08-18Improve import failure detection.Jeffrey Seyfried-11/+20
2016-08-18Refactor out `finalize_import()` from `resolve_import()`.Jeffrey Seyfried-101/+125
2016-08-18Check privacy in `resolve_name_in_module`.Jeffrey Seyfried-18/+6
2016-08-18Refactor `value_determined` -> `value_result`, `type_determined` -> ↵Jeffrey Seyfried-40/+45
`type_result`.
2016-08-18Refactor `resolve_module_path` to take an `Option<Span>` instead of a `Span`.Jeffrey Seyfried-21/+17
2016-08-18Refactor `record_used: bool` -> `record_used: Option<Span>`.Jeffrey Seyfried-17/+22
2016-08-18Refactor away the field `arenas` of `ModuleS`.Jeffrey Seyfried-20/+14
2016-08-18Refactor away `module.resolve_name()`.Jeffrey Seyfried-77/+75