summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2020-10-07Auto merge of #77642 - pietroalbini:stable-next, r=pietroalbini 1.47.0bors-3/+1
Rust 1.47.0 stable release, take 2 This PR adds a workaround for https://github.com/rust-lang/rust/issues/76980 to the existing stable 1.47.0 branch. I will invalidate the dev artifacts and issue another pre-release once the PR is merged, to let people test this change. r? `@ghost`
2020-10-07relnotes: remove compat note about linux hangingPietro Albini-2/+0
2020-10-07Disable ThinLTO for x86_64-unknown-linux-gnuMark Rousskov-1/+1
Temporarily addresses #76980.
2020-10-05Auto merge of #77577 - Mark-Simulacrum:stable-next, r=pietroalbinibors-4/+170
[stable] 1.47 release This PR includes backports of: * Fix miscompile in SimplifyBranchSame #77549 * Force posix-style quoting on lld, independent of host platform #77543 Note that both are still beta-nominated/beta-accepted, as they need to be backported to 1.48 as well (future beta branch).
2020-10-05Add note about as yet undiagnosed issuesMark Rousskov-0/+3
2020-10-05Switch channel to stable for 1.47 releaseMark Rousskov-1/+1
2020-10-05Instruct lld that our @ files are posix-style, not WindowsMark Rousskov-0/+6
An upstream LLVM change changed behavior here to respect the host system quoting rules; previously the posix-style format was always used for @files.
2020-10-05Add regression test for SimplifyBranchSame miscompilationTomasz Miąsko-0/+21
2020-10-05Fix miscompile in SimplifyBranchSameSimon Vandel Sillesen-1/+2
2020-10-05Cherry-pick release notes from masterMark Rousskov-2/+137
This also adjusts the release notes to move rustc-docs to internal changes. Note that issue 76980 isn't included as it is unclear what the exact cause there is, so explaining it is difficult.
2020-10-03Auto merge of #77490 - Mark-Simulacrum:beta-backports, r=Mark-Simulacrumbors-94/+410
[beta] backports This backports a number of PRs to beta, not all of which have been approved (yet). * Switch to environment files to change the environment on GHA #77418 * cache types during normalization #76928 * Fixing memory exhaustion when formatting short code suggestion #76598 * Issue 72408 nested closures exponential #72412 r? `@Mark-Simulacrum`
2020-10-03repairing broken error message and rustfix application for the new testAurélien Deharbe-10/+28
case
2020-10-03add non-regression test for issue #76597Aurélien Deharbe-0/+21
2020-10-03replacing sub's that can wrap by saturating_sub'sAurélien Deharbe-3/+3
2020-10-03ci: switch to environment files to change the environment on GHAPietro Albini-2/+2
See GitHub's blog post on why the change was necessary: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
2020-10-03cache types during normalizationBastian Kauschke-68/+83
2020-10-03Remove redundancy in cache keyTyler Mandry-5/+4
2020-10-03Intorduced MiniMap - a tiny small storage optimized map implementationValerii Lashmanov-2/+63
This makes everything about 1% faster in rustc-perf, mostly negating performance hit of previous commit.
2020-10-03Better handling for exponential-sized types in misc placesValerii Lashmanov-41/+89
Mostly to fix ui/issues/issue-37311-type-length-limit/issue-37311.rs. Most parts of the compiler can handle deeply nested types with a lot of duplicates just fine, but some parts still attempt to naively traverse type tree. Before such problems were caught by type length limit check, but now these places will have to be changed to handle duplicated types gracefully.
2020-10-03Only visit types once when walking the type treeValerii Lashmanov-39/+193
This fixes #72408. Nested closures were resulting in exponential compilation time. As a performance optimization this change introduces MiniSet, which is a simple small storage optimized set.
2020-10-03Auto merge of #77456 - Mark-Simulacrum:revert-76605, r=pietroalbinibors-41/+126
[beta] Revert "Promote missing_fragment_specifier to hard error #75516" This reverts "Promote missing_fragment_specifier to hard error #75516" on just beta. I would like us to explore a more principled fix, perhaps along the lines `@petrochenkov` suggested in #76605, on master when we have more time to test it but I don't want us shipping the breakage in the meantime. I don't personally feel comfortable immediately backporting anything more than a revert here. cc `@matklad`
2020-10-02Revert "Remove broken clap versions from cargotest"Mark Rousskov-1/+8
This reverts commit eb4d6b520b3e75c7e93f1ea13f1a45eda0687b4e.
2020-10-02Revert "Remove missing_fragment_specifier lint"Mark Rousskov-0/+20
This reverts commit 5ba961018c482e050af908de60e4f8bd1a00f0ae.
2020-10-02Revert "Promote missing_fragment_specifier to hard error"Mark Rousskov-32/+90
This reverts commit 02eae432e7476a0686633a8c2b7cb1d5aab1bd2c.
2020-10-02Revert "Move macro test to ui/macros"Mark Rousskov-0/+0
This reverts commit 84fcd0dc991e2f5b9035d118d8c016f35ab37d0a.
2020-10-01Auto merge of #77403 - flip1995:beta, r=pietroalbinibors-61/+179
[beta][clippy] backport multiple FP fixes for a warn-by-default lint This backports the PR https://github.com/rust-lang/rust-clippy/pull/6016 fixing multiple FPs: https://github.com/rust-lang/rust-clippy/issues/5902 https://github.com/rust-lang/rust-clippy/issues/5979 https://github.com/rust-lang/rust-clippy/issues/5985 We didn't have any complaints about this lint, since me merged this PR. cc `@ebroto` (sorry I forgot about this, since we talked about the backport 3 weeks ago 😐) r? `@pietroalbini`
2020-10-01Merge commit 'd28211ddb6bec659acd523ef63966a5032a618b7' into betaflip1995-61/+179
2020-10-01Fix rustup falloutflip1995-6/+6
2020-09-29Auto merge of #77308 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-52/+83
[beta] backports This backports the following: * revert const_type_id stabilization #77083 * [mir-opt] Disable the `ConsideredEqual` logic in SimplifyBranchSame opt #76837 * Rename Iterator::get_unchecked #77201 (manually, because of file renaming and other issues on master causing literal cherry-pick to fail) * Rebase LLVM onto 11.0.0-rc3 #77063 (bumping direct to master, see https://github.com/rust-lang/rust/pull/77063#issuecomment-700231036). The last two have not yet been approved by compiler team, but I'm posting this now and going to go ahead and approve as I expect both to get approved and we want testing as much as possible before release in ~2 weeks. r? `@ghost`
2020-09-28Rename Iterator::get_unchecked -> Iterator::__iterator_get_uncheckedMark Rousskov-28/+32
Backport of #77201, manually done because of file renaming.
2020-09-28update tracking issue for const_type_idAshley Mannix-2/+2
2020-09-28revert const_type_id stabilizationAshley Mannix-6/+10
This reverts commit e3856616ee2a894c7811a7017d98fafa7ba84dd8.
2020-09-28[mir-opt] Disable the `ConsideredEqual` logic in SimplifyBranchSame optWesley Wiser-17/+40
The logic is currently broken and we need to disable it to fix a beta regression (see #76803)
2020-09-28Rebase LLVM onto 11.0.0-rc3Josh Stone-1/+1
2020-09-17Auto merge of #76852 - Mark-Simulacrum:beta-next, r=Mark-Simulacrumbors-37/+170
[beta] backports * Ignore rustc_private items from std docs #76571 * Fix HashMap visualizers in Visual Studio (Code) #76389 * Account for version number in NtIdent hack #76331 * Account for async functions when suggesting new named lifetime #75867 * Fix loading pretty-printers in rust-lldb script #76015 This also bumps to the released stable compiler.
2020-09-17Bump to stable releaseMark Rousskov-2/+2
2020-09-17Account for async functions when suggesting new named lifetimeEsteban Küber-12/+39
Fix #75850.
2020-09-17Account for version number in NtIdent hackAaron Hill-10/+56
Issue #74616 tracks a backwards-compatibility hack for certain macros. This has is implemented by hard-coding the filenames and macro names of certain code that we want to continue to compile. However, the initial implementation of the hack was based on the directory structure when building the crate from its repository (e.g. `js-sys/src/lib.rs`). When the crate is build as a dependency, it will include a version number from the clone from the cargo registry (e.g. `js-sys-0.3.17/src/lib.rs`), which would fail the check. This commit modifies the backwards-compatibility hack to check that desired crate name (`js-sys` or `time-macros-impl`) is a prefix of the proper part of the path. See https://github.com/rust-lang/rust/issues/76070#issuecomment-687215646 for more details.
2020-09-17Fix loading pretty-printers in rust-lldb scriptortem-2/+5
2020-09-17Fix HashMap visualizers in Visual Studio (Code)MaulingMonkey-2/+2
CDB doesn't care that you're using static_cast between unrelated types. VS(C) does. These should've been reinterpret_cast or C casts. Cast is from e.g. `u8*` to `tuple<$T1, $T2>*`
2020-09-17Ignore rustc_private items from std docsLzu Tao-9/+20
Apply suggestions from code review Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-09-17Add ui test for 74672 and 76571Lzu Tao-0/+46
These tests will fall without the next commit.
2020-09-10Address `items_after_statement`Takayuki Nakata-17/+17
2020-09-10Refactoring: tests in `same_item_push`Takayuki Nakata-68/+71
2020-09-10Add some tests to `same_item_push`Takayuki Nakata-0/+21
Add tests in which the variable is initialized with a match expression and function call
2020-09-10Some refactoringTakayuki Nakata-7/+10
2020-09-10Refactoring: use inner functionTakayuki Nakata-48/+21
2020-09-10Restrict `same_item_push` to suppress false positivesTakayuki Nakata-36/+154
It emits a lint when the pushed item is a literal, a constant and an immutable binding that are initialized with those.
2020-09-10Auto merge of #76175 - ehuss:update-beta-cargo, r=Mark-Simulacrumbors-0/+0
[beta] Update cargo 1 commits in 51b66125ba97d2906f461b3f4e0408f206299bb6..f3c7e066ad66e05439cf8eab165a2de580b41aaf 2020-08-19 20:22:52 +0000 to 2020-08-28 19:37:58 +0000 - [beta] Fix LTO with doctests. (rust-lang/cargo#8658)
2020-08-31[beta] Update cargoEric Huss-0/+0