about summary refs log tree commit diff
path: root/src/test/ui
AgeCommit message (Collapse)AuthorLines
2022-09-26Rollup merge of #102286 - compiler-errors:recover-semi-in-block-item, ↵Matthias Krüger-4/+45
r=davidtwco Recover some items that expect braces and don't take semicolons Fixes #102262
2022-09-26Rollup merge of #102273 - woppopo:relax_const_bound, r=fee1-deadMatthias Krüger-28/+40
Allow `~const` bounds on non-const functions Makes the behavior of bound of trait-associated functions and non-associated functions consistent.
2022-09-26Rollup merge of #102181 - inquisitivecrystal:issue-100878-test, ↵Matthias Krüger-0/+8
r=Mark-Simulacrum Add regression test This adds a regression test for issue #100878. Closes #100878.
2022-09-26Rollup merge of #101996 - b-naber:binder-print, r=lcnrMatthias Krüger-153/+177
Don't duplicate region names for late-bound regions in print of Binder Fixes https://github.com/rust-lang/rust/issues/101280
2022-09-26Rollup merge of #101875 - fmease:allow-more-negative-copy-impls, r=lcnrMatthias Krüger-18/+94
Allow more `!Copy` impls You can already implement `!Copy` for a lot of types (with `#![feature(negative_impls)]`). However, before this PR you could not implement `!Copy` for ADTs whose fields don't implement `Copy` which didn't make any sense. Further, you couldn't implement `!Copy` for types impl'ing `Drop` (equally nonsensical). ``@rustbot`` label T-types F-negative_impls Fixes #101836. r? types
2022-09-26Auto merge of #102051 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrumbors-1/+0
Update bootstrap compiler to 1.65.0 This PR updates the bootstrap compiler to Rust 1.65.0, removing the various `cfg(bootstrap)`s. r? `@Mark-Simulacrum`
2022-09-26address reviewb-naber-154/+154
2022-09-26Auto merge of #102184 - chenyukang:fix-102087-add-binding-sugg, r=nagisabors-0/+444
Suggest Default::default() when binding isn't initialized Fixes #102087
2022-09-26bless testsb-naber-11/+35
2022-09-26Get rid of long exclude-list for Windows-only testsFlorian Bartels-30/+8
2022-09-26remove cfg(bootstrap)Pietro Albini-1/+0
2022-09-26Auto merge of #102224 - fee1-dead-contrib:const_trait_impl_specialization, ↵bors-0/+139
r=oli-obk Allow specializing on const trait bounds
2022-09-26make invalid_value lint a bit smarter around enumsRalf Jung-76/+189
2022-09-26Auto merge of #102297 - fee1-dead-contrib:rollup-2np0cre, r=fee1-deadbors-2/+17
Rollup of 5 pull requests Successful merges: - #102143 (Recover from struct nested in struct) - #102178 (bootstrap: the backtrace feature is stable, no need to allow it any more) - #102197 (Stabilize const `BTree{Map,Set}::new`) - #102267 (Don't set RUSTC in the bootstrap build script) - #102270 (Remove benches from `rustc_middle`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-09-26Rollup merge of #102197 - Nilstrieb:const-new-🌲, r=Mark-Simulacrumfee1-dead-2/+0
Stabilize const `BTree{Map,Set}::new` The FCP was completed in #71835. Since `len` and `is_empty` are not const stable yet, this also creates a new feature for them since they previously used the same `const_btree_new` feature.
2022-09-26Rollup merge of #102143 - Rageking8:fix-101540, r=TaKO8Kifee1-dead-0/+17
Recover from struct nested in struct Fixes #101540 r? `@TaKO8Ki` Not sure If I have done it right.
2022-09-26Allow `~const` bounds on non-const functionswoppopo-28/+40
2022-09-26fix #102087, Suggest Default::default() when binding isn't initializedyukang-0/+444
2022-09-25Only generate closure def id for async fns with bodyMichael Goulet-0/+10
2022-09-25Recover some items that expect braces and don't take semicolonsMichael Goulet-4/+45
2022-09-25Auto merge of #95474 - oli-obk:tait_ub, r=jackh726bors-29/+482
Neither require nor imply lifetime bounds on opaque type for well formedness The actual hidden type can live arbitrarily longer than any individual lifetime and arbitrarily shorter than all but one of the lifetimes. fixes #86218 fixes #84305 This is a **breaking change** but it is a necessary soundness fix
2022-09-25Auto merge of #102265 - fee1-dead-contrib:rollup-a7fccbg, r=fee1-deadbors-141/+191
Rollup of 8 pull requests Successful merges: - #98111 (Clarify `[T]::select_nth_unstable*` return values) - #101431 (Look at move place's type when suggesting mutable reborrow) - #101800 (Constify slice.split_at_mut(_unchecked)) - #101997 (Remove support for legacy PM) - #102194 (Note the type when unable to drop values in compile time) - #102200 (Constify Default impl's for Arrays and Tuples.) - #102245 (Constify cmp_min_max_by.) - #102259 (Type-annotate and simplify documentation of Option::unwrap_or_default) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-09-25Rollup merge of #102194 - fee1-dead-contrib:improve-const-drop, r=oli-obkfee1-dead-139/+139
Note the type when unable to drop values in compile time
2022-09-25Rollup merge of #101997 - cuviper:drop-legacy-pm, r=nikicfee1-dead-2/+2
Remove support for legacy PM This removes support for optimizing with LLVM's legacy pass manager, as well as the unstable `-Znew-llvm-pass-manager` option. We have been defaulting to the new PM since LLVM 13 (except for s390x that waited for 14), and LLVM 15 removed support altogether. The only place we still use the legacy PM is for writing the output file, just like `llc` does. cc #74705 r? ``@nikic``
2022-09-25Rollup merge of #101431 - compiler-errors:move-place-ty-for-move-place-sugg, ↵fee1-dead-0/+50
r=cjgillot Look at move place's type when suggesting mutable reborrow Not sure why we are looking at the use site's ty instead of the move site's ty in order to suggest reborrowing the move site, but it was suppressing a perfectly valid reborrow suggestion. r? `@estebank` who i think touched this last in 520461f1fb2730f8edb17922f3bcc74fccdc52d3, though that was quite a while ago so feel free to reassign.
2022-09-25Auto merge of #100865 - compiler-errors:parent-substs-still, r=cjgillotbors-11/+23
Don't drop parent substs when we have no generic parameters in `create_substs_for_ast_path` This bug is being shadowed by an explicit check for `generics.params.is_empty()` in the only parent caller that could trigger it (`create_substs_for_associated_item`). I triggered it on another branch where I'm messing around with astconv stuff. Also, the second commit simplifies `create_substs_for_associated_item`. Removing that explicit check I mentioned above^ and also the special case call to `Astconv::prohibit_generics` causes the UI test `src/test/ui/structs/struct-path-associated-type.stderr` to change, but I think that it's clearer now. The suggestion to remove the generics is actually useful.
2022-09-25Rollup merge of #102161 - compiler-errors:issue-102138, r=tmandryMatthias Krüger-0/+57
Resolve async fn signature even without body (e.g., in trait) Fixes #102138 This "bail if no body" behavior was introduced in #69539 to fix #69401, but that ICE does not reproduce any more. The error message changes a bit, but that's all, and I don't think it's a particularly diagnostic bad regression.
2022-09-25Rollup merge of #102016 - lcnr:given-OutlivesEnvironment, r=jackh726Matthias Krüger-0/+50
implied_bounds: deal with inference vars fixes #101951 while computing implied bounds for `<<T as ConstructionFirm>::Builder as BuilderFn<'_>>::Output` normalization replaces a projection with an inference var (adding a `Projection` obligation). Until we prove that obligation, this inference var remains unknown, which caused us to miss an implied bound necessary to prove that the unnormalized projection from the trait method signature is wf. r? types
2022-09-24Auto merge of #102040 - TaKO8Ki:separate-definitions-and-hir-owners, r=cjgillotbors-1/+3
Separate definitions and HIR owners in the type system Fixes #83158 r? `@cjgillot`
2022-09-24Note the type when unable to drop values in compile timeDeadbeef-139/+139
2022-09-24added testsDeadbeef-0/+84
2022-09-24Add testMichael Goulet-0/+11
2022-09-24Only record extra lifetime params for async trait fn with no bodyMichael Goulet-50/+4
2022-09-24Resolve async fn signature even without body (in trait)Michael Goulet-4/+96
2022-09-24separate definitions and `HIR` ownersTakayuki Maeda-1/+3
fix a ui test use `into` fix clippy ui test fix a run-make-fulldeps test implement `IntoQueryParam<DefId>` for `OwnerId` use `OwnerId` for more queries change the type of `ParentOwnerIterator::Item` to `(OwnerId, OwnerNode)`
2022-09-24Rollup merge of #102210 - notriddle:notriddle/did-you-mean, r=cjgillotMatthias Krüger-0/+51
diagnostics: avoid syntactically invalid suggestion in if conditionals Fixes #101065
2022-09-24Rollup merge of #102109 - petrochenkov:addids, r=oli-obkMatthias Krüger-2/+45
resolve: Set effective visibilities for imports more precisely Instead of setting them for all primary and additional IDs of the import, only set them for the binding's true ID.
2022-09-24Auto merge of #102064 - cjgillot:revert, r=Mark-Simulacrumbors-74/+19
Revert perf-regression 101620 Reverts #101862 #101620 r? `@Mark-Simulacrum`
2022-09-24Allow specializing on const trait boundsDeadbeef-0/+55
2022-09-24Rollup merge of #102152 - compiler-errors:issue-102140, r=fee1-deadMatthias Krüger-0/+59
Calculate `ProjectionTy::trait_def_id` for return-position `impl Trait` in trait correctly Fixes #102140
2022-09-24Rollup merge of #102082 - andrewpollack:uid-ignore, r=tmandryMatthias Krüger-0/+1
Adding ignore fuchsia non-applicable commands Adding ignore fuchsia non-applicable commands cc `@djkoloski` r? `@tmandry`
2022-09-24Rollup merge of #102081 - andrewpollack:add-execvp-calls-ignore, r=tmandryMatthias Krüger-0/+1
Adding ignore fuchsia tests for execvp (pre_exec) Adding ignore fuchsia tests for pre_exec, which calls execvp cc. `@djkoloski` r? `@tmandry`
2022-09-24Auto merge of #102068 - cjgillot:erased-lifetime-print, r=eholkbors-27/+27
Always print '_, even for erased lifetimes. Explicit lifetime arguments are now the recommended syntax in rust 2018 and rust 2021. This PR applies this discipline to rustc itself.
2022-09-23Add regression test for issue #100878inquisitivecrystal-0/+8
2022-09-23diagnostics: avoid syntactically invalid suggestion in if conditionalsMichael Howell-0/+51
Fixes #101065
2022-09-23Allow more !Copy implsLeón Orell Valerian Liehr-18/+94
2022-09-23Stabilize const `BTree{Map,Set}::new`Nilstrieb-2/+0
Since `len` and `is_empty` are not const stable yet, this also creates a new feature for them since they previously used the same `const_btree_new` feature.
2022-09-23Bless 32bit ui.Camille GILLOT-8/+8
2022-09-23Always print '_, even for erased lifetimes.Camille GILLOT-19/+19
2022-09-23Rollup merge of #102137 - b-naber:lazy-const-val-conversion, r=lcnrMatthias Krüger-35/+6
Don't convert valtree to constvalue during normalization r? ``@lcnr``