summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-03-06Auto merge of #108818 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum 1.68.0bors-1/+207
[stable] Promote 1.68.0 beta to stable https://forge.rust-lang.org/release/process.html#beta-to-stable r? `@Mark-Simulacrum`
2023-03-06Promote 1.68.0 beta to stableMark Rousskov-1/+207
2023-03-04Auto merge of #108670 - cuviper:beta-next, r=cuviperbors-799/+499
[beta] stage0 bump and backports - Bump stage0 to stable - Revert to using `RtlGenRandom` as a fallback #108060 - Fix `VecDeque::shrink_to` and add tests. #108475 - Fix `VecDeque::append` capacity overflow for ZSTs #108462 - Clippy: Fix array-size-threshold config deserialization error #108673 / rust-lang/rust-clippy#10423 - Yeet point_at_expr_source_of_inferred_type for now #108703 r? `@ghost`
2023-03-03Yeet point_at_expr_source_of_inferred_type for nowMichael Goulet-276/+6
2023-03-03Fix array-size-threshold config deserialization errorAlex Macleod-16/+52
2023-03-03Add test for VecDeque::append ZST capacity overflowpommicket-0/+14
(cherry picked from commit 12f959ba39ad353ce07971aaf8cef564f86b068d)
2023-03-03Use checked_add in VecDeque::append for ZSTs to avoid overflowpommicket-1/+1
(cherry picked from commit 379b18bb0ab07e8f7ba04ca29ba52a1817cec1ce)
2023-03-03Disambiguate commentsMarkus Everling-2/+2
(cherry picked from commit 4a4f43e4e9b994c729a0506d921fe9734673a20a)
2023-03-03Fix `VecDeque::shrink_to` and add tests.Markus Everling-55/+104
This adds both a test specific to #108453 as well as an exhaustive test that goes through all possible combinations of head index, length and target capacity for a deque with capacity 16. (cherry picked from commit 9e22516877a2853c71456ef792fcbd9087fb905a)
2023-03-03Revert to using `RtlGenRandom`Chris Denton-103/+31
This is required due to `BCryptGenRandom` failing to load the necessary dll on some systems. (cherry picked from commit dfd0afb991d4bfbd6fdf86adb631e428c185ac89)
2023-03-03Bump stage0 to stableJosh Stone-348/+291
2023-02-27Auto merge of #108508 - weihanglo:update-beta-cargo, r=weihanglobors-23/+53
[beta-1.68] cargo beta backports 3 commits in ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d..115f34552518a2f9b96d740192addbac1271e7e6 2023-02-09 03:13:43 +0000 to 2023-02-26 15:07:29 +0000 - [beta-1.68] backport rust-lang/cargo#11756 (rust-lang/cargo#11773) - [beta-1.68] backport rust-lang/cargo#11759 (rust-lang/cargo#11760) - [beta-1.68] backport rust-lang/cargo#11733 (rust-lang/cargo#11735) r? `@ghost`
2023-02-26[beta-1.68] cargo beta backportsWeihang Lo-23/+53
3 commits in ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d..115f34552518a2f9b96d740192addbac1271e7e6 2023-02-09 03:13:43 +0000 to 2023-02-26 15:07:29 +0000 - [beta-1.68] backport rust-lang/cargo#11756 (rust-lang/cargo#11773) - [beta-1.68] backport rust-lang/cargo#11759 (rust-lang/cargo#11760) - [beta-1.68] backport rust-lang/cargo#11733 (rust-lang/cargo#11735)
2023-02-15Auto merge of #108037 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-4/+57
[beta] backport * Do not eagerly recover for bad impl Trait types in macros #107813 * Fix infinite loop in rustdoc get_all_import_attributes function #107357 * Bring tests back into rustc source tarball #107239 r? `@Mark-Simulacrum`
2023-02-14Bring tests back into rustc source tarballTomasz Miąsko-1/+1
They were missing after recent move from src/test to tests.
2023-02-14Add regression test for #107350Guillaume Gomez-0/+18
2023-02-14Fix infinite loop in rustdoc get_all_import_attributes functionGuillaume Gomez-1/+3
2023-02-14Do not eagerly recover for bad impl-trait in macrosMichael Goulet-2/+35
2023-02-09Auto merge of #107849 - weihanglo:update-beta-cargo, r=weihanglobors-0/+0
[beta-1.68] cargo beta backports 1 commits in 0762e3bbdb6fa64b6859154199ec47d6c90c731c..ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d 2023-01-30 22:07:51 +0000 to 2023-02-09 03:13:43 +0000 - [beta-1.68] Backport fixes (rust-lang/cargo#11674) r? `@ghost`
2023-02-09[beta-1.68] Update cargoWeihang Lo-0/+0
1 commits in 0762e3bbdb6fa64b6859154199ec47d6c90c731c..ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d 2023-01-30 22:07:51 +0000 to 2023-02-09 03:13:43 +0000 - [beta-1.68] Backport fixes (rust-lang/cargo#11674)
2023-02-08Auto merge of #107609 - ↵bors-47/+57
pnkfelix:backport-reverts-to-fix-thin-archive-reading-for-1-68-beta, r=cuviper Backport reverts to fix thin archive reading for 1 68 beta This is a backport of PR #107360 aimed at beta. cc https://github.com/rust-lang/rust/issues/107162, https://github.com/rust-lang/rust/issues/107334 and https://github.com/google/shaderc-rs/issues/133
2023-02-07Revert "switch to the macos-12-xl builder"Michael Goulet-7/+7
This reverts commit fcbae989ae790d5b9a0a23ceba242d0b0d4e6c5b.
2023-02-07Mark uninlined_format_args as pedanticManish Goregaokar-1/+1
2023-02-02Revert "Avoid a temporary file when processing macOS fat archives"bjorn3-34/+36
This reverts commit bd8e476d8bd85b6d60a0de7694d154b4a74f5133.
2023-02-02Revert "Remove macOS fat archive support from LlvmArchiveBuilder"bjorn3-4/+10
This reverts commit 047c7cc60c05e2cf182c6f578581cf2a67b1d0ff.
2023-02-02Revert back to LlvmArchiveBuilder on all platformsbjorn3-1/+3
ArArchiveBuilder doesn't support reading thin archives, causing a regression.
2023-02-01Auto merge of #107504 - weihanglo:update-beta-cargo, r=ehussbors-11/+11
[beta] Cargo 1.68.0 backports 1 commits in 985d561f0bb9b76ec043a2b12511790ec7a2b954..0762e3bbdb6fa64b6859154199ec47d6c90c731c 2023-01-20 14:39:28 +0000 to 2023-01-30 22:07:51 +0000 - [beta-1.68] Backport fixes of split-debuginfo detection (rust-lang/cargo#11649) r? `@ehuss`
2023-01-31[beta] Update cargoWeihang Lo-11/+11
1 commits in 985d561f0bb9b76ec043a2b12511790ec7a2b954..0762e3bbdb6fa64b6859154199ec47d6c90c731c 2023-01-20 14:39:28 +0000 to 2023-01-30 22:07:51 +0000 - [beta-1.68] Backport fixes of split-debuginfo detection (rust-lang/cargo#11649)
2023-01-25Auto merge of #107258 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-14/+14
[beta] 1.68 branch Seems like no pending backports this time around. r? `@Mark-Simulacrum`
2023-01-24Set channel to betaMark Rousskov-1/+1
2023-01-24Set version placeholders to 1.68Mark Rousskov-13/+13
2023-01-22Auto merge of #107185 - compiler-errors:rollup-wkomjma, r=compiler-errorsbors-51/+577
Rollup of 8 pull requests Successful merges: - #103418 (Add `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` to future-incompat report) - #106113 (llvm-wrapper: adapt for LLVM API change) - #106144 (Improve the documentation of `black_box`) - #106578 (Label closure captures/generator locals that make opaque types recursive) - #106749 (Update cc to 1.0.77) - #106935 (Fix `SingleUseLifetime` ICE) - #107015 (Re-enable building rust-analyzer on riscv64) - #107029 (Add new bootstrap members to triagebot.toml) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-21Rollup merge of #107029 - albertlarsan68:patch-2, r=Mark-SimulacrumMichael Goulet-1/+3
Add new bootstrap members to triagebot.toml ```@ozkanonur``` if you want to be assigned to review PRs too, just post a message to this thread. Should a `T-bootstrap` label be created, since `src/tools/tidy` is assigned to the `bootstrap` members, but labeled `A-testsuite` (and not `A-bootstrap`) ? cc ```@jyn514```
2023-01-21Rollup merge of #107015 - cuviper:ra-riscv64, r=Mark-SimulacrumMichael Goulet-6/+0
Re-enable building rust-analyzer on riscv64 It was disabled in #75103 due to an LLVM bug, but followup comments have confirmed that it builds fine on Fedora with LLVM 15. r? ```@Mark-Simulacrum``` cc ```@matklad``` ```@davidlt```
2023-01-21Rollup merge of #106935 - TaKO8Ki:fix-104440, r=cjgillotMichael Goulet-25/+174
Fix `SingleUseLifetime` ICE Fixes #104440 cc: ``@matthiaskrgr``
2023-01-21Rollup merge of #106749 - glandium:dwarf, r=Mark-SimulacrumMichael Goulet-2/+2
Update cc to 1.0.77 Fixes (without a test) #98746.
2023-01-21Rollup merge of #106578 - compiler-errors:recursive-opaque-closure, r=TaKO8KiMichael Goulet-6/+99
Label closure captures/generator locals that make opaque types recursive cc https://github.com/rust-lang/rust/issues/46415#issuecomment-1374665828
2023-01-21Rollup merge of #106144 - tgross35:patch-1, r=Mark-SimulacrumMichael Goulet-0/+69
Improve the documentation of `black_box` There don't seem to be many great resources on how `black_box` should be used, so I added some information here
2023-01-21Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikicMichael Goulet-11/+9
llvm-wrapper: adapt for LLVM API change No functional changes intended. The LLVM commit https://github.com/llvm/llvm-project/commit/e6b02214c68df2c9f826e02310c9352ac652e456 added `TargetExtTyID` to the `TypeID` enum. This adapts `RustWrapper` accordingly.
2023-01-21Rollup merge of #103418 - Aaron1011:macro-semicolon-future-incompat, r=davidtwcoMichael Goulet-0/+221
Add `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` to future-incompat report See https://github.com/rust-lang/rust/issues/79813 for a discussion of this lint. This has been warn-by-default for over a year, so adding it to the future-incompat report should help to find libraries that haven't yet updated.
2023-01-22Auto merge of #107133 - pnkfelix:revert-pr-84022-for-issue-106337, ↵bors-49/+238
r=Mark-Simulacrum Revert "Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error" This reverts commit 7d82cadd97acc66993b69304c5a1a04ef7d1fa36 aka PR #84022 I am doing this to buy us some time with respect to issue #106337 w.r.t. the 1.67 release.
2023-01-21Auto merge of #106948 - cuviper:ci-mingw-check, r=nikicbors-145/+72
ci: upgrade mingw-check to ubuntu:22.04
2023-01-21Add `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` to future-incompat reportAaron Hill-0/+221
2023-01-21Auto merge of #105924 - TimNN:ui-remap, r=Mark-Simulacrumbors-60/+103
Remap paths in UI tests by default If you think this needs further discussions / something RFC-like, please let me know the best forum for that. This PR runs UI tests with a remapped "src base" directory by default. Why? Because some UI tests currently depend on the length of the absolute path to the `src/test/ui` directory. Remapping makes the tests independent of the absolute path. The path to the source file (which is absolute on CI) is part of the type name of closures. `rustc` diagnostic output depends on the length of type names (long type names are truncated). So a long absolute path leads to long closure type names, which leads to truncation and changed diagnostics. (I initially tried just disabling type name truncation, but that made some error messages stupid long (thousands of characters, IIRC)). Additional changes: * All boolean `compiletest` directives now support explicit `no-` versions to disable them. * Adapt existing tests when necessary: * Disable remapping for individual tests that fail with it enabled (when there's no obvious alternative fix). * For tests that already check something remapping related switch to the new option unless we gain something significant by keeping the manual remap. Passed Windows CI in https://github.com/rust-lang/rust/actions/runs/3933100590
2023-01-21Auto merge of #106977 - michaelwoerister:unord_id_collections, r=oli-obkbors-119/+394
Use UnordMap and UnordSet for id collections (DefIdMap, LocalDefIdMap, etc) This PR changes the `rustc_data_structures::define_id_collections!` macro to use `UnordMap` and `UnordSet` instead of `FxHashMap` and `FxHashSet`. This should account for a large portion of hash-maps being used in places where they can cause trouble. The changes required are moderate but non-zero: - In some places the collections are extracted into sorted vecs. - There are a few instances where for-loops have been changed to extends. ~~Let's see what the performance impact is. With a bit more refactoring, we might be able to get rid of some of the additional sorting -- but the change set is already big enough. Unless there's a performance impact, I'd like to do further changes in subsequent PRs.~~ Performance does not seem to be negatively affected ([perf-run here](https://github.com/rust-lang/rust/pull/106977#issuecomment-1396776699)). Part of [MCP 533](https://github.com/rust-lang/compiler-team/issues/533). r? `@ghost`
2023-01-21Auto merge of #106976 - tmiasko:borrowck-lazy-dominators, r=cjgillotbors-12/+12
Lazy dominator tree construction in borrowck Motivated by the observation that sometimes constructed dominator tree was never queried.
2023-01-21Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoeristerbors-47/+130
Simplify `derive(Debug)` output for fieldless enums Fixes #106875
2023-01-21Label closure captures/generator locals that make opaque types recursiveMichael Goulet-6/+99
2023-01-21Auto merge of #107143 - compiler-errors:rollup-zabvmo5, r=compiler-errorsbors-410/+1086
Rollup of 9 pull requests Successful merges: - #104154 (Change `bindings_with_variant_name` to deny-by-default) - #104347 (diagnostics: suggest changing `s@self::{macro}`@::macro`` for exported) - #104672 (Unify stable and unstable sort implementations in same core module) - #107048 (check for x version updates) - #107061 (Implement some more new solver candidates and fix some bugs) - #107095 (rustdoc: remove redundant CSS selector `.sidebar .current`) - #107112 (Fix typo in opaque_types.rs) - #107124 (fix check macro expansion) - #107131 (rustdoc: use CSS inline layout for radio line instead of flexbox) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-20Rollup merge of #107131 - ↵Michael Goulet-6/+1
notriddle:notriddle/rustdoc-radio-display-inline-flex, r=GuillaumeGomez rustdoc: use CSS inline layout for radio line instead of flexbox This uses less code to lay them out the same way. Already tested here: https://github.com/rust-lang/rust/blob/5ce39f42bd2c8bca9c570f0560ebe1fce4eddb14/tests/rustdoc-gui/settings.goml#L123