Commit graph

128748 commits

Author SHA1 Message Date
bors
7eac88abb2 Auto merge of #79096 - pietroalbini:stable-build-manifest-newline, r=Mark-Simulacrum
build-manifest: strip newline from rustc version

While running the release process for Rust 1.48.0 I discovered a bug in `build-manifest`: it's not trimming the newline from `src/version`, and it tries to inspect tarballs called `rustc-1.48.0\n-x86_64-unknown-linux-gnu.tar.xz`. The bug only affects stable releases so this is why we're only seeing it right now.

r? `@Mark-Simulacrum`
We'll need to backport this to beta and nightly too.
2020-11-16 13:59:11 +00:00
Pietro Albini
82a102bdf6
build-manifest: strip newline from rustc version 2020-11-16 14:36:49 +01:00
bors
e619caf2c9 Auto merge of #79091 - pietroalbini:stable-next, r=pietroalbini
Rust 1.48.0 stable release

This PR bumps the 1.48 beta branch to the 1.48 stable branch, and applies these last minute backports:

* #77939 - Ensure that the source code display is working with DOS backline
* #77508 - Fix capitalization in blog post name
* #78559 - Add LLVM upgrades from 7 to 10 to RELEASES.md
* #78364 - Update RELEASES.md for 1.48.0

r? `@ghost`
cc `@rust-lang/release`
2020-11-16 10:15:40 +00:00
Pietro Albini
e82b677700
bump to the stable channel 2020-11-16 10:51:59 +01:00
XAMPPRocky
69652cbf6c
Update RELEASES.md 2020-11-16 10:51:07 +01:00
XAMPPRocky
e1329ebc70
Update RELEASES.md 2020-11-16 10:51:06 +01:00
XAMPPRocky
b38e18fe60
Update RELEASES.md 2020-11-16 10:51:04 +01:00
XAMPPRocky
34830e8898
Update RELEASES.md 2020-11-16 10:51:03 +01:00
XAMPPRocky
d66b0956fe
Update RELEASES.md 2020-11-16 10:51:00 +01:00
XAMPPRocky
da309ab1da
Update RELEASES.md 2020-11-16 10:50:59 +01:00
XAMPPRocky
779696b0c8
Update RELEASES.md 2020-11-16 10:50:58 +01:00
XAMPPRocky
59c9d14802
Update RELEASES.md 2020-11-16 10:50:56 +01:00
XAMPPRocky
17ab04c238
Apply suggestions from code review
Co-authored-by: Camelid <camelidcamel@gmail.com>
Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
2020-11-16 10:50:55 +01:00
XAMPPRocky
1a41a515c4
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-16 10:50:53 +01:00
XAMPPRocky
5e51cb43c6
Update RELEASES.md
Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
2020-11-16 10:50:52 +01:00
XAMPPRocky
69388d5dd9
Update RELEASES.md 2020-11-16 10:50:50 +01:00
Erin Power
66e523481d
Update RELEASES.md for 1.48.0 2020-11-16 10:50:49 +01:00
Mike Hommey
576ff3015a
Add LLVM upgrades from 7 to 10 to RELEASES.md
Fixes #78464
2020-11-16 10:40:35 +01:00
Camelid
fa0791563e
Fix capitalization in blog post name 2020-11-16 10:40:26 +01:00
Guillaume Gomez
096b8b0e45
Add test to ensure that no DOS backline (\r\n) doesn't create extra backline in source rendering 2020-11-16 10:23:51 +01:00
Guillaume Gomez
3ee4b0ea64
Ensure that the source code display is working with DOS backline 2020-11-16 10:23:35 +01:00
bors
8236dc07be Auto merge of #79075 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] next

This backports:

* Avoid installing external LLVM dylibs #78986
* Install CI llvm into the library directory #79074
* Revert "Revert "resolve: Avoid "self-confirming" import resolutions in one more case"" #78784
* Bump Rustfmt and RLS #78775
* Enforce no-move rule of ReentrantMutex using Pin and fix UB in stdio #77801

For RLS/rustfmt compilation to succeed:
* change the order of type arguments on ControlFlow #76614
* Add ControlFlow::is_{break,continue} methods #78200
* Replace run_compiler with RunCompiler builder pattern #77649

