about summary refs log tree commit diff
path: root/src/librustc_resolve
AgeCommit message (Collapse)AuthorLines
2018-08-24check that adding infer-outlives requirement to all crates worksNiko Matsakis-0/+1
2018-08-24Auto merge of #53662 - kennytm:rollup, r=kennytmbors-1/+1
Rollup of 16 pull requests Successful merges: - #53311 (Window Mutex: Document that we properly initialize the SRWLock) - #53503 (Discourage overuse of mem::forget) - #53545 (Fix #50865: ICE on impl-trait returning functions reaching private items) - #53559 (add macro check for lint) - #53562 (Lament the invincibility of the Turbofish) - #53563 (use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()) - #53592 (docs: minor stylistic changes to str/string docs) - #53594 (Update RELEASES.md to include clippy-preview) - #53600 (Fix a grammatical mistake in "expected generic arguments" errors) - #53614 (update nomicon and book) - #53617 (tidy: Stop requiring a license header) - #53618 (Add missing fmt examples) - #53636 (Prefer `.nth(n)` over `.skip(n).next()`.) - #53644 (Use SmallVec for SmallCStr) - #53664 (Remove unnecessary closure in rustc_mir/build/mod.rs) - #53666 (Added rustc_codegen_llvm to compiler documentation.)
2018-08-24Rollup merge of #53563 - matthiaskrgr:String, r=varkorkennytm-1/+1
use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()
2018-08-24Turn the error for module-relative access to macro-expanded `macro_export` ↵Vadim Petrochenkov-3/+6
macros into a deprecation lint
2018-08-23Auto merge of #53384 - gootorov:use-servo-smallvec, r=michaelwoeristerbors-0/+1
Use optimized SmallVec implementation This PR replaces current SmallVec implementation with the one from the Servo project. Closes https://github.com/rust-lang/rust/issues/51640 r? @Mark-Simulacrum
2018-08-23Auto merge of #53459 - petrochenkov:stabmore, r=nrcbors-15/+0
Stabilize a few secondary macro features - `tool_attributes` - closes https://github.com/rust-lang/rust/issues/44690 - `proc_macro_path_invoc` - this feature was created due to issues with tool attributes (https://github.com/rust-lang/rust/issues/51277), those issues are now fixed (https://github.com/rust-lang/rust/pull/52841) - partially `proc_macro_gen` - this feature was created due to issue https://github.com/rust-lang/rust/issues/50504, the issue is now fixed (https://github.com/rust-lang/rust/pull/51952), so proc macros can generate modules. They still can't generate `macro_rules` items though due to unclear hygiene interactions.
2018-08-23use String::new() instead of String::from(""), "".to_string(), "".to_owned() ↵Matthias Krüger-1/+1
or "".into()
2018-08-23Use optimized SmallVec implementationIgor Gutorov-0/+1
2018-08-23Stabilize a few secondary macro featuresVadim Petrochenkov-15/+0
`tool_attributes`, `proc_macro_path_invoc`, partially `proc_macro_gen`
2018-08-22Auto merge of #53607 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-3/+15
Rollup of 10 pull requests Successful merges: - #53418 (Mark some suggestions as MachineApplicable) - #53431 (Moved some feature gate ui tests to correct location) - #53442 (Update version of rls-data used with save-analysis) - #53504 (Set applicability for more suggestions.) - #53541 (Fix missing impl trait display as ret type) - #53544 (Point at the trait argument when using unboxed closure) - #53558 (Normalize source line and column numbers.) - #53562 (Lament the invincibility of the Turbofish) - #53574 (Suggest direct raw-pointer dereference) - #53585 (Remove super old comment on function that parses items) Failed merges: - #53472 (Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.) - #53563 (use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()) r? @ghost
2018-08-22Rollup merge of #53504 - ekse:suggestions-applicability-2, r=estebankGuillaume Gomez-3/+15
Set applicability for more suggestions. Converts a couple more calls to `span_suggestion_with_applicability` (#50723). To be on the safe side, I marked suggestions that depend on the intent of the user or that are potentially lossy conversions as MaybeIncorrect. r? @estebank
2018-08-22Replace TyForeign with ForeignTyvarkor-3/+3
2018-08-22Rename Def::{Param, Foreign} to Def::{TyParam, TyForeign}varkor-8/+8
2018-08-22Remove Ty prefix from Ty{Bool|Char|Int|Uint|Float|Str}varkor-19/+19
2018-08-22Remove Ty prefix from Ty{Foreign|Param}varkor-8/+8
2018-08-22Auto merge of #53516 - petrochenkov:derregr, r=estebankbors-11/+12
resolve: Continue search in outer scopes after applying derive resolution fallback Fixes https://github.com/rust-lang/rust/issues/53263
2018-08-22Auto merge of #53509 - petrochenkov:wildregr, r=alexcrichtonbors-0/+5
resolve: Reject some inaccessible candidates sooner during import resolution This allows import resolution to progress in cases like #53140 Fixes #53140
2018-08-21Auto merge of #53471 - petrochenkov:biattr2, r=oli-obkbors-293/+256
resolve: Some macro resolution refactoring Work towards completing https://github.com/rust-lang/rust/pull/50911#issuecomment-411605393 The last commit also fixes https://github.com/rust-lang/rust/issues/53269 by not using `def_id()` on `Def::Err` and also fixes https://github.com/rust-lang/rust/issues/53512.
2018-08-21Auto merge of #53530 - kennytm:rollup, r=kennytmbors-1/+1
Rollup of 17 pull requests Successful merges: - #53030 (Updated RELEASES.md for 1.29.0) - #53104 (expand the documentation on the `Unpin` trait) - #53213 (Stabilize IP associated constants) - #53296 (When closure with no arguments was expected, suggest wrapping) - #53329 (Replace usages of ptr::offset with ptr::{add,sub}.) - #53363 (add individual docs to `core::num::NonZero*`) - #53370 (Stabilize macro_vis_matcher) - #53393 (Mark libserialize functions as inline) - #53405 (restore the page title after escaping out of a search) - #53452 (Change target triple used to check for lldb in build-manifest) - #53462 (Document Box::into_raw returns non-null ptr) - #53465 (Remove LinkMeta struct) - #53492 (update lld submodule to include RISCV patch) - #53496 (Fix typos found by codespell.) - #53521 (syntax: Optimize some literal parsing) - #53540 (Moved issue-53157.rs into src/test/ui/consts/const-eval/) - #53551 (Avoid some Place clones.) Failed merges: r? @ghost
2018-08-21Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkorkennytm-1/+1
Fix typos found by codespell.
2018-08-21resolve: Unify reporting of ambiguity errors for macro pathsVadim Petrochenkov-33/+56
2018-08-20resolve: Refactor away `MacroBinding`Vadim Petrochenkov-107/+73
`fn resolve_legacy_scope` can now resolve only to `macro_rules!` items, `fn resolve_lexical_macro_path_segment` is for everything else - modularized macros, preludes
2018-08-20resolve: Consolidate error reporting for resolved macros in `fn ↵Vadim Petrochenkov-113/+95
resolve_macro_to_def`
2018-08-20resolve: Move derive attribute detection closer to other macro ident ↵Vadim Petrochenkov-61/+53
resolution code Refactor away `fn resolve_invoc_to_def`
2018-08-20Auto merge of #51880 - varkor:generics-hir-generalisation-followup, r=eddybbors-24/+27
The Great Generics Generalisation: HIR Followup Addresses the final comments in #48149. r? @eddyb, but there are a few things I have yet to clean up. Making the PR now to more easily see when things break. cc @yodaldevoid
2018-08-20Set applicability for more suggestions.Sébastien Duquette-3/+15
2018-08-20resolve: Continue search in outer scopes after applying derive resolution ↵Vadim Petrochenkov-11/+12
fallback
2018-08-20resolve: Reject some inaccessible candidates sooner during import resolutionVadim Petrochenkov-0/+5
This allows import resolution to progress in cases like #53140
2018-08-19mv codemap source_mapDonato Sciarra-1/+1
2018-08-19mv codemap() source_map()Donato Sciarra-9/+9
2018-08-19mv (mod) codemap source_mapDonato Sciarra-1/+1
2018-08-19mv CodeMap SourceMapDonato Sciarra-2/+2
2018-08-19Fix quadratic loop in confirm.rsvarkor-1/+1
2018-08-19Replace for_each with forvarkor-20/+22
2018-08-19Address minor commentsvarkor-4/+5
2018-08-19Fix typos found by codespell.Matthias Krüger-1/+1
2018-08-18Auto merge of #52592 - eddyb:or-default, r=Mark-Simulacrumbors-5/+5
Use the new Entry::or_default method where possible.
2018-08-18Auto merge of #53324 - alexreg:self_in_typedefs, r=eddybbors-22/+41
`Self` in type definitions (self_in_typedefs) This implements the [`self_in_typedefs` feature](https://github.com/rust-lang/rfcs/blob/master/text/2300-self-in-typedefs.md) ([tracking issue 49303](https://github.com/rust-lang/rust/issues/49303)). r? @eddyb CC @Centril
2018-08-18Added page for feature to unstable book.Alexander Regueiro-2/+2
2018-08-18Added feature gate.Alexander Regueiro-4/+14
2018-08-18Updated diagnostics.Alexander Regueiro-5/+5
2018-08-18Resolve `Self` within type definitions.Alexander Regueiro-15/+24
Currently type definitions include `struct`, `enum`, `union`, `existential type`.
2018-08-18Use the new Entry::or_default method where possible.Eduard-Mihai Burtescu-5/+5
2018-08-17Auto merge of #50911 - petrochenkov:macuse, r=alexcrichtonbors-135/+12
Stabilize `use_extern_macros` Closes https://github.com/rust-lang/rust/issues/35896
2018-08-17Stabilize `use_extern_macros`Vadim Petrochenkov-135/+12
2018-08-17rustc_resolve: don't allow paths starting with `::crate`.Eduard-Mihai Burtescu-43/+36
2018-08-17special-case stdDouglas Campos-5/+7
2018-08-17rustc_resolve: overhaul `#![feature(uniform_paths)]` error reporting.Eduard-Mihai Burtescu-34/+95
2018-08-16check if we're trying to guess for a local moduleDouglas Campos-1/+2
2018-08-16properly prefix with crate:: modules that are extern but not on the preludeDouglas Campos-1/+1