Vadim Petrochenkov
379c255eb9
linker: Factor out more parts of linker_with_args
and add some docs
2020-04-07 01:41:18 +03:00
Vadim Petrochenkov
fd6fa686df
linker: Add more markup and comments to code producing linker arguments
2020-04-07 01:36:59 +03:00
Vadim Petrochenkov
7f42d81ea4
linker: Factor out addition of pre-, post- and late link args
2020-04-07 01:35:09 +03:00
Dylan DPC
b9fe46d45b
Rollup merge of #70859 - tmiasko:move-sanitize-inline-always, r=jonas-schievink
...
Move sanitize-inline-always test to sanitize directory
2020-04-07 00:31:43 +02:00
Dylan DPC
6e412786de
Rollup merge of #70839 - GuillaumeGomez:cleanup-e0506, r=Dylan-DPC
...
clean up E0506 explanation
r? @Dylan-DPC
2020-04-07 00:31:41 +02:00
Dylan DPC
728136c73d
Rollup merge of #70821 - rkuhn:expose_suggestions_InferCtxtExt, r=eddyb
...
expose suggestions::InferCtxtExt for clippy
This is very useful to do good async/await diagnostic reporting, for example for https://github.com/rust-lang/rust-clippy/pull/5423 .
2020-04-07 00:31:39 +02:00
Dylan DPC
7500bcfbb2
Rollup merge of #70690 - GuillaumeGomez:cleanup-e0501, r=Dylan-DPC
...
Clean up E0501 explanation
r? @Dylan-DPC
2020-04-07 00:31:38 +02:00
Dylan DPC
5768385615
Rollup merge of #70612 - Thomasdezeeuw:issue_70436, r=LukasKalbertodt
...
Add io::Write::write_all_vectored
Similar to io::Write::write_all but uses io::Write::write_vectored
instead.
Updates #70436
/cc @cramertj @sfackler
2020-04-07 00:31:36 +02:00
Vadim Petrochenkov
927db7d322
linker: Factor out linking of pre- and post-link objects
2020-04-07 01:28:49 +03:00
Vadim Petrochenkov
032462e06f
linker: Combine argument building into a single function
2020-04-07 01:28:47 +03:00
Vadim Petrochenkov
ce25dabc66
linker: Make argument building interface in trait Linker
richer
...
by redirecting everything to `Command`
2020-04-07 01:24:53 +03:00
Thomas de Zeeuw
5d09f9f051
Put reference to write_vectored in quotes in doc
2020-04-07 00:00:07 +02:00
Linus Färnstrand
68b1af6624
Don't import integer module in libstd
2020-04-06 23:08:46 +02:00
Linus Färnstrand
3e4396b8b5
Use integer assoc consts in libcore
2020-04-06 23:08:12 +02:00
Linus Färnstrand
e4fc04b6df
Use usize::MAX as assoc const in liballoc
2020-04-06 23:07:38 +02:00
Linus Färnstrand
09b5d666a0
Stop importing float module in libtest
2020-04-06 22:45:44 +02:00
Linus Färnstrand
ebcf1e7b73
Stop importing float module in libserialize
2020-04-06 22:45:29 +02:00
Linus Färnstrand
cf1c7edd2d
Use assoc float consts in libcore
2020-04-06 22:44:51 +02:00
Linus Färnstrand
65e10e3436
Use assoc const f32::NAN in liballoc
2020-04-06 22:44:04 +02:00
Linus Färnstrand
01b3293e49
Bump stdarch submodule
2020-04-06 22:16:09 +02:00
Linus Färnstrand
d0a78ea94a
Bump rust-by-example submodule
2020-04-06 22:14:35 +02:00
Linus Färnstrand
e1a36e89db
Bump nomicon submodule
2020-04-06 22:13:31 +02:00
Eduard-Mihai Burtescu
626abc7977
ty: remove {Existential,}Trait{Ref,Predicate}::input_types
.
2020-04-06 21:55:51 +03:00
Eduard-Mihai Burtescu
b7fdc7b619
ty: remove unnecessary Predicate::walk_tys
and collect_regions
.
2020-04-06 21:55:50 +03:00
Eduard-Mihai Burtescu
3410aeddbe
ty: switch Ty::walk
from Ty
to GenericArg
.
2020-04-06 21:55:50 +03:00
Eduard-Mihai Burtescu
26199f0cbc
ty/walk: switch walk_shallow
from Ty
to GenericArg
.
2020-04-06 21:55:50 +03:00
Eduard-Mihai Burtescu
0d4705b009
traits/coherence: stop using Ty::walk_shallow
.
2020-04-06 21:55:43 +03:00
Eduard-Mihai Burtescu
e53c42c0b3
ty/walk: keep track of GenericArg
s on the stack, instead of Ty
s.
2020-04-06 21:50:11 +03:00
bors
6dee5f1126
Auto merge of #70573 - IgorPerikov:issue#70524_detailed_panic_messages, r=LukasKalbertodt
...
Detailed panic messages for Vec functions
pass indexes to insert, remove, drain, and split_off panic messages
closes #70524
2020-04-06 18:14:49 +00:00
Stein Somers
8212b9772e
BTreeMap first/last: add pop methods
2020-04-06 19:56:29 +02:00
Stein Somers
c23ee767d9
BTreeMap first/last: make examples more to the point
2020-04-06 19:03:18 +02:00
Stein Somers
bdbe56ecb8
BTreeMap first/last: simplify implementations
2020-04-06 19:00:43 +02:00
Guillaume Gomez
84c97ee9a0
Clean up E0501 explanation
2020-04-06 18:12:42 +02:00
Pietro Albini
1ce9257ebd
ci: move /var/lib/docker to /mnt on GHA
...
There are some builders that are running out of disk space while
building the Docker images, such as arm-android. This moves and symlinks
/var/lib/docker to the /mnt partition on Linux GHA.
2020-04-06 18:09:08 +02:00
Roland Kuhn
57a6b7bd22
Update src/librustc_trait_selection/traits/error_reporting/suggestions.rs
...
Co-Authored-By: varkor <github@varkor.com>
2020-04-06 17:04:21 +02:00
IgorPerikov
9fc77c0e15
add detailed panic messages for Vec functions
2020-04-06 17:53:56 +03:00
Niko Matsakis
cd9f709a33
add nested regression test
2020-04-06 14:51:00 +00:00
bors
40158901d5
Auto merge of #70737 - Centril:cleanup-lower-item-id, r=estebank
...
cleanup `lower_item_id`
r? @oli-obk
2020-04-06 14:43:52 +00:00
Stein Somers
6ee7e8c978
Remove the Ord bound that was plaguing drain_filter, and superfluous lifetimes
2020-04-06 15:45:19 +02:00
Guillaume Gomez
3a10bdcfb6
clean up E0506 explanation
2020-04-06 14:20:01 +02:00
bors
bd18bc9a4c
Auto merge of #70771 - RalfJung:ctfe-loop, r=oli-obk
...
Miri terminator handling: only do progress sanity check for 'Call' terminator
This will still catch mistakes in bad intrinsic/foreign-item shims, which is the main source of errors here.
Fixes https://github.com/rust-lang/rust/issues/70723
r? @oli-obk
2020-04-06 11:32:33 +00:00
Thomas de Zeeuw
63118d1fd7
Improve io::Write::write_all_vectored docs
...
Also adds some more tests with different length IoSlices.
2020-04-06 11:21:15 +02:00
bors
733f104f13
Auto merge of #70833 - RalfJung:rustc-layout, r=Centril
...
tweak rustc_layout debug output
As suggested by r? @eddyb @Centril
2020-04-06 08:12:30 +00:00
Ralf Jung
83fb0b1e8c
tweak rustc_layout debug output
2020-04-06 09:22:48 +02:00
bors
af89eb5e5b
Auto merge of #70832 - Centril:rollup-ixc09ve, r=Centril
...
Rollup of 5 pull requests
Successful merges:
- #70519 (Tweak output of type params and constraints in the wrong order)
- #70704 (Make panic unwind the default for aarch64-*-windows-msvc targets)
- #70713 (Prefer sysroot from rustc in same directory as rust-gdb)
- #70739 (def_collector, visit_fn: account for no body)
- #70827 (Use smaller span for suggestion restricting lifetime)
Failed merges:
r? @ghost
2020-04-06 02:25:08 +00:00
Mazdak Farrokhzad
3faec69865
Rollup merge of #70827 - estebank:shorten-sugg-span-add-lt, r=ecstatic-morse
...
Use smaller span for suggestion restricting lifetime
2020-04-06 04:24:21 +02:00
Mazdak Farrokhzad
17fa3440d2
Rollup merge of #70739 - Centril:fix-70736, r=petrochenkov
...
def_collector, visit_fn: account for no body
Fixes #70736
r? @petrochenkov
2020-04-06 04:24:20 +02:00
Mazdak Farrokhzad
4911d168d8
Rollup merge of #70713 - jsgf:rust-gdb-rustc, r=Mark-Simulacrum
...
Prefer sysroot from rustc in same directory as rust-gdb
If there isn't a rustc in the same directory, then fall back to searching
the path.
2020-04-06 04:24:18 +02:00
Mazdak Farrokhzad
da87316970
Rollup merge of #70704 - danielframpton:aarch64-windows-panic-unwind-default, r=alexcrichton
...
Make panic unwind the default for aarch64-*-windows-msvc targets
With the llvm fixes from rust-lang/llvm-project#45 (included as a submodule change) we can enable unwinding by default for these targets.
Fixes #65313
There are still a small number of test failures for which we can open individual issues.
r? @alexcrichton
2020-04-06 04:24:16 +02:00
Mazdak Farrokhzad
eea91c308f
Rollup merge of #70519 - estebank:constraints-before-args-spans, r=Centril
...
Tweak output of type params and constraints in the wrong order
r? @Centril @varkor
2020-04-06 04:24:15 +02:00