about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2022-09-27Fix ICE in const_trait check codeDeadbeef-0/+34
This fixes #102156.
2022-09-27Update test.Mara Bos-6/+4
2022-09-27Update tests.Mara Bos-215/+190
2022-09-27Rewrite and refactor format_args!() builtin macro.Mara Bos-8/+8
2022-09-27Auto merge of #102306 - lcnr:rustc_hir_analysis, r=compiler-errorsbors-2/+2
rename rustc_typeck to rustc_hir_analysis first part of https://github.com/rust-lang/compiler-team/issues/529 r? `@compiler-errors`
2022-09-27rustc_typeck to rustc_hir_analysislcnr-2/+2
2022-09-27Auto merge of #102314 - TaKO8Ki:add-label-to-struct-enum-union-ident, r=estebankbors-6/+67
Add a label to struct/enum/union ident name Based on https://github.com/rust-lang/rust/pull/94996#discussion_r831694150 cc: `@estebank`
2022-09-27Auto merge of #102189 - davidtwco:translation-derive-enums, r=compiler-errorsbors-88/+119
macros: diagnostic derive on enums Part of #100717. Extends `#[derive(Diagnostic)]` to work on enums too where each variant acts like a distinct diagnostic - being able to represent diagnostics this way can be quite a bit simpler for some parts of the compiler. r? `@compiler-errors` cc `@Xiretza`
2022-09-27Structured suggestion for missing mut/const in pointerMichael Goulet-4/+31
2022-09-27fix a ui testTakayuki Maeda-0/+2
2022-09-27add a label to struct/enum/union ident nameTakayuki Maeda-6/+65
2022-09-26remove implied link bound per reviewMatthew Kelly-2/+3
also update .stderr outputs
2022-09-26Merge remote-tracking branch 'origin/master' into ↵Matthew Kelly-9083/+16796
mpk/add-long-error-message-for-E0311
2022-09-26Rollup merge of #102325 - notriddle:notriddle/line-number, r=GuillaumeGomezMichael Howell-19/+19
rustdoc: give `.line-number` / `.line-numbers` meaningful names
2022-09-26Rollup merge of #102321 - aDotInTheVoid:rdj-prim-impls, r=GuillaumeGomezMichael Howell-1/+35
Rustdoc-Json: List impls for primitives Closes #101695 Partially addresses #100961 r? ``@GuillaumeGomez``
2022-09-26Enable inline stack probes on PowerPC and SystemZJosh Stone-30/+71
2022-09-26rustdoc: give `.line-number` / `.line-numbers` meaningful namesMichael Howell-19/+19
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-209/+233
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-26 Rustdoc-Json: List impls for primitivesNixon Enraght-Moony-1/+35
Closes #101695
2022-09-26Auto merge of #102051 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrumbors-5/+2
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-210/+210
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-17/+41
2022-09-26macros: support diagnostic derive on enumsDavid Wood-88/+119
Signed-off-by: David Wood <david.wood@huawei.com>
2022-09-26Get rid of long exclude-list for Windows-only testsFlorian Bartels-30/+8
2022-09-26actually fix line numberPietro Albini-2/+2
2022-09-26fix line number in expected test outputPietro Albini-2/+2
2022-09-26applease tidyPietro Albini-1/+0
2022-09-26remove cfg(bootstrap)Pietro Albini-2/+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-26Rollup merge of #102280 - notriddle:notriddle/band, r=GuillaumeGomezfee1-dead-151/+151
rustdoc: clean up `.out-of-band`/`.in-band` CSS | | method | impl |--------|--------|------ | before | ![image](https://user-images.githubusercontent.com/1593513/192164603-dea9befb-0f5f-4bd5-a44d-1f8328e27955.png) | ![image](https://user-images.githubusercontent.com/1593513/192164642-06f958cb-8fd5-4b73-bdb7-d2778f358f80.png) | after | ![image](https://user-images.githubusercontent.com/1593513/192164612-f72ee8db-c87c-477c-99e8-283b1cf0c14b.png) | ![image](https://user-images.githubusercontent.com/1593513/192164653-8e628dc3-5bf3-4ce8-829b-06e27a90fe06.png) * Remove the `float: right` fallback from the main header, which hasn't been needed since IE11 support was dropped. * Remove `in-band` from low-level headers, which hasn't been needed since `.rightside` switched to `float: right` in https://github.com/rust-lang/rust/commit/593d6d1cb15c55c88319470dabb40126c7b7f1e2 * Remove unreachable `.in-band > code, .in-band > .code-header` CSS, since the `in-band` class was attached to the `code-header` itself, not nested directly below it. * Use `rem` instead of `em` for code header margins. * This results in a slight change in spacing around impls and item-info, but since it makes it more consistent with the way methods are presented, it's probably fine. Preview: http://notriddle.com/notriddle-rustdoc-demos/band/std/fs/struct.File.html
2022-09-26Rollup merge of #102244 - compiler-errors:issue-102219, r=cjgillotfee1-dead-0/+10
Only generate closure def id for async fns with body Fixes #102219
2022-09-26Rollup merge of #101851 - Xiretza:diagnostic-derive-cleanups, r=davidtwcofee1-dead-176/+400
Clean up (sub)diagnostic derives The biggest chunk of this is unifying the parsing of subdiagnostic attributes (`#[error]`, `#[suggestion(...)]`, `#[label(...)]`, etc) between `Subdiagnostic` and `Diagnostic` type attributes as well as `Diagnostic` field attributes. It also improves a number of proc macro diagnostics. Waiting for #101558.
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-25Round offset to whole integerMichael Howell-2/+2
2022-09-25rustdoc: update test cases now that code-header is used without in-bandMichael Howell-143/+143
2022-09-25rustdoc: clean up `.out-of-band`/`.in-band` CSSMichael Howell-8/+8
* Remove the `float: right` fallback from the main header, which hasn't been needed since IE11 support was dropped. * Remove `in-band` from low-level headers, which hasn't been needed since `.rightside` switched to `float: right` in 593d6d1cb15c55c88319470dabb40126c7b7f1e2 * Remove unreachable `.in-band > code, .in-band > .code-header` CSS, since the `in-band` class was attached to the `code-header` itself, not nested directly below it. * Use `rem` instead of `em` for code header margins. * This results in a slight change in spacing around impls and item-info, but since it makes it more consistent with the way methods are presented, it's probably fine.
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-142/+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