summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2021-05-03remove copy intrinsic test - no longer constMark Rousskov-114/+0
2021-05-03Fix ICE of for-loop mut borrowck where no suggestions are availableDeadbeef-0/+44
2021-05-03Revert "Fix clippy's path to the copy intrinsics."Mark Rousskov-2/+2
This reverts commit 1a806352e41fcba5eac91784476fc6dfa6ee05b7.
2021-05-03Revert "directly expose copy and copy_nonoverlapping intrinsics"Mark Rousskov-26/+29
This reverts commit 18d12ad171384a82736a88b879540bf464161063.
2021-05-03placate tidy.Felix S. Klock II-2/+0
2021-05-03regression test for issue 82465.Felix S. Klock II-0/+16
2021-05-03beta-targetted revert of PR #80653, to address issue #82465.Felix S. Klock II-184/+46
adapted from 513756bb55a0dbc6e74d0043afd1727bd3c73aae
2021-05-03Revert PR 81473 to resolve (on beta) issues 81626 and 81658.Felix S. Klock II-114/+0
Revert "Add missing brace" This reverts commit 85ad773049536d7fed9a94ae0ac74f97135c8655. Revert "Simplify base_expr" This reverts commit 899aae465eb4ef295dc1eeb2603f744568e0768c. Revert "Warn write-only fields" This reverts commit d3c69a4c0dd98af2611b7553d1a65afef6a6ccb0.
2021-05-03Remove assert_matches usersMark Rousskov-11/+0
2021-05-03Remove tests introduced or cahnged by PR #77885, which is reverted in this PR.Felix S. Klock II-44/+0
2021-05-03bump channel to stableMark Rousskov-1/+1
2021-04-24Auto merge of #84271 - nagisa:nagisa/beta-bump-llvm, r=cuviperbors-0/+0
[beta] Bump LLVM to a upstream 12.0 release Currently the `beta` branch utilizes a release candidate of LLVM 12.0. Since then a large number of issues have been fixed upstream, including those that are known to affect Rust code. It would be unfortunate if we released a stable Rust with all of those issues when we have the fixes in the actual LLVM release and/or our backports of commits that didn't make the release cut on top of it. cc `@cuviper` / `@nikic`
2021-04-21Auto merge of #84394 - m-ou-se:upgrade-ci-dep-expat, r=Mark-Simulacrumbors-1/+1
Upgrade `expat` dependency in riscv64 to newer version. The old version was renamed to `expat-2.2.6-RENAMED-VULNERABLE-PLEASE-USE-2.3.0-INSTEAD`. :) r? `@Mark-Simulacrum`
2021-04-20[beta] Update cargoEric Huss-0/+0
2021-04-17[beta] Bump LLVM to a upstream release of 12.0Simonas Kazlauskas-0/+0
2021-04-06[beta] Update cargoEric Huss-0/+0
2021-03-26Bump beta branch to released stableMark Rousskov-2/+2
2021-03-24Fix bootstrap tests on betaMark Rousskov-0/+3
2021-03-24Update fulldeps testMark Rousskov-29/+18
2021-03-24Ignore failures of RLS on aarch64 WindowsMark Rousskov-1/+7
2021-03-24[beta] initial branch offMark Rousskov-5/+5
2021-03-20Auto merge of #83271 - SparrowLii:simd_neg, r=Amanieubors-15/+36
Add simd_neg platform intrinsic Stdarch needs to add simd_neg to support the implementation of vneg neon instructions. Look [here](https://github.com/rust-lang/stdarch/pull/1087)
2021-03-19Auto merge of #83308 - Dylan-DPC:rollup-p2j6sy8, r=Dylan-DPCbors-14/+89
Rollup of 8 pull requests Successful merges: - #79986 (Only build help popup when it's really needed) - #82570 (Add `as_str` method for split whitespace str iterators) - #83244 (Fix overflowing length in Vec<ZST> to VecDeque) - #83254 (Include output stream in `panic!()` documentation) - #83269 (Revert the second deprecation of collections::Bound) - #83277 (Mark early otherwise optimization unsound) - #83285 (Update LLVM to bring in SIMD updates for WebAssembly) - #83297 (Do not ICE on ty::Error as an error must already have been reported) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-03-19Rollup merge of #83297 - oli-obk:why_bug_today_if_you_can_delay_to_tomorrow, ↵Dylan DPC-0/+67
r=petrochenkov Do not ICE on ty::Error as an error must already have been reported fixes #83253
2021-03-19Rollup merge of #83285 - alexcrichton:wasm-simd-update, r=cuviperDylan DPC-0/+0
Update LLVM to bring in SIMD updates for WebAssembly This is a continuation of https://github.com/rust-lang/llvm-project/pull/96 to continue to make progress on updating Rust's support for SIMD intrinsics on WebAssembly to the latest version of the specification.
2021-03-19Rollup merge of #83277 - spastorino:early_otherwise-opt-unsound, r=oli-obkDylan DPC-2/+2
Mark early otherwise optimization unsound r? `@oli-obk` cc `@tmiasko` Related to #78496 and #82905 Should I also bump this one to level 3 or 4 or given that is unsound it doesn't matter?. Probably need to adjust some tests.
2021-03-19Rollup merge of #79986 - GuillaumeGomez:build-help-when-needed, r=Nemo157Dylan DPC-12/+20
Only build help popup when it's really needed When working on https://github.com/rust-lang/rust/pull/79985, I realized that the help popup was built even when it wasn't needed. This PR only makes the help popup to be built when required. r? `@jyn514`
2021-03-19Auto merge of #83201 - klensy:checkout-v2, r=pietroalbinibors-1/+1
use checkout@v2 in CI for master Updates CI workflow to use checkout@v2 from v1 (as other parts of CI) for master, plus slightly faster checkout as result compare v2 https://github.com/rust-lang-ci/rust/commit/2ccf06302c08d7d4911aad40e66a9a3ee731c6f9/checks/2113902859/logs and v1 logs https://github.com/rust-lang-ci/rust/commit/2ccf06302c08d7d4911aad40e66a9a3ee731c6f9/checks/2115229351/logs
2021-03-19Auto merge of #82951 - sexxi-goose:wr-mir-replace-methods2, r=nikomatsakisbors-0/+259
Replace closures_captures and upvar_capture with closure_min_captures Removed all uses of closures_captures and upvar_capture and refactored code to work with closure_min_captures. This also involved removing functions that were no longer needed like the bridge. Closes https://github.com/rust-lang/project-rfc-2229/issues/18 r? `@nikomatsakis`
2021-03-19Ignore main.js file lengthGuillaume Gomez-0/+1
2021-03-19Only build help popup when it's really neededGuillaume Gomez-12/+19
2021-03-19Auto merge of #83301 - Dylan-DPC:rollup-x1yzvhm, r=Dylan-DPCbors-37/+252
Rollup of 11 pull requests Successful merges: - #82500 (Reuse `std::sys::unsupported::pipe` on `hermit`) - #82759 (Remove unwrap_none/expect_none from compiler/.) - #82846 (rustdoc: allow list syntax for #[doc(alias)] attributes) - #82892 (Clarify docs for Read::read's return value) - #83179 (Extend `proc_macro_back_compat` lint to `actix-web`) - #83197 (Move some test-only code to test files) - #83208 (Fix gitattibutes for old git versions) - #83215 (Deprecate std::os::haiku::raw, which accidentally wasn't deprecated) - #83230 (Remove unnecessary `forward_inner_docs` hack) - #83236 (Upgrade memmap to memmap2) - #83270 (Fix typo/inaccuracy in the documentation of Iterator::skip_while) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-03-19Rollup merge of #83236 - cjgillot:memmap, r=joshtriplettDylan DPC-0/+1
Upgrade memmap to memmap2 memmap is no longer maintained. memmap2 is a fork that is still maintained. https://rustsec.org/advisories/RUSTSEC-2020-0077.html The remaining use of memmap is through measureme.
2021-03-19Rollup merge of #83179 - Aaron1011:actix-web-lint, r=petrochenkovDylan DPC-7/+79
Extend `proc_macro_back_compat` lint to `actix-web` Unlike the other cases of this lint, there's no simple way to detect if an old version of the relevant crate (`syn`) is in use. The `actix-web` crate only depends on `pin-project` v1.0.0, so checking the version of `actix-web` does not guarantee that a new enough version of `pin-project` (and therefore `syn`) is in use. Instead, we rely on the fact that virtually all of the regressed crates are pinned to a pre-1.0 version of `pin-project`. When this is the case, bumping the `actix-web` dependency will pull in the *latest* version of `pin-project`, which has an explicit dependency on a newer v dependency on a newer version of `syn`. The lint message tells users to update `actix-web`, since that's what they're most likely to have control over. We could potentially tell them to run `cargo update -p syn`, but I think it's more straightforward to suggest an explicit change to the `Cargo.toml` The `actori-web` fork had its last commit over a year ago, and appears to just be a renamed fork of `actix-web`. Therefore, I've removed the `actori-web` check entirely - any crates that actually get broken can simply update `syn` themselves.
2021-03-19Rollup merge of #82846 - GuillaumeGomez:doc-alias-list, r=jyn514Dylan DPC-30/+172
rustdoc: allow list syntax for #[doc(alias)] attributes Fixes https://github.com/rust-lang/rust/issues/81205. It now allows to have: ```rust #[doc(alias = "x")] // and: #[doc(alias("y", "z"))] ``` cc ``@jplatte`` r? ``@jyn514``
2021-03-19Add a second regression testOli Scherer-0/+32
2021-03-19Auto merge of #82754 - rylev:rusage-windows, r=pnkfelixbors-10/+76
Attempt to gather similar stats as rusage on Windows A follow up to #82532. This is a bit hacked in because I think we need to discuss this before merging, but this is an attempt to gather similar metrics as `libc::rusage` on Windows. Some comments on differences: * Currently, we're passing `RUSAGE_CHILDREN` to `rusage` which collects statistics on all children that have been waited on and terminated. I believe this is currently just the invocation of the real `rustc` that the shim is wrapping. Does `rustc` itself spawn children processes? The windows version gets the child processes handle when spawning it, and uses that to collect the statistics. For maxrss, `rusage` will return "the resident set size of the largest child, not the maximum resident set size of the process tree.", the Windows version will only collect statistics on the wrapped `rustc` child process directly even if some theoretical sub process has a larger memory footprint. * There might be subtle differences between `rusage`'s "resident set" and Window's "working set". The "working set" and "resident set" should both be the number of pages that are in memory and which would not cause a page fault when accessed. * I'm not yet sure how best to get the same information that `ru_minflt`, `ru_inblock`, `ru_oublock`, `ru_nivcsw ` and `ru_nvcsw` provide. r? `@pnkfelix`
2021-03-19Do not ICE on ty::Error as an error must already have been reportedOli Scherer-0/+35
2021-03-18Replace closures_captures and upvar_capture with closure_min_capturesJennifer Wills-0/+259
make changes to liveness to use closure_min_captures use different span borrow check uses new structures rename to CapturedPlace stop using upvar_capture in regionck remove the bridge cleanup from rebase + remove the upvar_capture reference from mutability_errors.rs remove line from livenes test make our unused var checking more consistent update tests adding more warnings to the tests move is_ancestor_or_same_capture to rustc_middle/ty update names to reflect the closures add FIXME check that all captures are immutable borrows before returning add surrounding if statement like the original move var out of the loop and rename Co-authored-by: Logan Mosier <logmosier@gmail.com> Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
2021-03-18Mark early otherwise optimization unsoundSantiago Pastorino-2/+2
2021-03-18Update LLVM to bring in SIMD updates for WebAssemblyAlex Crichton-0/+0
This is a continuation of https://github.com/rust-lang/llvm-project/pull/96 to continue to make progress on updating Rust's support for SIMD intrinsics on WebAssembly to the latest version of the specification.
2021-03-19Add simd_neg platform intrinsicSparrowLii-15/+36
2021-03-18Upgrade memmap to memmap2 in other crates.Camille GILLOT-0/+1
2021-03-18Auto merge of #83257 - RalfJung:miri, r=RalfJungbors-7/+9
update Miri Fixes https://github.com/rust-lang/rust/issues/83242 Cc `@rust-lang/miri` r? `@ghost`
2021-03-18Extend `proc_macro_back_compat` lint to `actix-web`Aaron Hill-7/+79
Unlike the other cases of this lint, there's no simple way to detect if an old version of the relevant crate (`syn`) is in use. The `actix-web` crate only depends on `pin-project` v1.0.0, so checking the version of `actix-web` does not guarantee that a new enough version of `pin-project` (and therefore `syn`) is in use. Instead, we rely on the fact that virtually all of the regressed crates are pinned to a pre-1.0 version of `pin-project`. When this is the case, bumping the `actix-web` dependency will pull in the *latest* version of `pin-project`, which has an explicit dependency on a newer v dependency on a newer version of `syn`. The lint message tells users to update `actix-web`, since that's what they're most likely to have control over. We could potentially tell them to run `cargo update -p syn`, but I think it's more straightforward to suggest an explicit change to the `Cargo.toml` The `actori-web` fork had its last commit over a year ago, and appears to just be a renamed fork of `actix-web`. Therefore, I've removed the `actori-web` check entirely - any crates that actually get broken can simply update `syn` themselves.
2021-03-18update MiriRalf Jung-7/+9
2021-03-18Auto merge of #77566 - Marwes:smaller_hashmap, r=Amanieubors-20/+21
feat: Update hashbrown to instantiate less llvm IR Includes https://github.com/rust-lang/hashbrown/pull/204 and https://github.com/rust-lang/hashbrown/pull/205 (not yet merged) which both serve to reduce the amount of IR generated for hashmaps. Inspired by the llvm-lines data gathered in https://github.com/rust-lang/rust/pull/76680 (cc `@Julian-Wollersberger)`
2021-03-18Auto merge of #82868 - petrochenkov:bto, r=estebankbors-26/+73
Report missing cases of `bare_trait_objects` Fixes https://github.com/rust-lang/rust/issues/65371
2021-03-18Auto merge of #76447 - pickfire:async-pub, r=estebankbors-17/+121
Detect async visibility wrong order, `async pub` Partially address #76437.
2021-03-18Report missing cases of `bare_trait_objects`Vadim Petrochenkov-0/+47