Commit graph

125945 commits

Author SHA1 Message Date
bors
18bf6b4f01 Auto merge of #77642 - pietroalbini:stable-next, r=pietroalbini
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-07 07:52:19 +00:00
Pietro Albini
b4c560a7aa
relnotes: remove compat note about linux hanging 2020-10-07 09:44:11 +02:00
Mark Rousskov
2de10f8210
Disable ThinLTO for x86_64-unknown-linux-gnu
Temporarily addresses #76980.
2020-10-07 09:42:32 +02:00
bors
90ed0a896d Auto merge of #77577 - Mark-Simulacrum:stable-next, r=pietroalbini
[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-05 21:50:26 +00:00
Mark Rousskov
274413c1d6 Add note about as yet undiagnosed issues 2020-10-05 15:57:44 -04:00
Mark Rousskov
6602b4652b Switch channel to stable for 1.47 release 2020-10-05 12:13:55 -04:00
Mark Rousskov
9435ba4d77 Instruct lld that our @ files are posix-style, not Windows
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-05 12:13:35 -04:00
Tomasz Miąsko
2d8cf77c3c Add regression test for SimplifyBranchSame miscompilation 2020-10-05 12:13:16 -04:00
Simon Vandel Sillesen
12408170c4 Fix miscompile in SimplifyBranchSame 2020-10-05 12:13:15 -04:00
Mark Rousskov
9eb4039c29 Cherry-pick release notes from master
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-05 12:11:51 -04:00
bors
d6646f6479 Auto merge of #77490 - Mark-Simulacrum:beta-backports, r=Mark-Simulacrum
[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-03 16:29:10 +00:00
Aurélien Deharbe
bf38fa5517 repairing broken error message and rustfix application for the new test
case
2020-10-03 10:38:59 -04:00
Aurélien Deharbe
f3ab317e12 add non-regression test for issue #76597 2020-10-03 10:38:59 -04:00
Aurélien Deharbe
5c29a949b3 replacing sub's that can wrap by saturating_sub's 2020-10-03 10:38:59 -04:00
Pietro Albini
5b3a05a04b ci: switch to environment files to change the environment on GHA
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-03 10:38:59 -04:00
Bastian Kauschke
7dca7cc04a cache types during normalization 2020-10-03 10:38:59 -04:00
Tyler Mandry
b0db534299 Remove redundancy in cache key 2020-10-03 10:38:59 -04:00
Valerii Lashmanov
507dd1d918 Intorduced MiniMap - a tiny small storage optimized map implementation
This makes everything about 1% faster in rustc-perf,
mostly negating performance hit of previous commit.
2020-10-03 10:38:58 -04:00
Valerii Lashmanov
87022d00b2 Better handling for exponential-sized types in misc places
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-03 10:38:58 -04:00
Valerii Lashmanov
7c4c96c095 Only visit types once when walking the type tree
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-03 10:12:00 -04:00
bors
6d3dc317a8 Auto merge of #77456 - Mark-Simulacrum:revert-76605, r=pietroalbini
[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-03 05:15:46 +00:00
Mark Rousskov
2b214e6bb7 Revert "Remove broken clap versions from cargotest"
This reverts commit eb4d6b520b.
2020-10-02 11:43:29 -04:00
Mark Rousskov
e846a863ac Revert "Remove missing_fragment_specifier lint"
This reverts commit 5ba961018c.
2020-10-02 11:43:28 -04:00
Mark Rousskov
ab80426df0 Revert "Promote missing_fragment_specifier to hard error"
This reverts commit 02eae432e7.
2020-10-02 11:43:26 -04:00
Mark Rousskov
bdc9e15b76 Revert "Move macro test to ui/macros"
This reverts commit 84fcd0dc99.
2020-10-02 11:43:23 -04:00
bors
e28d2bd093 Auto merge of #77403 - flip1995:beta, r=pietroalbini
[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-01 20:32:41 +00:00
flip1995
4a9109865c
Merge commit 'd28211ddb6' into beta 2020-10-01 16:48:53 +02:00
flip1995
d28211ddb6
Fix rustup fallout 2020-10-01 16:40:59 +02:00
bors
9f0e6fa94b Auto merge of #77308 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[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-29 00:31:57 +00:00
Mark Rousskov
656fa79bf0 Rename Iterator::get_unchecked -> Iterator::__iterator_get_unchecked
Backport of #77201, manually done because of file renaming.
2020-09-28 16:19:08 -04:00
Ashley Mannix
aac490adcc update tracking issue for const_type_id 2020-09-28 15:20:57 -04:00
Ashley Mannix
bf812bd870 revert const_type_id stabilization
This reverts commit e3856616ee.
2020-09-28 15:20:50 -04:00
Wesley Wiser
db5f6df46b [mir-opt] Disable the ConsideredEqual logic in SimplifyBranchSame opt
The logic is currently broken and we need to disable it to fix a beta
regression (see #76803)
2020-09-28 15:20:20 -04:00
Josh Stone
2e91e4d9c3 Rebase LLVM onto 11.0.0-rc3 2020-09-28 15:17:23 -04:00
bors
755064bef6 Auto merge of #76852 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[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-17 22:30:51 +00:00
Mark Rousskov
557e2bc101 Bump to stable release 2020-09-17 16:22:27 -04:00
Esteban Küber
94dc25b5af Account for async functions when suggesting new named lifetime
Fix #75850.
2020-09-17 16:20:12 -04:00
Aaron Hill
169b83ce16 Account for version number in NtIdent hack
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-17 16:19:40 -04:00
ortem
ed2eb80fff Fix loading pretty-printers in rust-lldb script 2020-09-17 16:18:23 -04:00
MaulingMonkey
02fb8ae0fe Fix HashMap visualizers in Visual Studio (Code)
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-17 16:17:34 -04:00
Lzu Tao
55754204fa Ignore rustc_private items from std docs
Apply suggestions from code review

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-09-17 16:17:00 -04:00
Lzu Tao
cbaf066339 Add ui test for 74672 and 76571
These tests will fall without the next commit.
2020-09-17 16:16:52 -04:00
Takayuki Nakata
730ca457f5
Address items_after_statement 2020-09-10 18:05:04 +02:00
Takayuki Nakata
2972ad3ef6
Refactoring: tests in same_item_push 2020-09-10 18:05:04 +02:00
Takayuki Nakata
14faebe20e
Add some tests to same_item_push
Add tests in which the variable is initialized with a match expression and function call
2020-09-10 18:05:04 +02:00
Takayuki Nakata
b80576fba6
Some refactoring 2020-09-10 18:05:04 +02:00
Takayuki Nakata
0117ea2b01
Refactoring: use inner function 2020-09-10 18:05:04 +02:00
Takayuki Nakata
1778a1ec46
Restrict same_item_push to suppress false positives
It emits a lint when the pushed item is a literal, a constant and an immutable binding that are initialized with those.
2020-09-10 18:05:01 +02:00
bors
aa30bf3442 Auto merge of #76175 - ehuss:update-beta-cargo, r=Mark-Simulacrum
[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-09-10 00:10:49 +00:00
Eric Huss
6922feb874 [beta] Update cargo 2020-08-31 10:58:14 -07:00