about summary refs log tree commit diff
path: root/src/librustc
AgeCommit message (Collapse)AuthorLines
2019-10-09Refactor a nested `if` to a `match`Oliver Scherer-11/+7
2019-10-09Cache the DepNodeIndex of upstream crates in order to avoid multiple locks ↵Michael Woerister-1/+1
and table lookups on each access of crate metadata.
2019-10-09self-profiling: Add events for everything except trait selection.Michael Woerister-0/+6
2019-10-09Add failing example for Self in supertrait listing in E0038 documentationKonrad Borowski-1/+5
2019-10-09Rollup merge of #65037 - anp:track-caller, r=oli-obkMazdak Farrokhzad-2/+52
`#[track_caller]` feature gate (RFC 2091 1/N) RFC text: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md Tracking issue: https://github.com/rust-lang/rust/issues/47809 I started with @ayosec's commit to add the feature gate with tests and rebased it onto current master. I fixed up some tidy lints and added a test.
2019-10-09Change incorrect trait name in E0038 error documentationKonrad Borowski-1/+1
2019-10-08Stabilize mem::take (mem_take)Jon Gjengset-1/+0
Tracking issue: https://github.com/rust-lang/rust/issues/61129
2019-10-08Rollup merge of #65213 - estebank:peel-drop-temps, r=CentrilMazdak Farrokhzad-0/+13
Ignore `ExprKind::DropTemps` for some ref suggestions Introduce `Expr::peel_drop_temps()` to ignore `ExprKind::DropTemps` for suggestions that depend on the `ExprKind` for accuracy.
2019-10-08Rollup merge of #65135 - GuillaumeGomez:add-error-code-check, r=Mark-SimulacrumMazdak Farrokhzad-7/+11
Add check for missing tests for error codes Fixes #64811. r? @Mark-Simulacrum
2019-10-08Rollup merge of #65081 - Mark-Simulacrum:remove-profile-queries, ↵Mazdak Farrokhzad-149/+4
r=michaelwoerister Remove -Zprofile-queries r? @michaelwoerister Per [zulip thread](https://zulip-archive.rust-lang.org/131828tcompiler/57361RemoveZprofilequeries.html).
2019-10-08Rollup merge of #64284 - Mark-Simulacrum:include-warn, r=petrochenkovMazdak Farrokhzad-0/+8
Warn if include macro fails to include entire file This currently introduces an error, mainly because that was just simpler, and I'm not entirely certain if we can introduce a lint without an RFC and such. This is primarily to get feedback on the approach and overall aim -- in particular, do we think this is helpful? If so, we probably will need lang-team sign off and decide if it should be an error (as currently introduced by this PR), a lint, or a warning. r? @petrochenkov cc https://github.com/rust-lang/rust/issues/35560
2019-10-08Split non-CAS atomic support off into target_has_atomic_load_storeAmanieu d'Antras-11/+14
2019-10-08review commentsEsteban Küber-8/+4
2019-10-09Refactor pretty print const to use a big match statementben-121/+104
2019-10-09Pretty print function pointer const values.ben-11/+23
2019-10-09Fix calling function pointer const parameters. Also fixes inference ofben-28/+38
function pointer const parameters.
2019-10-08Ignore `ExprKind::DropTemps` for some ref suggestionsEsteban Küber-0/+17
2019-10-08Rollup merge of #65176 - nnethercote:rm-query-macros, r=michaelwoeristerMazdak Farrokhzad-32/+13
Remove query-related macros The query system has a few macros that only have one or two call sites, and I find they hurt readability. This PR removes them. r? @michaelwoerister
2019-10-08Rollup merge of #65162 - Mark-Simulacrum:no-cache-loading-map, ↵Mazdak Farrokhzad-31/+0
r=michaelwoerister Remove loaded_from_cache map from DepGraph It's now unused, even with -Zquery-dep-graph From https://github.com/rust-lang/rust/pull/63756/files#r316039379 -- it'll simplify that PR to get this landed separately so we can just remove some of the code that it touches. r? @Zoxc or @michaelwoerister
2019-10-08Rollup merge of #64404 - GuillaumeGomez:err-E0495, r=Dylan-DPCMazdak Farrokhzad-2/+41
Add long error explanation for E0495 Part of #61137.
2019-10-08Add ?Sized bound to a supertrait listing in E0038 error documentationKonrad Borowski-4/+4
This example failed to compile because of implicit `Sized` bound for `A` parameter that wasn't required by `Trait`.
2019-10-08Auto merge of #64949 - nnethercote:avoid-SmallVec-collect, r=zackmdavisbors-12/+73
Avoid `SmallVec::collect` We can get sizeable speed-ups by avoiding `SmallVec::collect` when the number of elements is small.
2019-10-08Remove `InferCtxt::in_snapshot()`.Nicholas Nethercote-34/+23
It's the same as `InferCtxt::commit_unconditionally()` except that it is passed a snapshot and has a worse name. The commit also changes `commit_unconditionally()` to receive a snapshot, for consistency with `commit_if_ok()` and `probe()`.
2019-10-08Clarify a comment in `RegionConstraintCollector::leak_check`.Nicholas Nethercote-3/+5
2019-10-08Rollup merge of #65181 - nikomatsakis:lazy-norm-anon-const-push-1, r=varkorMazdak Farrokhzad-11/+24
fix bug in folding for constants These was a bug in the folding for constants that caused it to overlook bound regions. This branch includes some other little things that I did while trying to track the bug down. r? @oli-obk
2019-10-08Rollup merge of #65154 - skinny121:const-arg-diagnostic, r=varkorMazdak Farrokhzad-1/+18
Fix const generic arguments not displaying in types mismatch diagnostic Fixes #61395
2019-10-07Warn if include macro fails to include entire fileMark Rousskov-0/+8
2019-10-07Rebase rustc-rayon on rayon-1.2Josh Stone-2/+2
See also https://github.com/rust-lang/rustc-rayon/pull/3
2019-10-07Add long error explanation for E0495Guillaume Gomez-2/+41
2019-10-07E073[6-8] include failing code examples.Adam Perry-0/+10
2019-10-07E0735 -> E0739Adam Perry-2/+2
Prevents number collision with another approved PR.
2019-10-07track_caller error numbers and text.Adam Perry-12/+12
2019-10-07track_caller run-pass test, lint cleanup, PR review.Adam Perry-21/+15
2019-10-07[RFC 2091] Add #[track_caller] attribute.Ayose-1/+47
- The attribute is behind a feature gate. - Error if both #[naked] and #[track_caller] are applied to the same function. - Error if #[track_caller] is applied to a non-function item. - Error if ABI is not "rust" - Error if #[track_caller] is applied to a trait function. Error codes and descriptions are pending.
2019-10-07fix ICE from debug output by using `kind_ty` in dumping closureNiko Matsakis-2/+9
Also, make `-Zverbose` dump all info about constants.
2019-10-07avoid ICE when extracting closure-kind-ty from a canonicalized valueNiko Matsakis-1/+3
In such a case, the `Infer` is converted to a `Bound`
2019-10-07correct bug in the "has escaping regions" visitorNiko Matsakis-7/+9
Existing code could overlook types/substitutions that are embedded in (e.g.) an unevaluated constant.
2019-10-07make type-flags exhaustiveNiko Matsakis-1/+3
Didn't find any bugs here, but you really don't want these to fall out of sync.
2019-10-07Auto merge of #65178 - Centril:rollup-ep1zztj, r=Centrilbors-1/+29
Rollup of 4 pull requests Successful merges: - #63948 (Add feature gate for raw_dylib.) - #65137 (remove event that causes panics in measureme tools) - #65164 (Add long error explanation for E0566) - #65173 (Update reference) Failed merges: r? @ghost
2019-10-07Fix/improve some error codes long explanationGuillaume Gomez-7/+11
2019-10-07Rollup merge of #65164 - GuillaumeGomez:long-err-explanation-E0566, r=estebankMazdak Farrokhzad-1/+21
Add long error explanation for E0566 Part of #61137.
2019-10-07Auto merge of #64739 - guanqun:remove-as-str, r=estebankbors-0/+4
Remove as_str if the type is already &str Fix https://github.com/rust-lang/rust/issues/62642 r? @estebank do you think the suggestion tip is good enough?
2019-10-07Address review comments.Charles Lew-1/+1
2019-10-07Add support for parsing #[link_ordinal] attribute.Charles Lew-0/+6
2019-10-07Add feature gate for raw_dylib.Charles Lew-0/+2
2019-10-07Remove `force_ex!`.Nicholas Nethercote-13/+5
2019-10-07Remove `def_id!`.Nicholas Nethercote-12/+9
2019-10-07Remove `krate!`.Nicholas Nethercote-5/+1
2019-10-07Remove `force!`.Nicholas Nethercote-5/+1
2019-10-06Auto merge of #65169 - tmandry:rollup-qxjj8xp, r=tmandrybors-1/+1
Rollup of 5 pull requests Successful merges: - #65095 (Sort error codes in librustc_passes) - #65101 (Upgrade librustc_macros dependencies) - #65142 (Ensure that associated `async fn`s have unique fresh param names) - #65155 (Use shorthand initialization in rustdoc) - #65158 (Remove dead module) Failed merges: r? @ghost