summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2022-01-20Auto merge of #93121 - pietroalbini:pa-1.58.1-really, r=pietroalbini 1.58.1bors-1/+1
[stable] Prepare 1.58.1 artifacts #93110 added all the changes needed for the 1.58.1 release, but didn't bump the version number. This PR bumps the version number to produce the 1.58.1 stable artifacts. r? `@ghost`
2022-01-20bump version numberPietro Albini-1/+1
2022-01-20Auto merge of #93110 - pietroalbini:pa-cve-2022-21658-stable, r=pietroalbinibors-94/+948
[stable] Fix CVE 2022 21658 and prepare 1.58.1 Followup to https://github.com/rust-lang/rust/pull/93071. Includes the fix for CVE-2022-21658. r? `@ghost` cc `@rust-lang/release` `@rust-lang/security`
2022-01-20Better fix for FuchsiaHans Kratz-9/+2
2022-01-20name_cstr() is not needed for Redox.Hans Kratz-6/+1
2022-01-20Fuchsia apparently does not have DT_UNKNOWN.Hans Kratz-1/+10
2022-01-20backport missed illumos fixHans Kratz-17/+26
2022-01-20Update release notes to include CVE-2022-21658Pietro Albini-0/+2
2022-01-20Update std::fs::remove_dir_all documentationPietro Albini-4/+8
2022-01-20Fix CVE-2022-21658 for WASIAlex Crichton-8/+63
2022-01-20Fix CVE-2022-21658 for UNIX-likeHans Kratz-12/+342
2022-01-20Fix CVE-2022-21658 for WindowsChris Denton-27/+419
2022-01-19bump cargo to fix spurious failurePietro Albini-0/+0
2022-01-19add release notes for 1.58.1Pietro Albini-0/+13
2022-01-19Handle implicit named arguments in `useless_format`Jason Newcomb-3/+42
2022-01-19Move `non_send_fields_in_send_ty` back to `nursery`Yechan Bae-3/+2
2022-01-19Only check for errors in predicate when skipping impl assemblyAaron Hill-32/+28
Prior to PR #91205, checking for errors in the overall obligation would check checking the `ParamEnv`, due to an incorrect `super_visit_with` impl. With this bug fixed, we will now bail out of impl candidate assembly if the `ParamEnv` contains any error types. In practice, this appears to be overly conservative - when an error occurs early in compilation, we end up giving up early for some predicates that we could have successfully evaluated without overflow. By only checking for errors in the predicate itself, we avoid causing additional spurious 'type annotations needed' errors after a 'real' error has already occurred. With this PR, the diagnostic changes caused by PR #91205 are reverted.
2022-01-19fix(rustfmt): resolve generated file formatting issueCaleb Cartwright-5/+23
2022-01-11Auto merge of #92723 - pietroalbini:1.58.0, r=pietroalbini 1.58.0bors-1/+291
[stable] Prepare Rust 1.58.0 release Backported the release notes currently on master plus: * https://github.com/rust-lang/rust/pull/92693 * https://github.com/rust-lang/rust/pull/92703 r? `@ghost` cc `@rust-lang/release`
2022-01-10bump to stable channelPietro Albini-1/+1
2022-01-10backport release notesPietro Albini-0/+290
2022-01-08Auto merge of #92592 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-164/+358
[beta] backports Backports these PRs: * Fix HashStable implementation on InferTy #91892 * Revert setting a default for the MACOSX_DEPLOYMENT_TARGET env var for linking #91870 * Make rustdoc headings black, and markdown blue #91534 * Disable LLVM newPM by default #91190 * Deduplicate projection sub-obligations #90423 * Sync portable-simd to remove autosplats #91484 by dropping portable_simd entirely (keeping the subtree, just from std/core) * Quote bat script command line #92208 * Fix failing tests #92201 (CI fix) r? `@Mark-Simulacrum`
2022-01-07Fix testsChris Denton-3/+11
2022-01-07Quote bat script command lineChris Denton-0/+35
2022-01-05Remove portable_simdMark Rousskov-131/+0
Stand-in for a backport of "Sync portable-simd to remove autosplats #91484".
2022-01-05Combine drain_filter callsAaron Hill-4/+4
2022-01-05Use SsoHashSetAaron Hill-2/+2
2022-01-05Deduplicate projection sub-obligationsAaron Hill-0/+6
2022-01-05Add test with `#[rustc_evaluate_where_clauses]`Wesley Wiser-1/+152
As suggested via reviewer feedback.
2022-01-05Add test for evaluate_obligation: Ok(EvaluatedToOkModuloRegions) ICEWesley Wiser-0/+117
Adds the minimial repro test case from #85360. The fix for #85360 was supposed to be #85868 however the repro was resolved in the 2021-07-05 nightly while #85360 didn't land until 2021-09-03. The reason for that is d34a3a401b4e44f289a4d5bf53da83367cbb6aa7 **also** resolves that issue. To test if #85868 actually fixes #85360, I reverted d34a3a401b4e44f289a4d5bf53da83367cbb6aa7 and found that #85868 does indeed resolve #85360. With that question resolved, add a test case to our incremental test suite for the original Ok(EvaluatedToOkModuloRegions) ICE. Thanks to @lqd for helping track this down!
2022-01-05Disable LLVM newPM by defaultSimonas Kazlauskas-8/+4
cc #91128
2022-01-05Make rustdoc headings black, and markdown blueJacob Hoffman-Andrews-7/+16
2022-01-05Revert "Set MACOSX_DEPLOYMENT_TARGET env var to default for linking if not set."Hans Kratz-15/+0
This reverts commit b376f5621b801460b911a75048a70698021bbc69, which is the main part of #90499, because it turns out that this causes a good amount of breakage in crates relying on the old behavior. Fixes #91372.
2022-01-05Fix HashStable implementation on InferTyMichael Goulet-0/+18
2021-12-04Auto merge of #91456 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-340/+283
[beta] Bump bootstrap to released stable compiler Finish release process. r? `@Mark-Simulacrum`
2021-12-02Bump bootstrap to released stable compilerMark Rousskov-340/+283
2021-11-29Auto merge of #91362 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-47/+53
[beta] branch master to beta Bumps channel and includes a backport of: * Don't treat unnormalized function arguments as well-formed #91243 r? `@Mark-Simulacrum`
2021-11-29Don't treat unnormalized function arguments as well-formedjackh726-46/+52
2021-11-29Bump channel to betaMark Rousskov-1/+1
2021-11-27Auto merge of #91269 - matthiaskrgr:rollup-jh8i8eh, r=matthiaskrgrbors-148/+200
Rollup of 7 pull requests Successful merges: - #90611 (Fix another ICE in rustdoc scrape_examples) - #91197 (rustdoc: Rename `Type::ResolvedPath` to `Type::Path` and don't re-export it) - #91223 (Fix headings indent) - #91240 (Saner formatting for UTF8_CHAR_WIDTH table) - #91248 (Bump compiler-builtins to 0.1.53) - #91252 (Fix bug where submodules wouldn't be updated when running x.py from a subdirectory) - #91259 (Remove `--display-doctest-warnings`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-11-26Rollup merge of #91259 - jyn514:doctest-warnings, r=GuillaumeGomezMatthias Krüger-74/+68
Remove `--display-doctest-warnings` `--display-doctest-warnings` can be replicated in full with other existing features, there's no need to have a separate option for it. This removes the option and documents the combination of other features to replicate it. This also fixes a bug where `--test-args=--show-output` had no effect. cc `@ollie27,` https://github.com/rust-lang/rust/pull/73314#issuecomment-668317262 Fixes https://github.com/rust-lang/rust/issues/41574 r? `@GuillaumeGomez`
2021-11-26Rollup merge of #91252 - jyn514:relative-dir, r=Mark-SimulacrumMatthias Krüger-1/+1
Fix bug where submodules wouldn't be updated when running x.py from a subdirectory Previously, it would concatenate the relative path to the current subdirectory, which looked at the wrong folder. I tested this by checking out `1.56.1`, changing the current directory to `src/`, and running `../x.py build`. Fixes https://github.com/rust-lang/rust/issues/90481 (cc `@pnkfelix).` r? `@Mark-Simulacrum`
2021-11-26Rollup merge of #91248 - alessandrod:compiler-builtins-bump-bpf, ↵Matthias Krüger-3/+3
r=Mark-Simulacrum Bump compiler-builtins to 0.1.53 Fixes a LLVM crash with the bpf targets, see https://github.com/rust-lang/compiler-builtins/pull/440
2021-11-26Rollup merge of #91240 - dtolnay:utf8width, r=Mark-SimulacrumMatthias Krüger-16/+17
Saner formatting for UTF8_CHAR_WIDTH table The way these lines were currently wrapped definitely does not look like someone's intentional formatting. It's likely they got disfigured by rustfmt at some point. This commit rearranges it to a rustfmt-compatible formatting that I find easier to read.
2021-11-26Rollup merge of #91223 - GuillaumeGomez:headings-indent, r=jshaMatthias Krüger-5/+53
Fix headings indent Fixes #91200. Screenshots with the fix: ![Screenshot from 2021-11-25 15-32-35](https://user-images.githubusercontent.com/3050060/143462481-f7e9ea13-72d5-46fe-90e0-9527e74599e3.png) ![Screenshot from 2021-11-25 15-32-49](https://user-images.githubusercontent.com/3050060/143462485-c010716a-0276-421b-a777-afff19c81c96.png) If the first element of a top docblock is a heading, we still need to keep the indent, but only on this one (I added a test to check it). We need it because otherwise the anchor will go over the `[-]` toggle. cc `@camelid` r? `@jsha`
2021-11-26Rollup merge of #91197 - camelid:rename-resolvedpath, r=GuillaumeGomez,jyn514Matthias Krüger-43/+43
rustdoc: Rename `Type::ResolvedPath` to `Type::Path` and don't re-export it The new name is shorter, simpler, and consistent with `hir::Ty`. It can't be re-exported since the name would conflict with the `clean::Path` struct. But usually enum variants are referred to using their qualified names in Rust anyway (and parts of rustdoc already do that with `clean::Type`), so this is also more consistent with the language. r? `@GuillaumeGomez` cc `@jyn514`
2021-11-26Rollup merge of #90611 - fee1-dead:rustdoc-ice-fix, r=jyn514,willcrichtonMatthias Krüger-6/+15
Fix another ICE in rustdoc scrape_examples This has occurred to me when documenting a crate with the arguments. Not sure what could have caused it. r? `@willcrichton`
2021-11-26Auto merge of #91246 - nnethercote:faster-layout-array, r=dtolnaybors-4/+98
Faster `Layout::array` `Layout::array` is called (indirectly) by `Vec::push()`, which is typically instantiated many times, and so making it smaller can help with compile times because less LLVM IR is generated. r? `@ghost`
2021-11-26Remove `--display-doctest-warnings`Joshua Nelson-74/+68
This can be replicated in full with other existing features, there's no need to have a separate option for it. This also fixes a bug where `--test-args=--show-output` had no effect, and updates the documentation.
2021-11-26Rename `Type::ResolvedPath` to `Type::Path`Noah Lev-38/+37
At last! The new name is shorter, simpler, and consistent with `hir::Ty`.