about summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2019-12-30Make things build againVadim Petrochenkov-1/+1
2019-12-30discriminant -> scrutineeMazdak Farrokhzad-8/+8
2019-12-30Blame user type in pat type error.Mazdak Farrokhzad-5/+14
2019-12-30refactor and fix this-expression-has-type noteMazdak Farrokhzad-0/+1
2019-12-30MatchExpressionArmPattern -> PatternMazdak Farrokhzad-7/+5
Current name is too specific for incoming changes.
2019-12-30MatchExpressionArmPattern: Use more generic wording.Mazdak Farrokhzad-1/+1
The existing wording was inappropriate for e.g. `if let Ok(_) = expr { .. }`. The diagnostic would leak the fact that we desugar to a `match`.
2019-12-30Outdated comment.Camille GILLOT-1/+1
2019-12-30Move region_scope_tree query to librustc_passes.Camille GILLOT-0/+670
2019-12-30Move region.rs to librustc_passes.Camille GILLOT-1536/+0
2019-12-30Duplicate allocations in lowering.Camille GILLOT-3/+3
2019-12-30Avoid a few allocations.Camille GILLOT-12/+14
2019-12-30Allocate inside lower_path_extra.Camille GILLOT-38/+20
2019-12-30Retire hir::ptr.Camille GILLOT-131/+1
2019-12-30Retire HirVec.Camille GILLOT-54/+35
2019-12-30Remove HirVec from Generics.Camille GILLOT-73/+114
2019-12-30Auto merge of #67658 - spastorino:do-not-copy-zsts, r=oli-obkbors-0/+8
Avoid memory copy logic for zsts r? @oli-obk One of the included commits is work done by @HeroicKatora in #62655
2019-12-30Auto merge of #67721 - JohnTitor:rollup-o8zm4r9, r=JohnTitorbors-742/+38
Rollup of 10 pull requests Successful merges: - #64273 (Stabilize attribute macros on inline modules) - #67287 (typeck: note other end-point when checking range pats) - #67564 (docs: Iterator adapters have unspecified results after a panic) - #67622 (Some keyword documentation.) - #67657 (Clean up const-hack PRs now that const if / match exist.) - #67677 (resolve: Minor cleanup of duplicate macro reexports) - #67687 (Do not ICE on lifetime error involving closures) - #67698 (Move reachable_set and diagnostic_items to librustc_passes.) - #67701 (tidy: Enforce formatting rather than just check it if `--bless` is specified) - #67715 (Typo fix) Failed merges: r? @ghost
2019-12-30Rollup merge of #67698 - cjgillot:passes-first, r=ZoxcYuki Okushi-742/+38
Move reachable_set and diagnostic_items to librustc_passes. Split out of #67688 r? @Zoxc
2019-12-29clean up logicEsteban Küber-0/+10
2019-12-30Auto merge of #67631 - oli-obk:polymorphic_promotion, r=wesleywiserbors-1/+23
Work around a resolve bug in const prop r? @wesleywiser @anp This isn't exposed right now, but further changes to rustc may start causing bugs without this.
2019-12-29Auto merge of #66942 - cjgillot:hirene-ty, r=Zoxcbors-687/+714
Allocate HIR on an arena 3/4 -- Ty This is the third PR in the series started by #66931 and #66936 Once again, commits don't really make sense on their own. They are mostly split by type of compile error. The additional diff is here: https://github.com/cjgillot/rust/compare/hirene-expr...hirene-ty
2019-12-29Introduce librustc/middle/mod.rsCamille GILLOT-39/+36
2019-12-29Move get_lib_features query in librustc_passes.Camille GILLOT-5/+24
2019-12-29Move lib_features.rs in librustc_passes.Camille GILLOT-153/+0
2019-12-29Move diagnostic_items queries to librustc_passes.Camille GILLOT-9/+0
2019-12-29Move diagnostic_items.rs to librustc_passes.Camille GILLOT-119/+0
2019-12-29Move reachable_set query in librustc_passes.Camille GILLOT-4/+2
2019-12-29Move reachable.rs to librustc_passes.Camille GILLOT-437/+0
2019-12-29Auto merge of #67614 - Mark-Simulacrum:global-callbacks, r=Zoxcbors-60/+7
Set callbacks globally This sets the callbacks from syntax and rustc_errors just once, utilizing static (rather than thread-local) storage.
2019-12-28Avoid copying some undef memory in MIRSantiago Pastorino-0/+8
During MIR interpretation it may happen that a place containing uninitialized bytes is copied. This would read the current representation of these bytes and write it to the destination even though they must, by definition, not matter to the execution. This elides that representation change when no bytes are defined in such a copy, saving some cpu cycles. In such a case, the memory of the target allocation is not touched at all which also means that sometimes no physical page backing the memory allocation of the representation needs to be provided by the OS at all, reducing memory pressure on the system.
2019-12-28Rollup merge of #67604 - christianpoveda:scalar_to_(u|i)64, r=RalfJungOliver Scherer-21/+35
Add Scalar::to_(u|i)16 methods r? @RalfJung
2019-12-27core: add IntoFuture trait and support for awaitSean McArthur-4/+22
2019-12-27Address review.Camille GILLOT-9/+10
2019-12-27Lowering for hir::Ty.Camille GILLOT-246/+231
2019-12-27Visit for hir::Ty.Camille GILLOT-60/+55
2019-12-27Syntax for hir::Ty.Camille GILLOT-386/+429
2019-12-27Use Arena inside hir::TraitMethod.Camille GILLOT-4/+5
2019-12-27Use Arena inside hir::FnSig.Camille GILLOT-16/+18
2019-12-27Fix `Instance::resolve()` incorrectly returning specialized instancesWesley Wiser-1/+23
We only want to return specializations when `Reveal::All` is passed, not when `Reveal::UserFacing` is. Resolving this fixes several issues with the `ConstProp`, `SimplifyBranches`, and `Inline` MIR optimization passes. Fixes #66901
2019-12-27Auto merge of #67192 - oli-obk:const_zst_addr, r=RalfJung,varkorbors-9/+10
Various const eval and pattern matching ICE fixes r? @RalfJung cc @spastorino This PR does not change existing behaviour anymore and just fixes a bunch of ICEs reachable from user code (sometimes even on stable via obscure union transmutes).
2019-12-26Move arena_vec inside lowering.Camille GILLOT-12/+12
2019-12-26Remove some type information.Camille GILLOT-15/+13
2019-12-26Fewer calls to arena.alloc.Camille GILLOT-138/+121
2019-12-26Lowering for hir::Expr.Camille GILLOT-229/+347
2019-12-26Visit for hir::Expr.Camille GILLOT-34/+33
2019-12-26Syntax for hir::Expr.Camille GILLOT-324/+338
2019-12-26Early abort instead of building up zero sized valuesOliver Scherer-4/+0
2019-12-26Prevent an ICE on invalid transmutesOliver Scherer-0/+6
2019-12-26Retire `to_ptr` which should already have no users but still kept getting ↵Oliver Scherer-9/+4
new ones
2019-12-26Don't ICE on the use of integer addresses for ZST constants in pattern matchingOliver Scherer-0/+4