about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2020-03-02remove output-format testGuillaume Gomez-10/+0
2020-03-02Replace ToJson with serdeGuillaume Gomez-9/+14
2020-03-02add tests for rustdoc output-format jsonGuillaume Gomez-0/+39
2020-03-02Apply review feedbackAmanieu d'Antras-24/+0
2020-03-02Ignore broken no-landing-pads testAmanieu d'Antras-0/+1
2020-03-02Test catch_unwind vanishingAmanieu d'Antras-0/+36
We execpt the try intrinsic to be a direct call if in -Cpanic=abort mode, and that catch_unwind optimizes out if calling a function that does not unwind.
2020-03-02Auto merge of #69257 - RalfJung:layout-visitor, r=eddybbors-28/+28
Adjust Miri value visitor, and doc-comment layout components I realized that I still didn't have quite the right intuition for how our `LayoutDetails` work, so I had to adjust the Miri value visitor to the things I understood better now. I also added some doc-comments to `LayoutDetails` as a hopefully canonical place to note such things. The main visitor change is that we *first* look at all the fields (according to `FieldPlacement`), and *then* check the variants and handle `Multiple` appropriately. I did not quite realize how orthogonal "fields" and "variants" are. I also moved the check for the scalar ABI to *after* checking all the fields; this leads to better (more type-driven) error messages. And it looks like we can finally remove that magic hack for `ty::Generator`. :D r? @oli-obk for the Miri/visitor changes and @eddyb for the layout docs The Miri PR is at: https://github.com/rust-lang/miri/pull/1178
2020-03-02stash API: remove panic to fix ICE.Mazdak Farrokhzad-0/+70
2020-03-01encode `;` stmt w/o expr as `StmtKind::Empty`Mazdak Farrokhzad-22/+14
2020-03-01Fix use of `has_infer_types`Matthew Jasper-14/+14
* Add a new method `has_infer_types_or_consts` that's used instead most of the time, since there's generally no reason to only consider types. * Remove use of `has_closure_types`, because closures are no longer implicitly linked to the `InferCtxt`.
2020-03-01doc(librustc_error_codes): add long error explanation for E0719Matthew Kuo-0/+2
Progresses #61137
2020-03-01`delay_span_bug` when codegen cannot select obligationEsteban Küber-0/+41
Fix #69602, introduced in #60126 by letting the compiler continue past type checking after encountering errors.
2020-03-01Rollup merge of #69598 - ollie27:rustdoc_crate-version_escape, r=GuillaumeGomezDylan DPC-0/+6
rustdoc: HTML escape crate version As `--crate-version` accepts arbitrary strings they need to be escaped. r? @GuillaumeGomez
2020-03-01Rollup merge of #69605 - JohnTitor:opt-def-id, r=petrochenkovYuki Okushi-6/+8
Use `opt_def_id()` over `def_id()` Fixes #69588
2020-03-01Rollup merge of #69583 - LeSeulArtichaut:ice-69378, r=CentrilYuki Okushi-0/+17
Do not ICE on invalid type node after parse recovery Closes #69378. r? @estebank
2020-03-01Use `opt_def_id()` over `def_id()`Yuki Okushi-6/+8
2020-03-01check_binding_alt_eq_ty: improve precision wrt. `if let`.Mazdak Farrokhzad-8/+8
2020-03-01rustdoc: HTML escape crate versionOliver Middleton-0/+6
As `--crate-version` accepts arbitrary strings they need to be escaped.
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-19/+19
2020-02-29Make it build againVadim Petrochenkov-5/+5
2020-03-01Make `rustc_attrs` tracking issue NoneYuki Okushi-13/+0
2020-02-29Auto merge of #69260 - GuillaumeGomez:create-E0747-error-code, r=varkor,estebankbors-3/+6
Create E0747 error code for unterminated raw strings Reopening of #66035. r? @estebank
2020-02-29Add regression testLeSeulArtichaut-0/+17
2020-02-29Use TypeRelating for instantiating query responsesMatthew Jasper-0/+33
2020-02-29clarify a comment in the testRalf Jung-1/+3
2020-02-29we cannot short-circuit just becuase the Abi seems harmlessRalf Jung-2/+46
also add tests for ScalarPair enums
2020-02-29make it even more conservative, and note some FIXMEsRalf Jung-0/+2
2020-02-29test some more things that should not panicRalf Jung-5/+14
2020-02-29mem::zeroed/uninit: panic on types that do not permit zero-initializationRalf Jung-102/+113
2020-02-29Auto merge of #69255 - estebank:e0599-details, r=varkorbors-108/+328
Add more context to E0599 errors Point at the intermediary unfulfilled trait bounds. Fix #52523, fix #61661, cc #36513, fix #68131, fix #64417, fix #61768, cc #57457, cc #9082, fix #57994, cc #64934, cc #65149.
2020-02-28Ignore output for some platforms with diverging test outputEsteban Küber-6/+18
Get around #53081.
2020-02-28Do not suggest implementing traits if present in predicatesEsteban Küber-9/+2
2020-02-28Reword messageEsteban Küber-2/+2
2020-02-28Reduce verbosity when suggesting restricting type paramsEsteban Küber-12/+0
2020-02-28keep predicate order and tweak outputEsteban Küber-74/+118
2020-02-28Review comments: split requirement text to multiple lines for readabilityEsteban Küber-16/+32
2020-02-28Account for arbitrary self types in E0599Esteban Küber-17/+9
2020-02-28Suggest constraining type parametersEsteban Küber-0/+75
2020-02-28Tweak wordingEsteban Küber-24/+24
2020-02-28Mention the full path of the implementing traitEsteban Küber-24/+24
2020-02-28Point at closure definitionsEsteban Küber-5/+8
2020-02-28Show information of chain of bound obligationsEsteban Küber-15/+39
When the obligation that couldn't be fulfilled is specific to a nested obligation, maintain both the nested and parent obligations around for more accurate and detailed error reporting.
2020-02-28Track all predicates in errors, not just trait obligationsEsteban Küber-11/+39
Surface associated type projection bounds that could not be fulfilled in E0599 errors. Always present the list of unfulfilled trait bounds, regardless of whether we're pointing at the ADT or trait that didn't satisfy it.
2020-02-28Deduplicate information in E0599Esteban Küber-30/+10
2020-02-28On single local candidate, use span labelEsteban Küber-49/+72
2020-02-28Reduce vebosity of E0599Esteban Küber-50/+8
2020-02-28Add more context to E0599 errorsEsteban Küber-42/+126
Point at the intermediary unfullfilled trait bounds.
2020-02-28Auto merge of #69555 - Centril:rollup-e53lxz4, r=Centrilbors-88/+463
Rollup of 10 pull requests Successful merges: - #68989 (Update RELEASES.md for 1.42.0) - #69340 (instantiate_value_path: on `SelfCtor`, avoid unconstrained tyvars) - #69384 (parser: `token` -> `normalized_token`, `nonnormalized_token` -> `token`) - #69452 (typeck: use `Pattern` obligation cause more for better diagnostics) - #69481 (use char instead of &str for single char patterns) - #69522 (error_derive_forbidden_on_non_adt: be more graceful) - #69538 (Stabilize `boxed_slice_try_from`) - #69539 (late resolve, visit_fn: bail early if there's no body.) - #69541 (Remove unneeded calls to format!()) - #69547 (remove redundant clones, references to operands, explicit boolean comparisons and filter(x).next() calls.) Failed merges: r? @ghost
2020-02-28Rollup merge of #69539 - Centril:fix-69401, r=petrochenkovMazdak Farrokhzad-0/+15
late resolve, visit_fn: bail early if there's no body. Fixes https://github.com/rust-lang/rust/issues/69401 which was injected by https://github.com/rust-lang/rust/commit/b2c6eeb713d4cf9b35b7dda6ff2b0274e7f24684 in https://github.com/rust-lang/rust/pull/68788. r? @petrochenkov
2020-02-28Rollup merge of #69522 - Centril:fix-69341, r=petrochenkovMazdak Farrokhzad-0/+36
error_derive_forbidden_on_non_adt: be more graceful Fixes #69341 which was injected by #67052. r? @petrochenkov