about summary refs log tree commit diff
path: root/tests
AgeCommit message (Collapse)AuthorLines
2023-06-28Migrate most of the existing coverage tests over to `run-coverage`Zalathar-20/+24
2023-06-27Auto merge of #113105 - matthiaskrgr:rollup-rci0uym, r=matthiaskrgrbors-346/+429
Rollup of 8 pull requests Successful merges: - #112207 (Add trustzone and virtualization target features for aarch32.) - #112454 (Make compiletest aware of targets without dynamic linking) - #112628 (Allow comparing `Box`es with different allocators) - #112692 (Provide more context for `rustc +nightly -Zunstable-options` on stable) - #112972 (Make `UnwindAction::Continue` explicit in MIR dump) - #113020 (Add tests impl via obj unless denied) - #113084 (Simplify some conditions) - #113103 (Normalize types when applying uninhabited predicate.) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-27Rollup merge of #113103 - cjgillot:normalize-inhabited, r=compiler-errorsMatthias Krüger-0/+32
Normalize types when applying uninhabited predicate. Fixes https://github.com/rust-lang/rust/issues/112997
2023-06-27Rollup merge of #113020 - ↵Matthias Krüger-0/+45
AnthonyKalaitzis:add-tests-impl-via-obj-unless-denied, r=compiler-errors Add tests impl via obj unless denied Fixes #112737 Add simple tests to check feature change in #112320 is performing as expected. Note: - Unsure about filenames, locations & function signature names (tried to make them something sensible)
2023-06-27Rollup merge of #112972 - nbdd0121:mir, r=davidtwcoMatthias Krüger-344/+344
Make `UnwindAction::Continue` explicit in MIR dump Makes it easier to spot unwinding related issues in MIR by making `UnwindAction::Continue` explicit, just like all other `UnwindAction`s.
2023-06-27Rollup merge of #112692 - jieyouxu:better-err-msg-for-unstable-options, ↵Matthias Krüger-1/+5
r=davidtwco Provide more context for `rustc +nightly -Zunstable-options` on stable <img width="724" alt="Screenshot 2023-06-16 123456" src="https://github.com/rust-lang/rust/assets/39484203/1933e172-cb9f-4e51-9540-ade803a88360"> Closes #110090.
2023-06-27Rollup merge of #112454 - ferrocene:pa-compiletest-dynamic-linking, r=davidtwcoMatthias Krüger-1/+3
Make compiletest aware of targets without dynamic linking Some parts of the compiletest internals and some tests require dynamic linking to work, which is not supported by all targets. Before this PR, this was handled by if branches matching on the target name. This PR loads whether a target supports dynamic linking or not from the target spec, and adds a `// needs-dynamic-linking` attribute for tests that require it. Note that I was not able to replace all the old conditions based on the target name, as some targets have `dynamic_linking: true` in their spec but pretend they don't have it in compiletest. Also, to get this to work I had to *partially* revert #111472 (cc `@djkoloski` `@tmandry` `@bjorn3).` On one hand, only the target spec contains whether a target supports dynamic linking, but on the other hand a subset of the fields can be overridden through `-C` flags (as far as I'm aware only `-C panic=$strategy`). The solution I came up with is to take the target spec as the base, and then override the panic strategy based on `--print=cfg`. Hopefully that should not break y'all again.
2023-06-27Auto merge of #113102 - matthiaskrgr:rollup-wpkbsw1, r=matthiaskrgrbors-0/+35
Rollup of 7 pull requests Successful merges: - #112518 (Detect actual span for getting unexpected token from parsing macros) - #112978 (Add suggestion for bad block fragment error) - #113068 (bootstrap: rename 'user' profile to 'dist') - #113079 (Use `CoverageKind::as_operand_id` instead of manually reimplementing it) - #113089 (Export AnalysisResults trait in rustc_mir_dataflow) - #113093 (`thir`: Add `Become` expression kind) - #113096 (Remove unused struct and tweak format macro uses) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-27Normalize types when applying uninhabited predicate.Camille GILLOT-0/+32
2023-06-27Rollup merge of #112978 - compiler-errors:bad-block-sugg, r=davidtwcoMatthias Krüger-0/+16
Add suggestion for bad block fragment error Makes it a bit clearer how to fix this parser restriction
2023-06-27Rollup merge of #112518 - chenyukang:yukang-fix-112458, r=davidtwcoMatthias Krüger-0/+19
Detect actual span for getting unexpected token from parsing macros Fixes #112458
2023-06-27Provide more context for `rustc +nightly -Zunstable-options` on stable许杰友 Jieyou Xu (Joe)-1/+5
2023-06-27Auto merge of #112516 - erikdesjardins:loop, r=davidtwcobors-0/+12
cg_llvm: use index-based loop in write_operand_repeatedly This should be easier for LLVM to analyze. Fixes #111603 This needs a perf run. [cc](https://github.com/rust-lang/rust/issues/111603#issuecomment-1567531178) `@caojoshua`
2023-06-27Add passing & failing test for bultin dyn trait generationAnthony Kalaitzis-0/+45
2023-06-27Rollup merge of #113058 - GuillaumeGomez:improve-code-comments, r=notriddleMatthias Krüger-1/+1
Add/improve code comments Working on something else and did some small comments updates/adds. r? `@notriddle`
2023-06-26Auto merge of #113057 - TaKO8Ki:rollup-071lc9g, r=TaKO8Kibors-0/+29
Rollup of 2 pull requests Successful merges: - #112677 (remove unused field) - #112920 (rustdoc: render generic params & where-clauses of cross-crate assoc tys in impls) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-26Add/improve code commentsGuillaume Gomez-1/+1
2023-06-26Rollup merge of #112920 - fmease:rustdoc-fix-112904, r=GuillaumeGomezTakayuki Maeda-0/+29
rustdoc: render generic params & where-clauses of cross-crate assoc tys in impls We used to only ever render generic parameters & where-clauses of cross-crate associated types when the item was located inside of a trait and we used to just drop them when it was inside of an impl block (trait or inherent). Fixes #112904. `@rustbot` label A-cross-crate-reexports
2023-06-26Auto merge of #112887 - WaffleLapkin:become_unuwuable_in_hir, ↵bors-19/+120
r=compiler-errors,Nilstrieb `hir`: Add `Become` expression kind (explicit tail calls experiment) This adds `hir::ExprKind::Become` alongside ast lowering. During hir-thir lowering we currently lower `become` as `return`, so that we can partially test `become` without ICEing. cc `@scottmcm` r? `@Nilstrieb`
2023-06-26`hir`: Add `Become` expression kindMaybe Waffle-19/+120
2023-06-25Auto merge of #113038 - matthiaskrgr:rollup-sdcfkxa, r=matthiaskrgrbors-0/+169
Rollup of 5 pull requests Successful merges: - #112976 (Add test for futures with HRTB) - #113013 (rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list) - #113030 (Add a regression test for #109071) - #113031 (Add a regression test for #110933) - #113036 (Accept `ReStatic` for RPITIT) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-25Rollup merge of #113036 - TaKO8Ki:fix-112094, r=compiler-errorsMatthias Krüger-0/+12
Accept `ReStatic` for RPITIT Fixes #112094 Regression in https://github.com/rust-lang/rust/commit/8216b7f22934cea2422c79565df9c30ac8db93e0 If there is a better suggestion, I will go with that.
2023-06-25Rollup merge of #113031 - JohnTitor:issue-110933, r=compiler-errorsMatthias Krüger-0/+20
Add a regression test for #110933 Closes #110933 r? `@compiler-errors`
2023-06-25Rollup merge of #113030 - JohnTitor:issue-109071, r=TaKO8KiMatthias Krüger-0/+79
Add a regression test for #109071 Closes #109071 r? `@compiler-errors`
2023-06-25Rollup merge of #113013 - fmease:rustdoc-decl-line-wrapping-slim-arg-list, ↵Matthias Krüger-0/+14
r=camelid rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list Fixes https://github.com/bevyengine/bevy/issues/8898#issuecomment-1605683417: ![Screenshot 2023-06-24 at 23-42-53 any_with_component in bevy_ecs schedule common_conditions - Rust](https://github.com/rust-lang/rust/assets/14913065/4646eba6-b186-4d78-96d9-aad716a4ef5d) It now prints as shown below (which conforms to the style guide): ```rs pub fn any_with_component<T: Component>( ) -> impl FnMut(Query<'_, '_, (), With<T>>) -> bool + Clone ``` The bug was introduced in #109011.
2023-06-25Rollup merge of #112976 - dswij:issue-112347, r=compiler-errorsMatthias Krüger-0/+44
Add test for futures with HRTB Part of #112347 This PR adds test for ice when resolving for `Futures` with HRTB.
2023-06-26Rollup merge of #113028 - fmease:rustdoc-x-crate-itiap-clean-term, r=notriddleTakayuki Maeda-0/+15
rustdoc: handle assoc const equalities in cross-crate impl-Trait-in-arg-pos Fixes FIXME (the added test previously lead to an ICE). `@rustbot` label A-cross-crate-reexports
2023-06-26accept `ReStatic` for RPITITTakayuki Maeda-0/+12
add an ui test for #112094
2023-06-25Add a regression test for #110933Yuki Okushi-0/+20
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-06-25Add a regression test for #109071Yuki Okushi-0/+79
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-06-25rustdoc: handle assoc const equalities in cross-crate impl-Trait-in-arg-posLeón Orell Valerian Liehr-0/+15
2023-06-25Add test for futures with HRTBdswij-0/+44
2023-06-25Rollup merge of #113023 - GuillaumeGomez:migrate-gui-test-color-17, r=notriddleMatthias Krüger-3/+3
Migrate GUI colors test to original CSS color format Follow-up of https://github.com/rust-lang/rust/pull/111459. r? `@notriddle`
2023-06-25Rollup merge of #113007 - ↵Matthias Krüger-1/+27
compiler-errors:dont-structural-resolve-byte-str-pat, r=oli-obk Revert "Structurally resolve correctly in check_pat_lit" This reverts commit 54fb5a48b968b3a329ceeb57226d9ac60f983f04. Also adds a couple of tests, and downgrades the existing `-Ztrait-solver=next` test to a known-bug. Fixes #112993
2023-06-25Migrate GUI colors test to original CSS color formatGuillaume Gomez-3/+3
2023-06-25Rollup merge of #113018 - asquared31415:test_fix, r=TaKO8KiGuillaume Gomez-3/+28
Fix test for #96258 #98644 did not properly test enabling the problematic lint as a warning due to improper use of `compile-flags:` (missing `:`). This makes it use `#![warn]` instead, like in the reproducer. cc #96258
2023-06-25Rollup merge of #112990 - JohnTitor:issue-96699, r=TaKO8KiGuillaume Gomez-0/+87
Add a regression test for #96699 Closes #96699 r? `@BoxyUwU`
2023-06-25Auto merge of #112476 - chenyukang:yukang-fix-109991, r=compiler-errorsbors-0/+99
Do not emit coerce_suggestions for expr from destructuring assignment desugaring Fixes #109991
2023-06-24fix testasquared31415-3/+28
2023-06-25Do not offer any of the suggestions in emit_coerce_suggestions for expr from ↵yukang-0/+99
destructuring assignment desugaring
2023-06-25Rollup merge of #112937 - camelid:align-typenames, r=notriddle,GuillaumeGomezMatthias Krüger-1/+2
rustdoc: Align search results horizontally for easy scanning The recent PR #110688 added info about an item's kind before its name in search results. However, because the kind and name are inline with no alignment, it's now hard to visually scan downward through the search results, looking at item names. This PR fixes that by horizontally aligning search results such that there are now two columns of information. r? `@GuillaumeGomez`
2023-06-24rustdoc: get rid of extra line when line-wrapping fn decls with empty arg listLeón Orell Valerian Liehr-0/+14
2023-06-24rustdoc: Update GUI testNoah Lev-1/+2
2023-06-24Revert "Structurally resolve correctly in check_pat_lit"Michael Goulet-1/+27
This reverts commit 54fb5a48b968b3a329ceeb57226d9ac60f983f04.
2023-06-24Rollup merge of #112989 - JohnTitor:issue-109141, r=compiler-errorsGuillaume Gomez-0/+39
Add a regression test for #109141 Closes #109141 r? ``@compiler-errors``
2023-06-24Rollup merge of #112854 - bvanjoi:fix-112674, r=NilstriebGuillaume Gomez-3/+59
fix: add cfg diagnostic for unresolved import error Fixes #112674 An easy fix, r? `@Nilstrieb`
2023-06-24Rollup merge of #112703 - aliemjay:next-solver-root-var, r=compiler-errorsGuillaume Gomez-0/+132
[-Ztrait-solver=next, mir-typeck] instantiate hidden types in the root universe Fixes an ICE in the test `member-constraints-in-root-universe`. Main motivation is to make #112691 pass under the new solver. r? ``@compiler-errors``
2023-06-24fix: add cfg diagnostic for unresolved import errorbohan-3/+59
2023-06-24instantiate hidden types in root universeAli MJ Al-Nasrawy-0/+132
2023-06-24Migrate GUI colors test to original CSS color formatGuillaume Gomez-30/+30