about summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2020-01-05Auto merge of #67808 - Marwes:projection_normalization_recurse, r=nikomatsakisbors-0/+3
perf: Don't recurse into types that do not need normalizing A bit speculative at this stage but profiling shows that type folding takes up a substantial amount of time during normalization which may indicate that many types may be folded despite there being nothing to normalize
2020-01-05Add backticks to various diagnosticsvarkor-10/+10
2020-01-04hir::{hir,def,itemlikevisit,pat_util,print} -> rustc_hirMazdak Farrokhzad-5763/+147
Also fix fallout wrt. HashStable.
2020-01-04extract Export, ExportMap from hir::defMazdak Farrokhzad-29/+40
2020-01-04simplify self::Namespace::* importMazdak Farrokhzad-11/+9
2020-01-04move {Par}DeepVisitor to intravisitMazdak Farrokhzad-57/+55
2020-01-04hir::hir: simplify some importsMazdak Farrokhzad-16/+10
2020-01-04split hir/mod.rs -> hir.rs & hir/hir.rsMazdak Farrokhzad-24/+41
2020-01-04move `HirId` to librustc_hir::hir_idMazdak Farrokhzad-85/+2
2020-01-04move def_id to new rustc_hir crateMazdak Farrokhzad-188/+2
2020-01-04move describe_as_module to where it's usedMazdak Farrokhzad-18/+22
2020-01-04remove DefId::to_dep_node (dead code)Mazdak Farrokhzad-6/+0
2020-01-04{HirId,ItemLocal}{Map,Set} -> rustc::hir & nix rustc::nodemapMazdak Farrokhzad-14/+7
2020-01-04DefId{Map,Set} -> rustc::hir::def_idMazdak Farrokhzad-19/+15
2020-01-04canonicalize rustc_session importsMazdak Farrokhzad-3/+2
2020-01-04move Node{Map,Set} -> rustc_session::node_idMazdak Farrokhzad-9/+9
2020-01-04define_id_collections -> rustc_data_structuresMazdak Farrokhzad-6/+1
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-30/+32
2020-01-04extract rustc::middle::codegen_fn_attrsMazdak Farrokhzad-117/+120
2020-01-04fn adt_kind -> wfcheckMazdak Farrokhzad-10/+0
2020-01-04Auto merge of #67788 - cjgillot:delint-day, r=Zoxcbors-939/+20
Move early and late lint mechanisms to librustc_lint. As requested, split from #67737 r? @Zoxc
2020-01-04Rollup merge of #67786 - Centril:canon-span, r=petrochenkovMazdak Farrokhzad-56/+57
Nix reexports from `rustc_span` in `syntax` Remove reexports `syntax::{source_map, symbol, edition}` and use `rustc_span` paths directly. r? @petrochenkov
2020-01-03Rollup merge of #67595 - ohadravid:impl-trait-does-not-live-long-enough, ↵Yuki Okushi-1/+1
r=estebank Suggest adding a lifetime constraint for opaque type Fixes #67577, where code like this: ``` struct List { data: Vec<String>, } impl List { fn started_with<'a>(&'a self, prefix: &'a str) -> impl Iterator<Item=&'a str> { self.data.iter().filter(|s| s.starts_with(prefix)).map(|s| s.as_ref()) } } ``` will show this error: ``` Compiling playground v0.0.1 (/playground) error[E0597]: `prefix` does not live long enough --> src/lib.rs:6:47 | 5 | fn started_with<'a>(&'a self, prefix: &'a str) -> impl Iterator<Item=&'a str> { | -- lifetime `'a` defined here --------------------------- opaque type requires that `prefix` is borrowed for `'a` ... ``` but without suggesting the lovely `help: you can add a constraint..`. r? @estebank
2020-01-02Normalize `syntax::edition` imports.Mazdak Farrokhzad-1/+1
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-38/+39
2020-01-02Normalize `syntax::source_map` imports.Mazdak Farrokhzad-17/+17
2020-01-02perf: Don't recurse into types that do not need normalizingMarkus Westerlind-0/+3
A bit speculative at this stage but profiling shows that type folding takes up a substantial amount of time during normalization which may indicate that many types may be folded despite there being nothing to normalize
2020-01-01Move stability queries to librustc_passes.Camille GILLOT-4/+410
Contains: - check_mod_unstable_api_usage query; - stability_index query; - check_unused_or_stable features pass.
2020-01-01Move stability.rs to librustc_passes.Camille GILLOT-1001/+0
2020-01-01Move lint levels machanism in librustc_lint.Camille GILLOT-121/+2
2020-01-01Move late lint machanism in librustc_lint.Camille GILLOT-453/+9
2020-01-01Move early lint machanism in librustc_lint.Camille GILLOT-368/+12
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-114/+114
2019-12-31Auto merge of #67764 - Centril:rollup-ycbq3os, r=Centrilbors-6233/+27
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-31Rollup merge of #67730 - Centril:typeck-pat-cleanup, r=estebankMazdak Farrokhzad-17/+25
Cleanup pattern type checking, fix diagnostics bugs (+ improvements) r? @estebank
2019-12-31Rollup merge of #67574 - Centril:librustc_lowering, r=Mark-SimulacrumMazdak Farrokhzad-6216/+2
Extract `rustc_ast_lowering` crate from `rustc` Working towards https://github.com/rust-lang/rust/issues/65031. This PR moves `src/librustc/hir/lowering{/, .rs}` to its own crate (`librustc_ast_lowering`) which is very self-contained (only `fn lower_crate` and `trait Resolver` are exposed). r? @Mark-Simulacrum
2019-12-31librustc_ast_lowering: fix misc fallout.Mazdak Farrokhzad-4/+2
2019-12-31librustc_ast_lowering: move the files.Mazdak Farrokhzad-6212/+0
2019-12-31Auto merge of #67699 - cjgillot:passes-resolve, r=Zoxcbors-2864/+19
Move resolve_lifetimes query in librustc_resolve. Split out of #67688 r? @Zoxc
2019-12-31Auto merge of #67752 - Dylan-DPC:rollup-7f9v4nx, r=Dylan-DPCbors-876/+10
Rollup of 5 pull requests Successful merges: - #67430 (doc: minus (U+2212) instead of dash (U+002D) for negative infinity) - #67697 (Move the region_scope_tree query to librustc_passes.) - #67719 (Add self to .mailmap) - #67723 (Add error code explanation for E0477) - #67735 (Support `-Z ui-testing=yes/no`) Failed merges: r? @ghost
2019-12-31Rollup merge of #67697 - cjgillot:passes-scope-tree, r=ZoxcDylan DPC-876/+10
Move the region_scope_tree query to librustc_passes. Split out of #67688. r? @Zoxc
2019-12-31Change wording for lifetime suggestion for opaque types from `constraint` to ↵Ohad Ravid-1/+1
`bound`
2019-12-31Auto merge of #67597 - estebank:placeholder-type, r=oli-obkbors-0/+10
Suggest type param when encountering `_` in item signatures Fix #27435.
2019-12-31Simplify ResolveLiftimes creation.Camille GILLOT-54/+13
2019-12-31Review comments.Camille GILLOT-6/+1
2019-12-31Move resolve_lifetimes query in librustc_resolve.Camille GILLOT-0/+132
2019-12-31Move resolve_lifetime.rs to librustc_resolve.Camille GILLOT-2931/+0
2019-12-31Auto merge of #67032 - cjgillot:hirene, r=Zoxcbors-296/+171
Allocate HIR on an arena 4/4 This is the fourth and last PR in the series started by #66931, #66936 and #66942. The last commits should compile on their own. The difference with the previous PR is given by https://github.com/cjgillot/rust/compare/hirene-ty...hirene A few more cleanups may be necessary, please tell me. r? @eddyb like the other cc @Zoxc
2019-12-30Enlarge smallvec.Camille GILLOT-2/+2
2019-12-30Reduce allocations.Camille GILLOT-9/+8