Commit graph

121228 commits

Author SHA1 Message Date
bors
c367798cfd Auto merge of #74746 - wesleywiser:stable_backport_73669, r=Mark-Simulacrum
Stable backport of #73613

This is the backport of #73613 to stable.

r? @ghost

cc @Mark-Simulacrum

In addition the tests added in the original PR passing, I've also confirmed that the test case in #74739 works correctly.
2020-07-26 16:09:42 +00:00
Mateusz Mikuła
41895ca93f Use preinstalled MSYS2 2020-07-26 11:30:42 -04:00
Mark Rousskov
32166ab1eb Update release notes 2020-07-25 11:01:44 -04:00
Oliver Scherer
4e1eaf44ff The const propagator cannot trace references.
Thus we avoid propagation of a local the moment we encounter references to it.
2020-07-25 10:55:12 -04:00
bors
14485ee125 Auto merge of #74574 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.45.1 release

See RELEASES.md for details on what this contains.
2020-07-24 07:56:50 +00:00
Kristofer Rye
884ea63115 ci: Replace exec-with-shell wrapper with "plain bash"
Also, promote defaults.run.shell from inside only the primary jobs to
the top level.

The src/ci/exec-with-shell.py wrapper script was formerly used to change
out the shell mid-job by intercepting a CI_OVERRIDE_SHELL environment
variable.  Now, instead, we just set `bash` as the global default across
all jobs, and we also delete the exec-with-shell.py script.

Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
2020-07-23 18:28:17 -04:00
Kristofer Rye
132887ccc2 ci: Stop setting CI_OVERRIDE_SHELL environment variable
This will render the src/ci/exec-with-shell.py script more or less
useless, but we're going to replace that by just using the system bash
instead.

Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
2020-07-23 18:28:06 -04:00
Kristofer Rye
7d0afb1ea2 ci: Set shell: bash as a default, remove duplicates
A follow-up to #74406, this commit merely removes the `shell: bash`
lines where they are explicitly added in favor of setting defaults for
*all* "run" steps.

Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com>
2020-07-23 18:27:15 -04:00
Mark Rousskov
7747315455 Set shell for github actions CI 2020-07-23 16:23:53 -04:00
Mark Rousskov
d01e1093ba delay_span_bug instead of silent ignore 2020-07-23 11:05:04 -04:00
Jakub Adam Wieczorek
174b58287c Fix an ICE on an invalid binding @ ... in a tuple struct pattern 2020-07-23 11:00:16 -04:00
Mark Rousskov
3814819951 Bump cargo
This is not a user-visible change as Cargo's library API is not exposed by Rust,
but this way the version in 1.45.1 will appropriately match with published Cargo
0.46.1.
2020-07-23 10:16:33 -04:00
Marc-Antoine Perennou
452a29cc2e rustbuild: drop tool::should_install
Always install when the build succeeds

Fixes #74431

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2020-07-22 08:36:35 -04:00
Matthew Jasper
0f24c5a338 Use ReEmpty(U0) as the implicit region bound in typeck 2020-07-22 08:36:35 -04:00
Mark Rousskov
3092347184 Update to rustfmt 1.4.17 2020-07-22 08:36:35 -04:00
Mark Rousskov
9e5fb40807 1.45.1 release 2020-07-22 08:36:35 -04:00
bors
5c1f21c3b8 Auto merge of #74297 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.45 release
2020-07-13 16:24:39 +00:00
Mark Rousskov
ab887cfca2 Stable 1.45.0 release 2020-07-13 11:59:02 -04:00
Mark Rousskov
46458817b1 Cherry-pick release notes from master 2020-07-13 11:59:02 -04:00
bors
e99e6422a2 Auto merge of #74219 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] next

Backports of:

* rustdoc: Fix doc aliases with crate filtering #73644
* rustdoc: Rename invalid_codeblock_attribute lint to be plural #74131
* rustc_lexer: Simplify shebang parsing once more #73596
* Perform obligation deduplication to avoid buggy `ExistentialMismatch` #73485
* Reorder order in which MinGW libs are linked to fix recent breakage #73184
* Change how compiler-builtins gets many CGUs #73136
* Fix wasm32 being broken due to a NodeJS version bump #73885
2020-07-13 12:33:32 +00:00
Pietro Albini
9ce2d975b1 ci: fix wasm32 broken due to a NodeJS version bump
Emscripten's SDK recently bumped the version of NodeJS they shipped, but
our Dockerfile for the wasm32 builder hardcoded the version number. This
will cause consistent CI failures once the currently cached image is
rebuilt (either due to a change or due to the cache expiring).

This commit fixes the problem by finding the latest version of NodeJS in
the Emscripten SDK and symlinking it to a "latest" directory, which is
then added to the PATH.
2020-07-10 18:09:38 -04:00
Alex Crichton
25ac6de3b0 Change how compiler-builtins gets many CGUs
This commit intends to fix an accidental regression from #70846. The
goal of #70846 was to build compiler-builtins with a maximal number of
CGUs to ensure that each module in the source corresponds to an object
file. This high degree of control for compiler-builtins is desirable to
ensure that there's at most one exported symbol per CGU, ideally
enabling compiler-builtins to not conflict with the system libgcc as
often.

In #70846, however, only part of the compiler understands that
compiler-builtins is built with many CGUs. The rest of the compiler
thinks it's building with `sess.codegen_units()`. Notably the
calculation of `sess.lto()` consults `sess.codegen_units()`, which when
there's only one CGU it disables ThinLTO. This means that
compiler-builtins is built without ThinLTO, which is quite harmful to
performance! This is the root of the cause from #73135 where intrinsics
were found to not be inlining trivial functions.

