Commit graph

133169 commits

Author SHA1 Message Date
bors
e1884a8e3c Auto merge of #80450 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum
[stable] 1.49.0 stable release

r? `@Mark-Simulacrum`
2020-12-29 03:01:36 +00:00
Mark Rousskov
84b353a4b2 1.49.0 stable release 2020-12-28 14:21:36 -05:00
bors
72d5f13476 Auto merge of #80423 - RalfJung:beta/weak-no-unsized-raw, r=Mark-Simulacrum
de-stabilize unsized raw ptr methods for Weak

`@Mark-Simulacrum` this is the beta branch version of https://github.com/rust-lang/rust/pull/80422.
2020-12-28 05:39:29 +00:00
bors
136dfc1159 Auto merge of #80417 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports

This backports the following to 1.49:

*  Revert change to trait evaluation order #80132
*  Don't allow `const` to begin a nonterminal #80135
*  Prevent caching normalization results with a cycle #80246

r? `@Mark-Simulacrum`
2020-12-28 02:50:04 +00:00
Ralf Jung
fbf8b853c5 de-stabilize unsized raw ptr methods for Weak 2020-12-28 00:51:30 +01:00
Matthew Jasper
2f925dab08 Prevent caching projections in the case of cycles
When normalizing a projection which results in a cycle, we would
cache the result of `project_type` without the nested obligations
(because they're not needed for inference). This would result in
the nested obligations only being handled once in fulfill, which
would avoid the cycle error.

Fixes #79714, a regresion from #79305 caused by the removal of
`get_paranoid_cache_value_obligation`.
2020-12-27 12:54:14 -05:00
Matthew Jasper
3afcd71675 Make recursion limit fatal in project
This avoid the hang/oom from #79714
2020-12-27 12:26:00 -05:00
Camelid
acc2154a7c Don't allow const to begin a nonterminal
Thanks to Vadim Petrochenkov who [told me what the fix was][z]!

[z]: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/finding.20which.20macro.20rule.20to.20use/near/220240422
2020-12-27 12:26:00 -05:00
Matthew Jasper
cebeda351e Revert change to evaluation order
This change breaks some code and doesn't appear to enable any new code.
2020-12-27 12:25:59 -05:00
bors
b0dc3c6f49 Auto merge of #80210 - wesleywiser:beta_backport, r=Mark-Simulacrum
Revert "Promote missing_fragment_specifier to hard error" #75516

Revert of #75516 per #76605.

r? `@Mark-Simulacrum`

Note: I only reverted the two commits in #75516 which made the lint a hard error. I did not revert the other two commits in the PR as they seemed fine to leave IMO (commits 84fcd0dc99 and eb4d6b520b).
2020-12-22 03:41:00 +00:00
Wesley Wiser
483668b0f6 Add example to lint docs 2020-12-21 13:44:41 -05:00
Wesley Wiser
f2c8a38817 Revert "Promote missing_fragment_specifier to hard error"
This reverts commit 02eae432e7.
2020-12-19 20:50:19 -05:00
Wesley Wiser
4a463d9c61 Revert "Remove missing_fragment_specifier lint"
This reverts commit 5ba961018c.
2020-12-19 20:50:19 -05:00
bors
877c7cbe14 Auto merge of #79903 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports

* Revert #77534 fixing #77713 on beta, principled fix landed on master
* fix soundness issue in `make_contiguous` #79814
* Fix exhaustiveness in case a byte string literal is used at slice type #79072
2020-12-10 20:14:35 +00:00
Bastian Kauschke
527934d15c fix unsoundness in make_contiguous 2020-12-10 10:42:32 -05:00
oli
dfb72140cd Fix exhaustiveness in case a byte string literal is used at slice type 2020-12-10 10:42:16 -05:00
Mark Rousskov
645d478f25 Revert "Prevent forbid from being ignored if overriden at the same level."
This reverts commit afa2a67545.
2020-12-10 10:35:12 -05:00
Mark Rousskov
75a5adf707 Revert "rewrite old test so that its attributes are consistent with what we want in the language."
This reverts commit b4e77d21bc.
2020-12-10 10:19:20 -05:00
bors
19ccb6c3cc Auto merge of #79838 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports

* [beta] always disable copy_file_range to avoid EOVERFLOW errors #79008
* Enforce no-move rule of ReentrantMutex using Pin and fix UB in stdio #77801
* bootstrap: use the same version number for rustc and cargo #79133
* [beta] Revert "Enable ASLR for windows-gnu" #79141
* [beta] revert #78790, vendor libtest for rustc-src #79571
* Mirror centos vault to S3 #79435
*  [beta] Update cargo #79739

This also bumps to non-dev stable compiler.

r? `@ghost`
2020-12-08 23:26:00 +00:00
Eric Huss
b857cb648f [beta] Update cargo 2020-12-08 17:14:58 -05:00
Mark Rousskov
f630fd8c02 Non-dev bootstrap on beta 2020-12-08 17:01:20 -05:00
Mark Rousskov
fe1e664bb1 Mirror centos vault to S3 2020-12-08 17:00:19 -05:00
Eric Huss
4364835366 [beta] revert #78790, vendor libtest for rustc-src 2020-12-08 17:00:05 -05:00
Mateusz Mikuła
a12d2aa3e1 Revert "Enable ASLR for windows-gnu"
This reverts commit 0ad3da0684.
2020-12-08 16:58:28 -05:00
Pietro Albini
d7ff9b0bcc bootstrap: use the same version number for rustc and cargo
Historically the stable tarballs were named after the version number of
the specific tool, instead of the version number of Rust. For example,
both of the following tarballs were part of the same release:

    rustc-1.48.0-x86_64-unknown-linux-gnu.tar.xz
    cargo-0.49.0-x86_64-unknown-linux-gnu.tar.xz

PR #77336 changed the dist code to instead use Rust's version number for
all the tarballs, regardless of the tool they contain:

    rustc-1.48.0-x86_64-unknown-linux-gnu.tar.xz
    cargo-1.48.0-x86_64-unknown-linux-gnu.tar.xz

Because of that there is no need anymore to have a separate `cargo`
field in src/stage0.txt, as the Cargo version will always be the same as
the rustc version. This PR removes the field, simplifying the code and
the maintenance work required while producing releases.
2020-12-08 16:57:17 -05:00
Mara Bos
88c006b1b9 Pin the ReentrantMutexes in sys::io::stdio.
The code before this change misused the ReentrantMutexes, by calling
init() on them and moving them afterwards. Now that ReentrantMutex
requires Pin for init(), this mistake is no longer easy to make.
2020-12-08 16:55:38 -05:00
Mara Bos
4137adeba3 Return a Pin from SyncOnceCell::get_or_init_pin. 2020-12-08 16:55:38 -05:00
Mara Bos
91cb6283d8 Add (internal-only) SyncOnceCell::get_or_init_pin. 2020-12-08 16:55:38 -05:00
Mara Bos
b4c0f99853 Update ReentrantMutex tests to use Pin. 2020-12-08 16:55:38 -05:00
Mara Bos
76567e99dc Use Pin for the 'don't move' requirement of ReentrantMutex. 2020-12-08 16:55:38 -05:00
Mara Bos
5195c149be Remove unnecessary import of crate::marker in std::sys_common::remutex.
It was used for marker::Send, but Send is already in scope.
2020-12-08 16:55:38 -05:00
Mara Bos
ebdd67695b Fix outdated comment about not needing to flush stderr. 2020-12-08 16:55:38 -05:00
The8472
a122d555eb [beta] always disable copy_file_range to avoid EOVERFLOW errors 2020-12-08 16:53:42 -05:00
bors
bd26e4e544 Auto merge of #79386 - ehuss:update-beta-cargo, r=Mark-Simulacrum
[beta] Update cargo

2 commits in 8662ab427a8d6ad8047811cc4d78dbd20dd07699..b9216831aac72cfa8167996e3a94d976461e3fd9
2020-11-12 03:47:53 +0000 to 2020-11-24 16:59:56 +0000
- [beta] backport doc fix for CARGO_PRIMARY_PACKAGE (rust-lang/cargo#8896)
- [beta] backport fix for publishing with optional dependencies. (rust-lang/cargo#8893)
2020-11-24 23:29:05 +00:00
Eric Huss
9563aca448 [beta] Update cargo 2020-11-24 10:00:37 -08:00
bors
21dea46d83 Auto merge of #79162 - pietroalbini:beta-next, r=pietroalbini
Actually prepare beta 1.49.0

This PR sets everything up for beta 1.49.0, and backports the following PRs to it:

* #79107 - build-manifest: strip newline from rustc version
* #78986 - Avoid installing external LLVM dylibs
* #79074 - Install CI llvm into the library directory
* #78364 - Update RELEASES.md for 1.48.0
* #77939 - Ensure that the source code display is working with DOS backline

This is the same as #79132, but actually targeting the right branch.

r? `@ghost`
cc `@rust-lang/release`
2020-11-18 14:36:33 +00:00
Mark Rousskov
7477867b01 Ignore failures of RLS on aarch64 Windows 2020-11-17 16:00:41 -05:00
Mark Rousskov
6142bf6bd9
Update fulldeps test 2020-11-17 16:43:38 +01:00
Guillaume Gomez
d2df22268c
Add test to ensure that no DOS backline (\r\n) doesn't create extra backline in source rendering 2020-11-17 12:42:51 +01:00
Guillaume Gomez
f7886a6277
Ensure that the source code display is working with DOS backline 2020-11-17 12:42:47 +01:00
XAMPPRocky
2f3b6e1320
Update RELEASES.md 2020-11-17 12:40:12 +01:00
XAMPPRocky
53597c7d62
Update RELEASES.md 2020-11-17 12:40:07 +01:00
XAMPPRocky
c571271e56
Update RELEASES.md 2020-11-17 12:40:04 +01:00
XAMPPRocky
70d23b1578
Update RELEASES.md 2020-11-17 12:40:00 +01:00
XAMPPRocky
2317b82eb4
Update RELEASES.md 2020-11-17 12:39:56 +01:00
XAMPPRocky
949043e2e9
Update RELEASES.md 2020-11-17 12:39:52 +01:00
XAMPPRocky
dc8d2eb60b
Update RELEASES.md 2020-11-17 12:39:48 +01:00
XAMPPRocky
51d9591de1
Update RELEASES.md 2020-11-17 12:39:43 +01:00
XAMPPRocky
5921bca28f
Apply suggestions from code review
Co-authored-by: Camelid <camelidcamel@gmail.com>
Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
2020-11-17 12:39:39 +01:00
XAMPPRocky
c321d6a9f8
Apply suggestions from code review
Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-11-17 12:39:35 +01:00