summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2021-06-16Backport 572c405da063d2628378b74a8f659ce90e0e7779 to 1.53Mark Rousskov-2/+2
This fixes a Clippy ICE on rustc std and the crates.io codebase (and potentially others).
2021-06-14regression test for issue 85713.Felix S. Klock II-0/+21
2021-06-14Revert "Allow specifying alignment for functions"Felix S. Klock II-40/+41
This reverts commit 448d07683a6defd567996114793a09c9a8aef5df to address issue 85713 on beta.
2021-06-14Pass RUSTC_FORCE_INCREMENTAL to auxiliary testsMark Rousskov-1/+3
This won't enable incremental if -Cincremental is not already passed, but is seemingly necessary in the presence of -Zincremental-verify-ich which does not check for incremental being enabled before accessing incremental data structures, leading to an ICE.
2021-06-14Soft disable incrementalMark Rousskov-2/+17
This disables incremental (i.e., -Cincremental) taking effect unless an environment variable, RUSTC_FORCE_INCREMENTAL, is set to 1 in the environment of the running rustc. Currently incremental causes errors for many users, and we do not have an expectation of being able to quickly fix these errors in a backportable way - so, for now, disable incremental entirely. The user can still opt-in, but this way the majority of users merely get slower builds, not broken builds.
2021-06-14bump to stable channelMark Rousskov-1/+1
2021-06-11Preserve `SyntaxContext` for invalid/dummy spans in crate metadataAaron Hill-0/+68
Fixes #85197 We already preserved the `SyntaxContext` for invalid/dummy spans in the incremental cache, but we weren't doing the same for crate metadata. If an invalid (lo/hi from different files) span is written to the incremental cache, we will decode it with a 'dummy' location, but keep the original `SyntaxContext`. Since the crate metadata encoder was only checking for `DUMMY_SP` (dummy location + root `SyntaxContext`), the metadata encoder would treat it as a normal span, encoding the `SyntaxContext`. As a result, the final span encoded to the metadata would change across sessions, even if the crate itself was unchanged. This PR updates our encoding of spans in the crate metadata to mirror the encoding of spans into the incremental cache. We now always encode a `SyntaxContext`, and encode location information for spans with a non-dummy location.
2021-06-11Improve commentJakub Kulik-1/+1
2021-06-11Update Docker to build the deprecated target alongside the new oneJakub Kulik-14/+10
2021-06-11Build crtbengin.o/crtend.o from source code12101111-3/+107
2021-06-11Fix incorrect gating of nonterminals in key-value attributesAaron Hill-0/+30
Fixes #85432 When processing a `#[derive]` or `#[cfg_eval]` attribute, we need to re-parse our attribute target, which requires flattenting all `Nonterminals`. However, this caused us to incorrectly gate on a (flattented) nonterminal in a key-value attribute, which is supposed to be allowed. Since we already perform this gating during the initial parse, we suppress it in `capture_cfg` mode.
2021-06-10Regression test for issue 84297.Felix S. Klock II-0/+9
2021-06-10Change test to use `likely`/`unlikely` instead of `copy`/`copy_overlapping`.Felix S. Klock II-7/+7
Test was added in PR #84404. The intent here is: The `copy`/`copy_overlapping` intrinsics are going through some flip-flopping now of "are they intrinsics or not". We can achieve the same effect that the test intended by using `likely`/`unlikely`.
2021-06-10Remove tests that were also added in PR 79684.Felix S. Klock II-75/+0
2021-06-10Revert clippy's path to the copy intrinsics (part of reverting PR 81238).Felix S. Klock II-2/+2
2021-06-10Revert PRs 81238 and 82967 (which made copy and copy_nonoverlapping intrinsics).Felix S. Klock II-114/+0
This is to address issue 84297.
2021-06-09Auto merge of #86036 - nikic:disable-mutable-noalias, r=Mark-Simulacrumbors-3/+3
[beta] Disable mutable noalias for Rust 1.53 Disable mutable noalias for the upcoming release to give this change more time to bake. I believe that was the consensus, and I wanted to make sure we don't forget :) r? `@Mark-Simulacrum`
2021-06-08Auto merge of #85893 - pnkfelix:beta-backport-85564, r=simulacrumbors-0/+25
[beta] backport of readd capture disjoint fields gate Beta backport of "readd capture disjoint fields gate", PR #85564 Fix issue #85435
2021-06-08Auto merge of #85740 - flip1995:clippy_backport, r=Mark-Simulacrumbors-4/+31
[Beta] Backport ICE fix in Clippy This backports an ICE / stack overflow fix from rust-lang/rust-clippy#7170. cc https://github.com/rust-lang/rust-clippy/issues/7169 cc `@llogiq` `@camsteffen` r? `@Mark-Simulacrum`
2021-06-07Update clang to 12.0.0 on Windows and macOSJosh Triplett-1/+1
Needed for https://github.com/rust-lang/rust/pull/84764 . Tarballs already uploaded to the CI mirror bucket.
2021-06-07CI: Extract LLVM win64 installer directly, using 7zJosh Triplett-15/+6
Currently, we have LLVM tarballs for win64, generated by someone running the installer via wine and tarring up the result. 7z knows how to extract NSIS installers directly, and the result is identical to our tarball, except that it doesn't include `Uninstall.exe` (which we don't care about) and it includes the NSIS plugin directory (which we also don't care about). This simplifies the process of upgrading CI, and allows us to just mirror the upstream release .exe directly. This also improves our supply chain.
2021-06-05Disable mutable noalias for Rust 1.53Nikita Popov-3/+3
2021-06-01no thir-unsafeck in betaFelix S Klock II-2/+0
remove testing via `-Z thir-unsafeck`, since it is not appropriate for beta branch.
2021-06-01Regression test for issue 85435.Felix S. Klock II-0/+27
Apply suggestions from code review: 1. (removing confusing comment from my test, since the comment reflects the bad undesirable behavior that is being fixed here.) 2. test THIR unsafeck too. Co-authored-by: Léo Lanteri Thauvin <leseulartichaut@gmail.com>
2021-05-27Merge commit 'c64b3ffbb53a177e59876a6b7cc5eaff44d93913' into betaflip1995-4/+31
2021-05-22Disallows `#![feature(no_coverage)]` on stable and betaRich Kadel-43/+10
using allow_internal_unstable (as recommended) Fixes: #84836 ```shell $ ./build/x86_64-unknown-linux-gnu/stage1/bin/rustc src/test/run-make-fulldeps/coverage/no_cov_crate.rs error[E0554]: `#![feature]` may not be used on the dev release channel --> src/test/run-make-fulldeps/coverage/no_cov_crate.rs:2:1 | 2 | #![feature(no_coverage)] | ^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error For more information about this error, try `rustc --explain E0554`. ```
2021-05-22Do not ICE on invalid const paramEsteban Küber-0/+35
When encountering a path that can't have generics, do not call `generics_of`. This would happen when writing something like `path::this_is_a_mod<const_val>`. Fix #84831.
2021-05-22Synchronize llvm to master commitMark Rousskov-0/+0
2021-05-22Call `initSidebarItems` in root module of crateJustus K-3/+14
2021-05-06bump stage0 to production 1.52.0Pietro Albini-2/+2
2021-05-06Account for unsatisfied bounds in E0599Esteban Küber-2/+25
Fix #84769, follow up to #84499, #83667.
2021-05-06Deduplicate ParamCandidates with the same value except for bound varsJack Huey-0/+20
2021-05-05Ignore failures of RLS on aarch64 WindowsMark Rousskov-1/+7
2021-05-05Add `yansi-term` as a permitted dependencyJoshua Nelson-0/+2
2021-05-05Update RLS and RustfmtIgor Matuszewski-5/+5
2021-05-05Revert PR 83866Pietro Albini-47/+8
That PR caused multiple test failures when Rust's channel is changed from nightly to anything else. The commit will have to be landed again after the test suite is fixed.
2021-05-04Revert 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-04Remove assert_matches usersMark Rousskov-11/+0
2021-05-04regression test for issue 82465.Felix S. Klock II-0/+16
2021-05-04manually crafted revert of PR #80653, to address issue #82465.Felix S. Klock II-176/+46
(update: placated tidy)
2021-05-04Update fulldeps testMark Rousskov-29/+18
2021-05-04this is beta 1.53.0Pietro Albini-5/+5
2021-04-30Auto merge of #84753 - hyd-dev:update-miri, r=RalfJungbors-7/+9
Update Miri To include rust-lang/miri#1783, hence fixes #84741. r? `@RalfJung`
2021-04-30Update LLVM submoduleAmanieu d'Antras-2/+0
Fixes #84025
2021-04-30Update LLVM for more wasm simd updatesAlex Crichton-0/+0
This fixes the temporary regression introduced in #84339 where the wasm target uses `fpto{s,u}i` intrinsics but the codegen for those intrinsics with the `+nontrapping-fptoint` LLVM feature wasn't very good (aka it didn't use the wasm instruction). The fixes brought in here fix that and also implement the second-to-last simd instruction in LLVM.
2021-04-30Update Mirihyd-dev-7/+9
2021-04-30Auto merge of #84401 - crlf0710:impl_main_by_path, r=petrochenkovbors-25/+141
Implement RFC 1260 with feature_name `imported_main`. This is the second extraction part of #84062 plus additional adjustments. This (mostly) implements RFC 1260. However there's still one test case failure in the extern crate case. Maybe `LocalDefId` doesn't work here? I'm not sure. cc https://github.com/rust-lang/rust/issues/28937 r? `@petrochenkov`
2021-04-29Rollup merge of #84690 - ↵Jack Huey-1/+0
GuillaumeGomez:unneeded-bottom-margin-search-results, r=Nemo157 Remove unneeded bottom margin on search results As you can see, there is still more than enough space at the bottom: ![Screenshot from 2021-04-29 11-26-57](https://user-images.githubusercontent.com/3050060/116530090-ea797800-a8dd-11eb-8eef-2288cf68e0d2.png) r? ``````@Nemo157``````
2021-04-29Rollup merge of #84688 - ↵Jack Huey-7/+0
GuillaumeGomez:remove-unnecessary-css-for-search-results, r=Nemo157 Remove unnecessary CSS rules for search results Discovered that this was useless when working on https://github.com/rust-lang/docs.rs/issues/1382. r? ````````@Nemo157````````
2021-04-29Rollup merge of #84682 - jackh726:transitive_bounds_rebind, r=nikomatsakisJack Huey-0/+23
Don't rebind in `transitive_bounds_that_define_assoc_type` Fixes #83737 Fixes #84604 Also fixes another issue that I don't have a test for, popped up in [zulip](https://rust-lang.zulipchat.com/#narrow/stream/144729-wg-traits/topic/Duplicate.20symbol.20error.20.2384604/near/236570445) r? `````@nikomatsakis`````