summary refs log tree commit diff
path: root/src/librustc_resolve/lib.rs
AgeCommit message (Collapse)AuthorLines
2018-06-03[beta] Fix naming conventions for new lintsVadim Petrochenkov-1/+1
2018-05-04Make extern_absolute_paths only work on the new editionManish Goregaokar-3/+2
2018-05-02Auto merge of #50355 - petrochenkov:50187, r=oli-obkbors-12/+9
Fix an unresolved import issue with enabled `use_extern_macros` This is a kinda ugly special-purpose solution that will break if we suddenly add a fourth namespace, but I hope to come up with something more general if I get to import resolution refactoring this summer. Fixes https://github.com/rust-lang/rust/issues/50187 thus removing a blocker for stabilization of `use_extern_macros`
2018-05-01resolve (cleanup): Get rid of `Option` in `PerNS`Vadim Petrochenkov-12/+9
2018-04-27Add one more prelude layer for extern crate names passed with `--extern`Vadim Petrochenkov-7/+29
2018-04-25Fix crate:: in local pathsManish Goregaokar-4/+5
2018-04-20mention that extern absolute paths should gate on rust 2018Manish Goregaokar-0/+2
2018-04-20Add suggestion to lintManish Goregaokar-3/+6
2018-04-20Add ABSOLUTE_PATH_STARTING_WITH_MODULE epoch lint for path breakageManish Goregaokar-2/+27
2018-04-19Pass down NodeId to resolve_pathManish Goregaokar-8/+12
2018-04-17Turn some comments into doccommentsMark Mansi-53/+54
2018-04-16Auto merge of #49847 - sinkuu:save_analysis_implicit_extern, r=petrochenkovbors-1/+1
Fix save-analysis generation with extern_in_paths/extern_absolute_paths Fixes #48742.
2018-04-11Rollup merge of #49525 - varkor:sort_by_cached_key-conversion, r=scottmcmkennytm-9/+8
Use sort_by_cached_key where appropriate A follow-up to https://github.com/rust-lang/rust/pull/48639, converting various slice sorting calls to `sort_by_cached_key` when the key functions are more expensive.
2018-04-11Extend `ExternCrate` to cover externs inferred from `use` or pathsShotaro Yamada-1/+1
2018-04-09Convert sort_unstable_by_key to sort_by_cached_keyvarkor-7/+3
2018-04-09Convert sort_by_key to sort_by_cached_keyvarkor-2/+5
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-1/+0
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-06Remove more duplicated spansVadim Petrochenkov-7/+7
2018-04-06Rename `ast::Variant_::name` into `ident` + Fix rebaseVadim Petrochenkov-2/+2
2018-04-06Get rid of `SpannedIdent`Vadim Petrochenkov-67/+66
2018-04-06Rename `PathSegment::identifier` to `ident`Vadim Petrochenkov-6/+6
2018-04-06Use `Span` instead of `SyntaxContext` in `Ident`Vadim Petrochenkov-26/+27
2018-04-05Rollup merge of #49350 - abonander:macros-in-extern, r=petrochenkovAlex Crichton-0/+1
Expand macros in `extern {}` blocks This permits macro and proc-macro and attribute invocations (the latter only with the `proc_macro` feature of course) in `extern {}` blocks, gated behind a new `macros_in_extern` feature. A tracking issue is now open at #49476 closes #48747
2018-04-04Updated codeblocks to specify language where required.David Wood-3/+3
2018-04-03expand macro invocations in `extern {}` blocksAustin Bonander-0/+1
2018-03-26Auto merge of #49101 - mark-i-m:stabilize_i128, r=nagisabors-12/+1
Stabilize 128-bit integers :tada: cc #35118 EDIT: This should be merged only after the following have been merged: - [x] https://github.com/rust-lang-nursery/compiler-builtins/pull/236 - [x] https://github.com/rust-lang/book/pull/1230
2018-03-26remove unneeded importMark Mansi-1/+1
2018-03-26Stabilize i128_typeMark Mansi-11/+0
2018-03-26Rollup merge of #48693 - vorner:doc-name-resolution, r=petrochenkovTim Neumann-3/+58
Some comments and documentation for name resolution crate Hello I'm trying to get a grasp of how the name resolution crate works, as part of helping with https://github.com/rust-lang-nursery/rustc-guide/issues/16. Not that I'd be succeeding much, but as I was reading the code, I started to put some notes into it, to help me understand. I guess I didn't get very far yet, but I'd like to share what I have, in case it might be useful for someone else. I hope these are correct (even if incomplete), but I'll be glad for a fast check in case I put something misleading there.
2018-03-24fixup! Some comments and documentation for name resolution crateMichal 'vorner' Vaner-7/+23
2018-03-18Initial implementation of RFC 2151, Raw IdentifiersLymia Aluysia-1/+1
2018-03-17Rename `Span::empty` to `Span::shrink_to_lo`, add `Span::shrink_to_hi`Vadim Petrochenkov-3/+3
2018-03-17AST: Keep distinction between `path` and `::path` in imports and visibilitiesVadim Petrochenkov-8/+11
Add the root segment for name resolution purposes only
2018-03-14Some tweaks to "type parameters from outer function" diagnosticEsteban Küber-12/+18
Follow up to #47574.
2018-03-12Some comments and documentation for name resolution crateMichal 'vorner' Vaner-3/+42
2018-03-08Update "type parameters from outer function" error messagesBasile Desloges-6/+122
2018-03-05Turn features() into a query.Michael Woerister-3/+3
2018-03-02Replace Rc with Lrc for shared dataJohn Kåre Alsaker-3/+3
2018-02-28Remove E0245; improve E0404 explanationMark Mansi-7/+9
2018-02-24Implement multiple patterns with `|` in `if let` and `while let`Vadim Petrochenkov-12/+24
2018-02-23Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkovbors-5/+7
Fix span of visibility This PR 1. adds a closing parenthesis to the span of `Visibility::Crate` (e.g. `pub(crate)`). The current span only covers `pub(crate`. 2. adds a `span` field to `Visibility::Restricted`. This span covers the entire visibility expression (e.g. `pub (in self)`). Currently all we can have is a span for `Path`. This PR is motivated by the bug found in rustfmt (https://github.com/rust-lang-nursery/rustfmt/issues/2398). The first change is a strict improvement IMHO. The second change may not be desirable, as it adds a field which is currently not used by the compiler.
2018-02-20stage0 cfg cleanupMark Simulacrum-1/+0
2018-02-17fix more typos found by codespell.Matthias Krüger-1/+1
2018-02-18Change ast::Visibility to Spanned typeSeiichi Uchida-5/+7
2018-02-18Add a span field to Visibility::RestrictedSeiichi Uchida-1/+1
This span covers the whole visibility expression: e.g. `pub (in path)`.
2018-01-28use correct casing for rename suggestionsAndy Russell-3/+9
If the original name is uppercase, use camel case. Otherwise, use snake case.
2018-01-28Auto merge of #47767 - estebank:as-suggestion, r=petrochenkovbors-3/+9
Correctly format `extern crate` conflict resolution help Closes #45799. Follow up to @Cldfire's #45820. If the `extern` statement that will have a suggestion ends on a `;`, synthesize a new span that doesn't include it.
2018-01-27end_point handling multibyte characters correctly.David Wood-2/+2
2018-01-26Instead of modifying the item's span synthesize itEsteban Küber-1/+7
2018-01-25Correctly format `extern crate` conflict resolution helpCldfire-2/+2