about summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2020-01-10Run 'x.py fmt'.Michael Woerister-79/+35
2020-01-10self-profile: Fix issue with handling query blocking.Michael Woerister-11/+27
2020-01-10Initial support for recording query keys in self-profiling data.Michael Woerister-38/+310
2020-01-10Use 'relaxed' memory ordering for simple atomic counters in dep-graph.Michael Woerister-4/+4
2020-01-10self-profile: Switch to new approach for event_id generation that enables ↵Michael Woerister-62/+91
query-invocation-specific event_ids.
2020-01-10Promoteds also need param envs.Oliver Scherer-2/+2
This also allows us to use the `const_eval` query again without causing cycles
2020-01-10Make Place CopySantiago Pastorino-1/+1
2020-01-10No need to use local.into hereSantiago Pastorino-1/+1
2020-01-10Remove PlaceBase enum and make Place base field be local: LocalSantiago Pastorino-86/+35
2020-01-10Remove Static from PlaceBaseSantiago Pastorino-61/+15
2020-01-10Remove StaticKindSantiago Pastorino-40/+5
2020-01-10Remove StaticKind::PromotedSantiago Pastorino-20/+5
2020-01-10Promote `Ref`s to constants instead of staticSantiago Pastorino-33/+67
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-48/+43
2020-01-10Introduce `#![feature(half_open_range_patterns)]`.Mazdak Farrokhzad-22/+73
This feature adds `X..`, `..X`, and `..=X` patterns.
2020-01-10Rollup merge of #67922 - Centril:lowering-cleanup, r=petrochenkovMazdak Farrokhzad-27/+8
rustc_ast_lowering: misc cleanup & rustc dep reductions - The first two commits do some code simplification. - The next three do some file splitting (getting `lib.rs` below the 3kloc tidy lint). - The remaining commits reduce the number of `rustc::` imports. This works towards making lowering independent of the `rustc` crate. r? @oli-obk cc @Zoxc
2020-01-10Rollup merge of #66463 - estebank:point-at-closure-and-opaque-types, r=CentrilMazdak Farrokhzad-11/+162
Point at opaque and closure type definitions in type errors Fixes #57266, fixes #67117.
2020-01-10Rollup merge of #68040 - sinkuu:unused, r=petrochenkovYuki Okushi-16/+0
Cleanup
2020-01-09Don't discard marker trait impls when inference variables are presentAaron Hill-10/+67
Fixes #61651 Previously, we would unconditionally discard impl candidates for marker traits during trait selection. However, if the predicate had inference variables, this could have the effect of constrainting inference variables (due to a successful trait selection) when we would have otherwise failed due to mutliple applicable impls, This commit prevents marker trait impls from being discarded while the obligation predicate has any inference variables, ensuring that discarding impls will never cause us to incorrectly constraint inference variables.
2020-01-09add CStore::item_generics_num_lifetimesMazdak Farrokhzad-3/+2
2020-01-09{rustc::util -> rustc_data_structures}::capturesMazdak Farrokhzad-17/+5
2020-01-09refactor 'Output = $ty' & reduce rustc depMazdak Farrokhzad-7/+1
2020-01-09Remove sanitizer_runtime attributeTomasz Miąsko-4/+0
2020-01-09Fix copy_from_slice which should be extend_from_sliceMarkus Westerlind-1/+1
2020-01-09Change -Z time event naming scheme and make them generic activitiesJohn Kåre Alsaker-4/+4
2020-01-09Remove unused dependenciesShotaro Yamada-3/+0
2020-01-09Remove unused `struct ClosureUpvar`Shotaro Yamada-13/+0
2020-01-09Rollup merge of #68026 - llogiq:ch-ch-ch-ch-changes, r=varkorMazdak Farrokhzad-6/+2
Small improvements in lexical_region_resolve This just replaces a trivial `if` condition with a `|=` in two places. I could even have used a `fold` in the first case, but I think it would be less readable.
2020-01-09Rollup merge of #67986 - JohnTitor:fix-ice-rust-call, r=varkorMazdak Farrokhzad-5/+9
Display more informative ICE Fixes #66696
2020-01-09Rollup merge of #67979 - Centril:hir-cleanup, r=ZoxcMazdak Farrokhzad-1296/+161
Move `intravisit` => `rustc_hir` + misc cleanup Working towards https://github.com/rust-lang/rust/issues/65031. This should eventually enable getting rid of rustc as a dependency in various passes (e.g. lints). cc https://github.com/rust-lang/rust/pull/67806 (this also facilitates liberating lints from tcx) cc https://github.com/rust-lang/rust/pull/67922 (some other dep reductions) r? @Zoxc
2020-01-09Rollup merge of #67747 - estebank:bare-assoc-const, r=CentrilMazdak Farrokhzad-1/+30
Explain that associated types and consts can't be accessed directly on the trait's path Partially address #44539.
2020-01-09Rollup merge of #67630 - oli-obk:extern_ptr_dangling, r=spastorinoMazdak Farrokhzad-2/+0
Treat extern statics just like statics in the "const pointer to static" representation fixes #67612 r? @spastorino cc @RalfJung this does not affect runtime promotion at all. This is just about promotion within static item bodies.
2020-01-08perf: Avoid creating a SmallVec if nothing changes during a foldMarkus Westerlind-17/+30
Not sure if this helps but in theory it should be less work than what the current micro optimization does for `ty::Predicate` lists. (It would explain the overhead I am seeing from `perf`.)
2020-01-08Small improvements in lexical_region_resolveAndre Bogus-6/+2
2020-01-08normalize rustc::hir::intravisit importsMazdak Farrokhzad-16/+12
2020-01-08{rustc::hir -> rustc_hir}::intravisitMazdak Farrokhzad-1182/+2
2020-01-08intravisit: abstract over HIR MapMazdak Farrokhzad-31/+71
2020-01-08intravisit: .expect_item -> .itemMazdak Farrokhzad-1/+9
2020-01-08NestedVisitorMap: reduce visibilitiesMazdak Farrokhzad-3/+3
2020-01-08hir::map: elide & simplifyMazdak Farrokhzad-3/+3
2020-01-08collector: clarify dependenciesMazdak Farrokhzad-12/+15
2020-01-08collector: use impl TraitMazdak Farrokhzad-12/+6
2020-01-08collector: extract upstream_cratesMazdak Farrokhzad-13/+17
2020-01-08canonicalize imports in map::blockMazdak Farrokhzad-53/+53
2020-01-08move code to method outside of happy pathEsteban Küber-19/+25
2020-01-08Explain that associated types and consts can't be accessed directly on the ↵Esteban Küber-1/+24
trait's path
2020-01-08remove unnecessary `Debug`Esteban Küber-1/+1
2020-01-08reduce code duplicationEsteban Küber-45/+38
2020-01-08review commentsEsteban Küber-26/+40
2020-01-08review commentsEsteban Küber-16/+34