As a dependency of #77801:
*  Add Pin::static_ref, static_mut. #77726
2020-11-15 20:36:04 +00:00
Mark Rousskov
0b6785f870 Miri is not required on beta 2020-11-15 14:18:04 -05:00
Darshan Kathiriya
d9beaaf2f0 Replace run_compiler with RunCompiler builder pattern.
RunCompiler::new takes non-optional params, and optional
params can be set using set_*field_name* method.
finally `run` will forward all fields to `run_compiler`.
2020-11-15 11:46:10 -05:00
Mara Bos
e68b265a22 Add missing mut.
Co-authored-by: David Tolnay <dtolnay@gmail.com>
2020-11-15 11:03:16 -05:00
Mara Bos
735b0754b6 Reword safety guarantee of Pin::static_{ref,mut}.
Co-authored-by: Peter Todd <pete@petertodd.org>
2020-11-15 11:03:16 -05:00
Mara Bos
e72afdeb2f Add Pin::static_mut. 2020-11-15 11:03:16 -05:00
Mara Bos
41eb822306 Rename Pin::new_static to Pin::static_ref. 2020-11-15 11:03:16 -05:00
Mara Bos
9edb1ab76d Make Pin::new_static const. 2020-11-15 11:03:16 -05:00
Mara Bos
956238e369 Add Pin::new_static. 2020-11-15 11:03:16 -05:00
Mara Bos
93ba97f97b 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-11-15 10:55:00 -05:00
Mara Bos
72cccf1489 Return a Pin from SyncOnceCell::get_or_init_pin. 2020-11-15 10:55:00 -05:00
Mara Bos
da00a4ffc1 Add (internal-only) SyncOnceCell::get_or_init_pin. 2020-11-15 10:55:00 -05:00
Mara Bos
0ec7a81ecb Update ReentrantMutex tests to use Pin. 2020-11-15 10:55:00 -05:00
Mara Bos
3c30290bec Use Pin for the 'don't move' requirement of ReentrantMutex. 2020-11-15 10:55:00 -05:00
Mara Bos
fae7f01405 Remove unnecessary import of crate::marker in std::sys_common::remutex.
It was used for marker::Send, but Send is already in scope.
2020-11-15 10:54:59 -05:00
Mara Bos
c952c5b29f Fix outdated comment about not needing to flush stderr. 2020-11-15 10:54:59 -05:00
Leonora Tindall
9dd3c4bea5 Don't re-export std::ops::ControlFlow in the compiler. 2020-11-15 10:39:35 -05:00
Leonora Tindall
a4582987cd change the order of type arguments on ControlFlow
This allows ControlFlow<BreakType> which is much more ergonomic for
common iterator combinator use cases.
2020-11-15 10:39:35 -05:00
LeSeulArtichaut
6017379005 Add ControlFlow::is_{break,continue} methods 2020-11-15 10:39:34 -05:00
Alessandro Ghedini
9876548fe5 Bump Rustfmt and RLS
Should hopefully fix #78341 and #78340.
2020-11-15 09:43:00 -05:00
Mark Rousskov
a846cc63ca Revert "Revert "resolve: Avoid "self-confirming" import resolutions in one more case""
This reverts commit b20bce8ce5.

It retains the test added in that commit as a check-pass test, intended to
prevent future (unintentional) regressions.
2020-11-15 09:32:43 -05:00
Mark Rousskov
5e39baa921 Install CI llvm into the library directory 2020-11-15 09:32:42 -05:00
Mark Rousskov
4ee75389df Avoid installing external LLVM dylibs
If the LLVM was externally provided, then we don't currently copy artifacts into
the sysroot. This is not necessarily the right choice (in particular, it will
require the LLVM dylib to be in the linker's load path at runtime), but the
common use case for external LLVMs is distribution provided LLVMs, and in that
case they're usually in the standard search path (e.g., /usr/lib) and copying
them here is going to cause problems as we may end up with the wrong files and
isn't what distributions want.

This behavior may be revisited in the future though.
2020-11-15 09:32:42 -05:00
bors
61bc95ac4c Auto merge of #79008 - the8472:disable-cfr, r=Mark-Simulacrum
[beta] always disable copy_file_range to avoid EOVERFLOW errors

A bigger hammer as alternative to #79007

Pro: will certainly fix the issue
Cons: will disable copy_file_range for everyone

Resolves #78979
2020-11-15 04:50:43 +00:00
The8472
d19e2decab [beta] always disable copy_file_range to avoid EOVERFLOW errors 2020-11-12 23:47:37 +01:00
bors
1219014599 Auto merge of #78845 - the8472:remove-needs-drop, r=Mark-Simulacrum
[beta] try to work around type normalization regression

This just removes the offending lines that trigger #78139. I have doubts that this will actually solve the issue but it's simple enough to try.

This PR needs a crater run for the failing crate.
2020-11-08 04:35:34 +00:00
The8472
f20775a4cb remove needs_drop 2020-11-07 19:57:53 +01:00
bors
437a10f682 Auto merge of #78146 - Mark-Simulacrum:revert-76605, r=petrochenkov
[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`

This matches #77456 for 1.47 but targets 1.48 (current beta) instead.

r? `@petrochenkov`
2020-11-07 06:24:15 +00:00
bors
4f9dc0a317 Auto merge of #78783 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum
[beta] backports

This backports a number of PRs to beta:

* Add delay_span_bug to no longer ICE #78645
* Do not ICE on invalid input #78422
* revert #75443, update mir validator #78410
* Do not try to report on closures to avoid ICE #78268
* Disable "optimization to avoid load of address" in InstCombine #78195
* Disable MatchBranchSimplification #78151
* Do not ICE with TraitPredicates containing [type error] #77930
* Tweak `if let` suggestion to be more liberal with suggestion and to not ICE #77283
* Use different mirror for linux headers in musl-toolchain CI script. #78316
2020-11-07 02:36:38 +00:00