about summary refs log tree commit diff
path: root/src/librustc_resolve
AgeCommit message (Collapse)AuthorLines
2020-01-01Forgot an .emit()mental-1/+2
2020-01-01Make use $crate a hard errormental-6/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-20/+20
2019-12-31Auto merge of #67764 - Centril:rollup-ycbq3os, r=Centrilbors-3/+4
Rollup of 6 pull requests Successful merges: - #67574 (Extract `rustc_ast_lowering` crate from `rustc`) - #67685 (Constify Result) - #67702 (Add symbol normalization for proc_macro_server.) - #67730 (Cleanup pattern type checking, fix diagnostics bugs (+ improvements)) - #67744 (parser: reduce diversity in error handling mechanisms) - #67748 (Use function attribute "frame-pointer" instead of "no-frame-pointer-elim") Failed merges: r? @ghost
2019-12-31librustc_ast_lowering: fix misc fallout.Mazdak Farrokhzad-2/+2
2019-12-31librustc_ast_lowering: cargo changes.Mazdak Farrokhzad-1/+2
2019-12-31Simplify ResolveLiftimes creation.Camille GILLOT-8/+18
2019-12-31Review comments.Camille GILLOT-7/+4
2019-12-31Inert doc comments.Camille GILLOT-0/+2
2019-12-31Move resolve_lifetimes query in librustc_resolve.Camille GILLOT-100/+54
2019-12-31Move resolve_lifetime.rs to librustc_resolve.Camille GILLOT-0/+2931
2019-12-30Rename `rustc_resolve/resolve_imports.rs` -> `rustc_resolve/imports.rs`Vadim Petrochenkov-8/+8
2019-12-30Rename `libsyntax_ext` and `libsyntax_expand` in codeVadim Petrochenkov-9/+9
2019-12-30Make things build againVadim Petrochenkov-2/+2
2019-12-28resolve: Minor cleanup of duplicate macro reexportsVadim Petrochenkov-25/+1
2019-12-24x.py fmt after previous deignoreMark Rousskov-798/+998
2019-12-23Simplify match exprJanusz Marcinkiewicz-2/+2
2019-12-23Extract checking for self arg to separate methodJanusz Marcinkiewicz-35/+40
2019-12-23Extend suggestion span to whole method callJanusz Marcinkiewicz-11/+15
2019-12-23Add arguments to suggestion method callJanusz Marcinkiewicz-1/+16
2019-12-23Add more detailed suggestionJanusz Marcinkiewicz-8/+8
2019-12-23Suggest calling method when first argument is `self`Janusz Marcinkiewicz-6/+37
2019-12-22Format the worldMark Rousskov-1159/+1524
2019-12-21Rollup merge of #67160 - matthewjasper:gat-generics, r=nikomatsakisMazdak Farrokhzad-3/+2
Make GATs less ICE-prone. After this PR simple lifetime-generic associated types can now be used in a compiling program. There are two big limitations: * #30472 has not been addressed in any way (see src/test/ui/generic-associated-types/iterable.rs) * Using type- and const-generic associated types errors because bound types and constants aren't handled by trait solving. * The errors are technically non-fatal, but they happen in a [part of the compiler](https://github.com/rust-lang/rust/blob/4abb0ad2731e9ac6fd5d64d4cf15b7c82e4b5a81/src/librustc_typeck/lib.rs#L298) that fairly aggressively stops compiling on errors. closes #47206 closes #49362 closes #62521 closes #63300 closes #64755 closes #67089
2019-12-201. ast::Mutability::{Mutable -> Mut, Immutable -> Not}.Mazdak Farrokhzad-1/+1
2. mir::Mutability -> ast::Mutability.
2019-12-20Resolve names in the generics of impl associated typesMatthew Jasper-3/+2
2019-12-12make visitor uses more robustMazdak Farrokhzad-4/+4
2019-12-12`AssocImplKind::{Method -> Fn}`.Mazdak Farrokhzad-10/+7
2019-12-12Remove `ast::{Impl,Trait}{Item,ItemKind}`.Mazdak Farrokhzad-32/+32
2019-12-12Unify assoc item visitors more.Mazdak Farrokhzad-4/+4
2019-12-12Unify associated item visitor.Mazdak Farrokhzad-8/+8
2019-12-12Unify `{Trait,Impl}ItemKind::TyAlias` structures.Mazdak Farrokhzad-1/+2
2019-12-12`TraitItemKind::Type` -> `TraitItemKind::TyAlias`.Mazdak Farrokhzad-4/+4
2019-12-12Use `Option` in `ImplItemKind::Method`.Mazdak Farrokhzad-4/+6
2019-12-11resolve: Always resolve visibilities on impl itemsVadim Petrochenkov-12/+12
2019-12-11Rollup merge of #67074 - ehuss:extern-options, r=petrochenkovMazdak Farrokhzad-2/+4
Add options to --extern flag. This changes the `--extern` flag so that it can take a series of options that changes its behavior. The general syntax is `[opts ':'] name ['=' path]` where `opts` is a comma separated list of options. Two options are supported, `priv` which replaces `--extern-private` and `noprelude` which avoids adding the crate to the extern prelude. ```text --extern priv:mylib=/path/to/libmylib.rlib --extern noprelude:alloc=/path/to/liballoc.rlib ``` `noprelude` is to be used by Cargo's build-std feature in order to use `--extern` to reference standard library crates. This also includes a second commit which adds the `aux-crate` directive to compiletest. I can split this off into a separate PR if desired, but it helps with defining these kinds of tests. It is based on #54020, and can be used in the future to replace and simplify some of the Makefile tests.
2019-12-09resolve: Make visibility resolution more speculativeVadim Petrochenkov-60/+85
To avoid potential duplicate diagnostics and separate the error reporting logic
2019-12-09resolve: Cleanup some field processing codeVadim Petrochenkov-32/+31
2019-12-09resolve: Resolve visibilities on fields with non-builtin attributesVadim Petrochenkov-4/+14
2019-12-09Add options to --extern flag.Eric Huss-2/+4
2019-12-06Rename to `then_some` and `then`varkor-4/+4
2019-12-06Use `to_option` in various placesvarkor-20/+5
2019-11-30Rollup merge of #66895 - Centril:rustc_feature, r=oli-obkMazdak Farrokhzad-14/+8
Feature gating *declarations* => new crate `rustc_feature` This PR moves the data-oriented parts of feature gating into its own crate, `rustc_feature`. The parts consist of some data types as well as `accepted`, `active`, `removed`, and `builtin_attrs`. Feature gate checking itself remains in `syntax::feature_gate::check`. The parts which define how to emit feature gate errors could probably be moved to `rustc_errors` or to the new `rustc_session` crate introduced in #66878. The visitor itself could probably be moved as a pass in `rustc_passes` depending on how the dependency edges work out. The PR also contains some drive-by cleanup of feature gate checking. As such, the PR probably best read commit-by-commit. r? @oli-obk cc @petrochenkov cc @Mark-Simulacrum
2019-11-30move GateIssue to rustc_feature & simplify emit_feature_errMazdak Farrokhzad-8/+3
2019-11-30builtin_attrs.rs -> rustc_featureMazdak Farrokhzad-4/+5
2019-11-30move is_builtin_attr to syntax::attrMazdak Farrokhzad-3/+1
2019-11-28rustc_metadata: Merge `cstore.rs` into `creader.rs`Vadim Petrochenkov-3/+2
2019-11-26Rollup merge of #66754 - estebank:rustdoc-capitalization, r=Dylan-DPCTyler Mandry-2/+4
Various tweaks to diagnostic output
2019-11-25Various cleanupsEsteban Küber-2/+4
2019-11-25Auto merge of #66669 - petrochenkov:tup2attr, r=matthewjasperbors-9/+10
Fix some issues with attributes on unnamed fields Fixes https://github.com/rust-lang/rust/issues/66487 Fixes https://github.com/rust-lang/rust/issues/66555