The fix applied in this commit is to remove the special-casing of
compiler-builtins in the compiler. Instead the build system is now
responsible for special-casing compiler-builtins. It doesn't know
exactly how many CGUs will be needed but it passes a large number that
is assumed to be much greater than the number of source-level modules
needed. After reading the various locations in the compiler source, this
seemed like the best solution rather than adding more and more special
casing in the compiler for compiler-builtins.

Closes #73135
2020-07-10 10:54:21 -04:00
Mateusz Mikuła
ffebd8ac8a Reoder order in which MinGW libs are linked 2020-07-10 10:53:40 -04:00
Esteban Küber
04c208b165 Perform obligation deduplication to avoid buggy ExistentialMismatch
Fix #59326.
2020-07-10 10:52:48 -04:00
Vadim Petrochenkov
5ceb94699b rustc_lexer: Simplify shebang parsing once more 2020-07-10 10:52:10 -04:00
Oliver Middleton
13da8ab450 rustdoc: Rename invalid_codeblock_attribute lint to be plural 2020-07-10 10:49:54 -04:00
Oliver Middleton
cbde61c572 rustdoc: Fix doc aliases with crate filtering
Fix a crash when searching for an alias contained in the currently selected filter crate.

Also remove alias search results for crates that should be filtered out.

The test suite needed to be fixed to actually take into account the crate filtering and check that there are no results when none are expected.
2020-07-10 10:49:22 -04:00
bors
8196407f01 Auto merge of #73766 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports

This PR backports the following:

* Make novel structural match violations not a `bug` #73446
* linker: Never pass `-no-pie` to non-gnu linkers #73384
* Disable the `SimplifyArmIdentity` pass #73262
* Allow inference regions when relating consts #73225
* Fix link error with #[thread_local] introduced by #71192 #73065
* Ensure stack when building MIR for matches #72941
* Don't create impl candidates when obligation contains errors #73005

r? @ghost
2020-06-27 16:18:59 +00:00
Aaron Hill
8e8d53f71a Beta backport of PR #73005 (obligation error impl candidate) 2020-06-26 17:22:33 -04:00
Simonas Kazlauskas
b6e6c0d1d5 Ensure stack when building MIR for matches
In particular matching on complex types such as strings will cause
deep recursion to happen.

Fixes #72933
2020-06-26 09:38:13 -04:00
Amanieu d'Antras
228ab4709a Don't run test on emscripten which doesn't have threads 2020-06-26 09:35:27 -04:00
Amanieu d'Antras
16e70bb2c5 Add -O compile flag to test 2020-06-26 09:35:27 -04:00
Amanieu d'Antras
7dad6165c8 Fix link error with #[thread_local] introduced by #71192 2020-06-26 09:35:27 -04:00
Tyler Mandry
3375b67059 Allow inference regions when relating consts
Fixes #73050
2020-06-26 09:34:49 -04:00
Wesley Wiser
483608a4d2 Disable the SimplifyArmIdentity pass on beta
This pass is buggy so I'm disabling it to fix a stable-to-beta
regression.

Related to #73223
2020-06-26 09:34:18 -04:00
Vadim Petrochenkov
ee3e7ed539 linker: Never pass -no-pie to non-gnu linkers 2020-06-26 09:33:49 -04:00
Dylan MacKenzie
746120aae5 Add issue number to novel violation warning 2020-06-26 09:33:36 -04:00
Dylan MacKenzie
69c032e6f6 Add regression test for #73431 2020-06-26 09:33:36 -04:00
Dylan MacKenzie
b24aa7c68a Make novel structural match violations a warning 2020-06-26 09:33:36 -04:00
bors
1dc0f6d8ef Auto merge of #73326 - Mark-Simulacrum:beta-next, r=ecstatic-morse,Mark-Simulacrum
[beta] backport

This is a beta backport rollup of the following:
* [beta] Revert heterogeneous SocketAddr PartialEq impls #73318
* Fix emcc failure for wasm32. #73213
* Revert #71956 #73153
* [beta] Update cargo #73141
* Minor: off-by-one error in RELEASES.md #72914
* normalize adt fields during structural match checking #72897
* Revert pr 71840 #72989
* rust-lang/cargo#8361
* e658200 from #72901

r? @ghost
2020-06-15 19:12:38 +00:00
Eric Huss
089d28b944 Enable lld for Cargo tests on Windows. 2020-06-15 13:54:43 -04:00
Mark Rousskov
3986122550 Update cargo to include rust-lang/cargo#8361 2020-06-15 13:53:10 -04:00
Mark Rousskov
ec074536e0 Bump bootstrap to released stable 2020-06-13 16:21:40 -04:00
Felix S. Klock II
4bed0ecb01 further bless tests. 2020-06-13 15:50:30 -04:00
Felix S. Klock II
abdae95338 placate tidy. 2020-06-13 15:50:30 -04:00
Felix S. Klock II
f3d24f93cb Revert "Defer creating drop trees in MIR lowering until leaving that scope"
This reverts commit 611988551f.
2020-06-13 15:50:29 -04:00
Felix S. Klock II
b1e93e5a75 Revert "Reduce the number of drop-flag assignments in unwind paths"
This reverts commit 54aa418a60.
2020-06-13 15:50:29 -04:00
Felix S. Klock II
52f2c6f34d Revert "Add some more comments"
This reverts commit 1a19c1da73.
2020-06-13 15:50:29 -04:00
Felix S. Klock II
c5c1329eee Revert "Bless mir-opt tests"
This reverts commit a030c92341.
2020-06-13 15:50:29 -04:00
Felix S. Klock II
310b80e179 Revert "Address review comments"
This reverts commit b998497bd4.
2020-06-13 15:50:29 -04:00