Skip to content

update from origin 2020-06-15 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 258 commits into from
Jun 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
258 commits
Select commit Hold shift + click to select a range
52f1847
resolve: Pass parent scope to the function providing import suggestions
petrochenkov May 30, 2020
21fca7a
resolve: Do not suggest imports from the same module in which we are …
petrochenkov May 30, 2020
29508ce
normalize adt fields during structural match check
lcnr Jun 1, 2020
4725af3
remove assert
lcnr Jun 2, 2020
4548eb8
Clarify the behaviour of Pattern when used with methods like str::con…
poliorcetics Jun 2, 2020
6b1ee67
Ensure stack when building MIR for matches
nagisa Jun 3, 2020
c183c3f
Clean up E0642 explanation
GuillaumeGomez Jun 4, 2020
7f7729d
Don't create impl candidates when obligation contains errors
Aaron1011 Jun 4, 2020
3295c26
Treat selection error as ambiguous when error type is present
Aaron1011 Jun 5, 2020
05b2d3f
std: Enable atomic.fence emission on wasm32
alexcrichton Jun 5, 2020
ae42c91
Fix typo
Aaron1011 Jun 5, 2020
568cc22
Add regression test for const generic ICE in #72819
ayazhafiz Jun 6, 2020
ab7355a
fixup! Add regression test for const generic ICE in #72819
ayazhafiz Jun 6, 2020
74befd9
Fix #[thread_local] statics as asm! sym operands
Amanieu Jun 5, 2020
2650c5f
doc/rustdoc: Fix incorrect external_doc feature flag
Jun 7, 2020
6f6620b
Rename "cyclone" to "apple-a7" per changes in upstream LLVM
trevyn Jun 7, 2020
6f01576
Try_run must only be used if toolstate is populated
Mark-Simulacrum Jun 7, 2020
9d01cd1
Update musl to 1.1.24
tmiasko May 17, 2020
95c4899
Added an example where explicitly dropping a lock is necessary/a good…
poliorcetics Jun 7, 2020
9c8f881
Improved the example to work with mutable data, providing a reason fo…
poliorcetics Jun 7, 2020
fdef1a5
Simply use drop instead of std::mem::drop
poliorcetics Jun 8, 2020
496818c
Add methods to go from a nul-terminated Vec<u8> to a CString, checked…
poliorcetics Jun 8, 2020
7b94fdb
save_analysis: better handle paths
marmeladema Jun 5, 2020
51e1724
save_analysis: better handle functions signature
marmeladema Jun 6, 2020
f82382a
fixup! Add regression test for const generic ICE in #72819
ayazhafiz Jun 9, 2020
2981395
fixup! Add regression test for const generic ICE in #72819
ayazhafiz Jun 9, 2020
0fcea2e
Don't lose empty `where` clause when pretty-printing
Aaron1011 Jun 9, 2020
8826298
Show `SyntaxContext` in formatted `Span` debug output
Aaron1011 Jun 5, 2020
b055552
Remove noisy suggestion of hash_map #72642
Jun 5, 2020
690bb8a
[AVR] Add AVR platform support
shepmaster May 6, 2016
91bff8c
[AVR] Fix debug printing of function pointers
dylanmckay Jun 8, 2019
13edc57
[AVR] Add required references for AVR to the parser test suites
dylanmckay Mar 3, 2020
edc344e
[AVR] Raise and link to a tracking issue for the `avr-interrupt` call…
dylanmckay Mar 3, 2020
e369cf6
[AVR] Re-bless the UI tests
dylanmckay Mar 4, 2020
b4a041c
[AVR] Update the compiletest library to recognize AVR as a 16-bit target
dylanmckay Mar 5, 2020
8ba9cbd
[AVR] Remove AVR-specific logic from libstd
dylanmckay Apr 1, 2020
1f0652f
[AVR] Rename the 'none_base' target spec module to 'freestanding_base'
dylanmckay Apr 1, 2020
0340359
[AVR] Update ABI type classification logic to match the the AVR-Clang…
dylanmckay May 17, 2020
a8640cd
improper_ctypes: add test for #66202
davidtwco Jun 1, 2020
47c26e6
Implement new gdb/lldb pretty-printers
artemmukhin May 14, 2019
3e7aabb
lint: check for unit ret type after normalization
davidtwco Jun 1, 2020
d4d3d7d
lint: transitive FFI-safety for transparent types
davidtwco Jun 1, 2020
5541f68
Handle assembler warnings properly
Amanieu Jun 9, 2020
c99164e
Relate existential associated types with variance Invariant
spastorino May 4, 2020
58023fe
Fix more clippy warnings
matthiaskrgr Jun 9, 2020
73d5cb0
expand: Give reasonable NodeIds to lints associated with macro expans…
petrochenkov Jun 9, 2020
217a745
expand: Give reasonable NodeIds to lints associated with macro defini…
petrochenkov Jun 9, 2020
d60df53
Add tests for modifying lint levels for lints reported at expansion time
petrochenkov Jun 9, 2020
b03164e
Move to unstable, linking the issue
poliorcetics Jun 9, 2020
1312d30
Remove a lot of unecessary/duplicated comments
poliorcetics Jun 9, 2020
c9f2cbf
Automatically prioritize unsoundness issues
LeSeulArtichaut Jun 9, 2020
e237e02
Reoder order in which MinGW libs are linked
mati865 Jun 9, 2020
e0ec3d5
fix URLs, include ARM
nikomatsakis Jun 9, 2020
9015c41
save_analysis: improve pretty printing of enum
marmeladema Jun 9, 2020
5bfa7f0
save_analysis: fix enum reference to point to variant rather than con…
marmeladema Jun 9, 2020
377c550
Remove missed `cfg(bootstrap)`
mati865 Jun 9, 2020
4eda3f7
intra-doc macro resolution should also handle proc macros
Manishearth Jun 9, 2020
e003c3e
Add test for proc macro resolution in intra doc links
Manishearth Jun 9, 2020
a01485c
Fix rustc-dev-guide url
spastorino Jun 10, 2020
fff822f
Migrate to numeric associated consts
tesuji Jun 2, 2020
fdeed85
Update cargo
ehuss Jun 10, 2020
27dcb4a
Avoid collisions between traits and their derive macros
Manishearth Jun 10, 2020
1784655
Don't print bang diagnostics for derives
Manishearth Jun 10, 2020
88ea7e5
Use min_specialization in the remaining rustc crates
matthewjasper Jun 1, 2020
a70fb70
Rollup merge of #72706 - spastorino:add-windows-group, r=nikomatsakis
Dylan-DPC Jun 10, 2020
78d08a2
Rollup merge of #72789 - petrochenkov:impcand, r=davidtwco
Dylan-DPC Jun 10, 2020
fda594e
Rollup merge of #72890 - davidtwco:issue-66202-normalize-and-transpar…
Dylan-DPC Jun 10, 2020
8addb2e
Rollup merge of #72897 - lcnr:structurally-match-normalize, r=pnkfelix
Dylan-DPC Jun 10, 2020
024f025
Rollup merge of #73005 - Aaron1011:fix/error-overflow, r=estebank
Dylan-DPC Jun 10, 2020
e1cd8c4
Rollup merge of #73023 - ayushmishra2005:remove_noisy_suggestion, r=d…
Dylan-DPC Jun 10, 2020
0a77c8c
Rollup merge of #73070 - ayazhafiz:i/72819, r=nikomatsakis
Dylan-DPC Jun 10, 2020
e04e3c8
Rollup merge of #73157 - Aaron1011:where-oh-where-has-my-little-span-…
Dylan-DPC Jun 10, 2020
2b8f1ec
Rollup merge of #73184 - mati865:fix-mingw-libs-order, r=petrochenkov
Dylan-DPC Jun 10, 2020
dc230c0
Clean up E0648 explanation
GuillaumeGomez Jun 10, 2020
50a42fe
Create new error code E0762 for unterminated char literals
GuillaumeGomez Jun 10, 2020
7bd87cf
Add tests for E0762
GuillaumeGomez Jun 10, 2020
5859f6e
Fix doctest template
qm3ster Jun 10, 2020
cd02052
Fix emcc failure for wasm32.
ehuss Jun 10, 2020
34c6b38
Add tests for macro@ and derive@
Manishearth Jun 10, 2020
f507748
x.py: with --json-output, forward cargo's JSON
RalfJung Jun 10, 2020
449e8ea
Auto merge of #73213 - ehuss:fix-emsdk, r=Mark-Simulacrum
bors Jun 10, 2020
c29b3fa
On recursive ADT, provide indirection structured suggestion
estebank May 29, 2020
7cde07e
review comments: only suggest one substitution
estebank May 31, 2020
28946b3
Track span of function in method calls, and use this in #[track_caller]
Aaron1011 Jun 9, 2020
6e4d0b4
Update Clippy for MethodCall changes
Aaron1011 Jun 9, 2020
f69a2a6
Fix pprust-expr-roundtrip
Aaron1011 Jun 10, 2020
bbf497b
Add doc comments
Aaron1011 Jun 10, 2020
e5f3b94
Clippy fixes
Aaron1011 Jun 10, 2020
03552ec
fix rebase
estebank Jun 10, 2020
ec42485
Auto merge of #73206 - Dylan-DPC:rollup-rha9g8q, r=Dylan-DPC
bors Jun 10, 2020
7f3bb39
Add a TryFrom<Vec<u8>> impl that mirror from_vec_with_nul
poliorcetics Jun 10, 2020
9d36fa3
Fix test
Aaron1011 Jun 10, 2020
34bb6d0
Cleanup docs
Amanieu Jun 11, 2020
d794313
Allow inference regions when relating consts
tmandry Jun 11, 2020
e93cb96
Auto merge of #73198 - ehuss:update-cargo, r=ehuss
bors Jun 11, 2020
7dc19b0
Update src/libcore/num/mod.rs
Amanieu Jun 11, 2020
ddacc67
Add a suggestion to use unused asm arguments in comments
Amanieu Jun 11, 2020
3ddf480
Auto merge of #71896 - spastorino:existential-assoc-types-variance, r…
bors Jun 11, 2020
298467e
Rollup merge of #72380 - lcnr:const_context, r=estebank
Dylan-DPC Jun 11, 2020
adc92be
Rollup merge of #72941 - nagisa:ensure-stack-for-match, r=oli-obk
Dylan-DPC Jun 11, 2020
f4661e2
Rollup merge of #72976 - GuillaumeGomez:cleanup-e0642, r=Dylan-DPC
Dylan-DPC Jun 11, 2020
12e5a69
Rollup merge of #73080 - ertos-rs:sean.wilson/devel/external_doc-ref-…
Dylan-DPC Jun 11, 2020
b4af874
Rollup merge of #73155 - marmeladema:save-analysis-various-fixes, r=X…
Dylan-DPC Jun 11, 2020
70c14c2
Rollup merge of #73164 - GuillaumeGomez:add-e0761, r=petrochenkov
Dylan-DPC Jun 11, 2020
2ac1598
Rollup merge of #73172 - matthiaskrgr:cl9ppy, r=Dylan-DPC
Dylan-DPC Jun 11, 2020
6cc757e
Rollup merge of #73181 - LeSeulArtichaut:patch-1, r=spastorino
Dylan-DPC Jun 11, 2020
d9cf7a1
Rollup merge of #73183 - Manishearth:intra-doc-macro, r=GuillaumeGomez
Dylan-DPC Jun 11, 2020
822bb9a
Rollup merge of #73208 - qm3ster:patch-1, r=Amanieu
Dylan-DPC Jun 11, 2020
ba0a8d2
Rollup merge of #73219 - RalfJung:cargo-json, r=Mark-Simulacrum
Dylan-DPC Jun 11, 2020
50c0192
Auto merge of #73235 - Dylan-DPC:rollup-zp8oxhg, r=Dylan-DPC
bors Jun 11, 2020
9da3a7a
Clean up E0666 explanation
GuillaumeGomez Jun 11, 2020
6b95526
Fix the link in the TryFrom impl
poliorcetics Jun 11, 2020
91b6f15
Use preinstalled MSYS2
mati865 Jun 9, 2020
b87e8ea
Check associated opaque types in check_opaque_types
matthewjasper May 10, 2020
d77e861
Make pretty printing `TyKind::Def` do something
matthewjasper May 10, 2020
4e49e67
Stop special casing top level TAIT
matthewjasper May 10, 2020
4201fd2
Remove associated opaque types
matthewjasper May 10, 2020
f97070d
Forbid lifetime elision in let position impl Trait
matthewjasper May 10, 2020
0954669
Add more tests for type alias impl Trait
matthewjasper May 10, 2020
6c04d86
Remove ImplItemKind::OpaqueTy from clippy
matthewjasper May 10, 2020
e243f62
Provide suggestion to convert numeric op LHS rather than unwrapping RHS
ayazhafiz Jun 9, 2020
0c02f8a
fixup! Provide suggestion to convert numeric op LHS rather than unwra…
ayazhafiz Jun 11, 2020
ee0d3c7
Rename `TyKind::Def` to `OpaqueDef`
matthewjasper Jun 7, 2020
1e0832f
Allow all impl trait types to capture bound lifetimes
matthewjasper Jun 7, 2020
f975ece
Document some opaque types code
matthewjasper Jun 7, 2020
8b10d42
Fix NLL test
matthewjasper Jun 11, 2020
f23f6ac
Rollup merge of #72180 - euclio:rustdoc-test-extra-space, r=Dylan-DPC
Dylan-DPC Jun 11, 2020
80fce36
Rollup merge of #73012 - Aaron1011:feature/span-debug-ctxt, r=matthew…
Dylan-DPC Jun 11, 2020
8d62099
Rollup merge of #73097 - Mark-Simulacrum:clippy-fail, r=oli-obk
Dylan-DPC Jun 11, 2020
b341115
Rollup merge of #73169 - Amanieu:asm-warnings, r=petrochenkov
Dylan-DPC Jun 11, 2020
84b9145
Rollup merge of #73182 - Aaron1011:feature/call-fn-span, r=matthewjasper
Dylan-DPC Jun 11, 2020
6b418b3
Rollup merge of #73207 - GuillaumeGomez:cleanup-e0648, r=Dylan-DPC
Dylan-DPC Jun 11, 2020
8650df5
Rollup merge of #73230 - Amanieu:asm-unused2, r=petrochenkov
Dylan-DPC Jun 11, 2020
3a8f6c0
Add various Zulip notifications for prioritization
LeSeulArtichaut Jun 11, 2020
68b4c03
Add long error explanation for E0724
Jun 9, 2020
a37c32e
Auto merge of #73246 - Dylan-DPC:rollup-xnm531f, r=Dylan-DPC
bors Jun 11, 2020
1d8da94
Add comment about LocalDefId -> DefId
jyn514 Jun 11, 2020
754da88
Make `fn_arg_names` return `Ident` instead of symbol
Aaron1011 Jun 11, 2020
2c11c35
Explain move errors that occur due to method calls involving `self`
Aaron1011 Jun 11, 2020
2e42476
Rollup merge of #73033 - Amanieu:asm-tls, r=oli-obk
Dylan-DPC Jun 11, 2020
3b41e54
Rollup merge of #73036 - alexcrichton:update-wasm-fence, r=Mark-Simul…
Dylan-DPC Jun 11, 2020
6baf867
Rollup merge of #73163 - ayushmishra2005:61137-add-long-error-code-e0…
Dylan-DPC Jun 11, 2020
838d25b
Rollup merge of #73187 - mati865:bootstrap-cleanup, r=Mark-Simulacrum
Dylan-DPC Jun 11, 2020
7bdf7d0
Rollup merge of #73195 - ayazhafiz:i/73145, r=estebank
Dylan-DPC Jun 11, 2020
ce99f37
Rollup merge of #73247 - LeSeulArtichaut:patch-1, r=spastorino
Dylan-DPC Jun 11, 2020
85a48d0
Rollup merge of #73254 - jyn514:local-def-id-comment, r=lcnr
Dylan-DPC Jun 11, 2020
14027f3
Auto merge of #73259 - Dylan-DPC:rollup-m6nw1n0, r=Dylan-DPC
bors Jun 11, 2020
5902b2f
Use `fn_span` to point to the actual method call
Aaron1011 Jun 11, 2020
4646e2d
Run fmt
Aaron1011 Jun 12, 2020
57b54c4
Use the built cargo for cargotest.
ehuss Jun 12, 2020
e91bf6c
Auto merge of #69478 - avr-rust:avr-support-upstream, r=jonas-schievink
bors Jun 12, 2020
826ea22
Update cargo
ehuss Jun 12, 2020
5949391
Auto merge of #73266 - ehuss:update-cargo, r=ehuss
bors Jun 12, 2020
871513d
make miri memory TyCtxtAt a TyCtxt
RalfJung Jun 1, 2020
416b010
x.py: do not build Miri by default
RalfJung Jun 11, 2020
dc6ffae
make miri InterpCx TyCtxtAt a TyCtxt, and separately remember the roo…
RalfJung Jun 1, 2020
0ac6fd0
fix const_prop spans and re-bless tests
RalfJung Jun 1, 2020
32b01c7
avoid computing cur_span all the time
RalfJung Jun 11, 2020
cd137ee
Fix Zulip pings
LeSeulArtichaut Jun 12, 2020
c06799e
Rollup merge of #72906 - lzutao:migrate-numeric-assoc-consts, r=dtolnay
Dylan-DPC Jun 12, 2020
657a41f
Rollup merge of #73178 - petrochenkov:explint, r=varkor
Dylan-DPC Jun 12, 2020
6f9d453
Rollup merge of #73225 - tmandry:issue-73050, r=oli-obk
Dylan-DPC Jun 12, 2020
b4cb12f
Rollup merge of #73236 - GuillaumeGomez:cleanup-e0666, r=Dylan-DPC
Dylan-DPC Jun 12, 2020
77ede48
Rollup merge of #73273 - LeSeulArtichaut:patch-1, r=Dylan-DPC
Dylan-DPC Jun 12, 2020
b4bd180
fix caller_location intrinsic for Miri
RalfJung Jun 12, 2020
f160583
Disable the `SimplifyArmIdentity` pass on beta
wesleywiser Jun 12, 2020
7c78a5f
Auto merge of #73276 - Dylan-DPC:rollup-hfd81qw, r=Dylan-DPC
bors Jun 12, 2020
bd4bd59
Helper method for whether type has structural equality
ecstatic-morse May 13, 2020
1dd4561
Use "reflexive equality" in docs
ecstatic-morse Jun 12, 2020
2801761
Make `type_marked_structural` private
ecstatic-morse Jun 12, 2020
b126f32
Fix links when pinging notification groups
LeSeulArtichaut Jun 12, 2020
f4fbb93
Auto merge of #73262 - wesleywiser:simplifyarmidentity_beta_regressio…
bors Jun 12, 2020
c0aef6d
Remove vestigial CI job msvc-aux.
ehuss Jun 12, 2020
1fb612b
Auto merge of #73277 - RalfJung:miri-caller-location, r=oli-obk
bors Jun 13, 2020
c755292
Prefer the associated consts for pattern matching error
tesuji Jun 11, 2020
8b20928
Stabilize Option::zip
tesuji Jun 13, 2020
3ab4b38
Adjusted some doctests in libcore to use `should_panic`.
Jun 13, 2020
c45231c
Revert heterogeneous SocketAddr PartialEq impls
dtolnay Jun 13, 2020
249a46f
pretty/asm.rs should only be tested for x86_64 and not AArch64
yerke Jun 13, 2020
6049650
avoid computing precise span for const_eval query
RalfJung Jun 13, 2020
c6512fd
run const_eval_raw with root_span
RalfJung Jun 13, 2020
5a841b9
Add/update comments about MinGW late_link_args
mati865 Jun 11, 2020
2cc2672
Rollup merge of #72932 - poliorcetics:pattern-contains-behaviour, r=h…
Dylan-DPC Jun 13, 2020
6ad8cbd
Rollup merge of #73066 - ecstatic-morse:query-structural-eq2, r=pnkfelix
Dylan-DPC Jun 13, 2020
f738423
Rollup merge of #73194 - lzutao:INT-patterns, r=dtolnay
Dylan-DPC Jun 13, 2020
61a59a5
Rollup merge of #73241 - mati865:mingw-libs-order-comment, r=petroche…
Dylan-DPC Jun 13, 2020
6a42f7d
Rollup merge of #73267 - ehuss:cargotest-this-cargo, r=Mark-Simulacrum
Dylan-DPC Jun 13, 2020
0bbc651
Rollup merge of #73290 - LeSeulArtichaut:patch-1, r=Dylan-DPC
Dylan-DPC Jun 13, 2020
a879f9c
Rollup merge of #73302 - JakobDegen:should-panic-documentation, r=Mar…
Dylan-DPC Jun 13, 2020
8d97ccf
Rollup merge of #73308 - yerke:fix-pretty-asm-rs-test-for-aarch64, r=…
Dylan-DPC Jun 13, 2020
06e4768
Auto merge of #73316 - Dylan-DPC:rollup-zgouwou, r=Dylan-DPC
bors Jun 13, 2020
f747073
Apply suggestions from code review
poliorcetics Jun 13, 2020
34b3ff0
Clarify the scope-related explanation
poliorcetics Jun 13, 2020
c010e71
Rewrap comments in Mutex example
dtolnay Jun 13, 2020
204c236
Add test for comparing SocketAddr with inferred right-hand side
dtolnay Jun 13, 2020
cecfa43
Move `check_op` logic to `ops` module
ecstatic-morse May 1, 2020
d73674e
Make `Qualifs` getters public
ecstatic-morse May 1, 2020
a77f046
Add feature gate for precise live drop checking
ecstatic-morse Jun 11, 2020
f5370fa
Add `CheckLiveDrops` pass
ecstatic-morse May 3, 2020
a43e486
Add MIR phase and query for drop elaboration
ecstatic-morse May 3, 2020
21ddf4d
Ensure that `drop_elaboration_and_check_consts` runs for all const items
ecstatic-morse May 3, 2020
9e2ee32
Update incorrect error code docs
ecstatic-morse May 3, 2020
2dcf7db
Add tests for `const_precise_live_drops`
ecstatic-morse Jun 11, 2020
71d41d9
add TcpListener support for HermitCore
stlankes Jun 13, 2020
c99116a
remove unused function
stlankes Jun 13, 2020
fd86a84
use latest interface to HermitCore
stlankes Jun 13, 2020
d82dd43
Group Pattern::strip_* method together
tesuji Jun 14, 2020
d3d3a14
Auto merge of #73188 - mati865:use-preinstalled-msys2, r=pietroalbini
bors Jun 14, 2020
10326d8
Auto merge of #73232 - RalfJung:miri-no-default, r=Mark-Simulacrum
bors Jun 14, 2020
4fb54ed
Auto merge of #73089 - tmiasko:musl-1.1.24, r=kennytm
bors Jun 14, 2020
c7ad3ad
_match.rs: fix module doc comment
jonas-schievink Jun 14, 2020
2210abe
keep root_span and tcx together
RalfJung Jun 14, 2020
5a846d7
Fix iterator copied() documentation example code
schteve Jun 14, 2020
5f4eb27
Removing the TryFrom impl
poliorcetics Jun 14, 2020
79e08bb
structural_match: non-structural-match ty closures
davidtwco Jun 14, 2020
8361ee5
Update E0446.md
gabenodarse Jun 14, 2020
685f066
Add a new error type for the new method
poliorcetics Jun 14, 2020
47cc5cc
Update to use the new error type and correctly compile the doc tests
poliorcetics Jun 14, 2020
d221ffc
simplify conversion to IpAddr::V6
stlankes Jun 14, 2020
ce6d3a7
Auto merge of #72080 - matthewjasper:uniform-impl-trait, r=nikomatsakis
bors Jun 15, 2020
9d596b5
changes to pass the format check
stlankes Jun 15, 2020
810ba39
remove obsolete line
stlankes Jun 15, 2020
aa53a03
Revert "changes to pass the format check"
stlankes Jun 15, 2020
9c9f21f
Revert "simplify conversion to IpAddr::V6"
stlankes Jun 15, 2020
6c983a7
use Ipv6Addr::from to build the IPv6 address
stlankes Jun 15, 2020
a8e3746
add comment about the usage of Arc
stlankes Jun 15, 2020
5c61a8d
Rollup merge of #71824 - ecstatic-morse:const-check-post-drop-elab, r…
RalfJung Jun 15, 2020
372cb9b
Rollup merge of #72389 - Aaron1011:feature/move-fn-self-msg, r=nikoma…
RalfJung Jun 15, 2020
3d41252
Rollup merge of #72556 - matthew-mcallister:trait-alias-inherent-impl…
RalfJung Jun 15, 2020
e6510ba
Rollup merge of #72584 - CAD97:stabilize-58957, r=dtolnay
RalfJung Jun 15, 2020
5193c5d
Rollup merge of #72598 - Aaron1011:feature/fnmut-capture-span, r=niko…
RalfJung Jun 15, 2020
ec0cb57
Rollup merge of #73336 - lzutao:pattern-group, r=sfackler
RalfJung Jun 15, 2020
35cfde1
Rollup merge of #73341 - jonas-schievink:matchdoc, r=davidtwco
RalfJung Jun 15, 2020
1f3e4e6
Rollup merge of #73342 - schteve:master, r=jonas-schievink
RalfJung Jun 15, 2020
192e9bd
Rollup merge of #73351 - gnodarse:patch-1, r=ecstatic-morse
RalfJung Jun 15, 2020
bca9e90
Rollup merge of #73353 - davidtwco:issue-73003-non-structural-match-t…
RalfJung Jun 15, 2020
76f1581
remove obsolete , to pass the format check
stlankes Jun 15, 2020
d4ecf31
Auto merge of #73367 - RalfJung:rollup-4ewvk9b, r=RalfJung
bors Jun 15, 2020
eef9356
Rollup merge of #72707 - matthewjasper:rustc_min_spec, r=oli-obk
RalfJung Jun 15, 2020
d97e8ca
Rollup merge of #72740 - estebank:recursive-indirection, r=matthewjasper
RalfJung Jun 15, 2020
f9c8a67
Rollup merge of #72879 - RalfJung:miri-tctx-at, r=oli-obk
RalfJung Jun 15, 2020
89eb74d
Rollup merge of #72938 - lzutao:stabilize_option_zip, r=dtolnay
RalfJung Jun 15, 2020
3440957
Rollup merge of #73086 - trevyn:apple-a7, r=nikic
RalfJung Jun 15, 2020
7c8b941
Rollup merge of #73104 - poliorcetics:explicit-mutex-drop-example, r=…
RalfJung Jun 15, 2020
ec6fe42
Rollup merge of #73139 - poliorcetics:cstring-from-vec-with-nul, r=dt…
RalfJung Jun 15, 2020
fb75d4a
Rollup merge of #73296 - ehuss:remove-msvc-aux, r=Mark-Simulacrum
RalfJung Jun 15, 2020
202499f
Rollup merge of #73304 - dtolnay:socketeq, r=Mark-Simulacrum
RalfJung Jun 15, 2020
54bd077
Rollup merge of #73331 - hermitcore:listen, r=kennytm
RalfJung Jun 15, 2020
ff4a253
Auto merge of #73369 - RalfJung:rollup-hl8g9zf, r=RalfJung
bors Jun 15, 2020
f315c35
Auto merge of #72357 - ortem:new-dbg-pretty-printers, r=pnkfelix
bors Jun 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 0 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ jobs:
- name: install MSYS2
run: src/ci/scripts/install-msys2.sh
if: success() && !env.SKIP_JOB
- name: install MSYS2 packages
run: src/ci/scripts/install-msys2-packages.sh
if: success() && !env.SKIP_JOB
- name: install MinGW
run: src/ci/scripts/install-mingw.sh
if: success() && !env.SKIP_JOB
Expand Down Expand Up @@ -212,9 +209,6 @@ jobs:
- name: install MSYS2
run: src/ci/scripts/install-msys2.sh
if: success() && !env.SKIP_JOB
- name: install MSYS2 packages
run: src/ci/scripts/install-msys2-packages.sh
if: success() && !env.SKIP_JOB
- name: install MinGW
run: src/ci/scripts/install-mingw.sh
if: success() && !env.SKIP_JOB
Expand Down Expand Up @@ -434,11 +428,6 @@ jobs:
NO_DEBUG_ASSERTIONS: 1
NO_LLVM_ASSERTIONS: 1
os: windows-latest-xl
- name: x86_64-msvc-aux
env:
RUST_CHECK_TARGET: check-aux EXCLUDE_CARGO=1
RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc"
os: windows-latest-xl
- name: x86_64-msvc-cargo
env:
SCRIPT: python x.py test src/tools/cargotest src/tools/cargo
Expand Down Expand Up @@ -564,9 +553,6 @@ jobs:
- name: install MSYS2
run: src/ci/scripts/install-msys2.sh
if: success() && !env.SKIP_JOB
- name: install MSYS2 packages
run: src/ci/scripts/install-msys2-packages.sh
if: success() && !env.SKIP_JOB
- name: install MinGW
run: src/ci/scripts/install-mingw.sh
if: success() && !env.SKIP_JOB
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ checksum = "716960a18f978640f25101b5cbf1c6f6b0d3192fab36a2d98ca96f0ecbe41010"

[[package]]
name = "cargo"
version = "0.46.0"
version = "0.47.0"
dependencies = [
"anyhow",
"atty",
Expand Down Expand Up @@ -1434,9 +1434,9 @@ dependencies = [

[[package]]
name = "hermit-abi"
version = "0.1.13"
version = "0.1.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91780f809e750b0a89f5544be56617ff6b1227ee485bcb06ebe10cdf89bd3b71"
checksum = "b9586eedd4ce6b3c498bc3b4dd92fc9f11166aa908a914071953768066c67909"
dependencies = [
"compiler_builtins",
"libc",
Expand Down Expand Up @@ -1848,9 +1848,9 @@ dependencies = [

[[package]]
name = "libgit2-sys"
version = "0.12.5+1.0.0"
version = "0.12.7+1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3eadeec65514971355bf7134967a543f71372f35b53ac6c7143e7bd157f07535"
checksum = "bcd07968649bcb7b9351ecfde53ca4d27673cccfdf57c84255ec18710f3153e0"
dependencies = [
"cc",
"libc",
Expand Down
2 changes: 1 addition & 1 deletion config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
# the same format as above, but since these targets are experimental, they are
# not built by default and the experimental Rust compilation targets that depend
# on them will not work unless the user opts in to building them.
#experimental-targets = ""
#experimental-targets = "AVR"

# Cap the number of parallel linker invocations when compiling LLVM.
# This can be useful when building LLVM with debug info, which significantly
Expand Down
3 changes: 2 additions & 1 deletion src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ pub trait Step: 'static + Clone + Debug + PartialEq + Eq + Hash {
/// it's been assembled.
type Output: Clone;

/// Whether this step is run by default as part of its respective phase.
/// `true` here can still be overwritten by `should_run` calling `default_condition`.
const DEFAULT: bool = false;

/// If true, then this rule should be skipped if --target was specified, but --host was not
Expand Down Expand Up @@ -371,7 +373,6 @@ impl<'a> Builder<'a> {
test::UiFullDeps,
test::Rustdoc,
test::Pretty,
test::RunPassValgrindPretty,
test::Crate,
test::CrateLibrustc,
test::CrateRustdoc,
Expand Down
8 changes: 7 additions & 1 deletion src/bootstrap/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,13 @@ pub fn stream_cargo(
for line in stdout.lines() {
let line = t!(line);
match serde_json::from_str::<CargoMessage<'_>>(&line) {
Ok(msg) => cb(msg),
Ok(msg) => {
if builder.config.json_output {
// Forward JSON to stdout.
println!("{}", line);
}
cb(msg)
}
// If this was informational, just print it out and continue
Err(_) => println!("{}", line),
}
Expand Down
8 changes: 5 additions & 3 deletions src/bootstrap/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,19 +619,21 @@ impl Step for DebuggerScripts {
cp_debugger_script("natvis/libcore.natvis");
cp_debugger_script("natvis/libstd.natvis");
} else {
cp_debugger_script("debugger_pretty_printers_common.py");
cp_debugger_script("rust_types.py");

// gdb debugger scripts
builder.install(&builder.src.join("src/etc/rust-gdb"), &sysroot.join("bin"), 0o755);
builder.install(&builder.src.join("src/etc/rust-gdbgui"), &sysroot.join("bin"), 0o755);

cp_debugger_script("gdb_load_rust_pretty_printers.py");
cp_debugger_script("gdb_rust_pretty_printing.py");
cp_debugger_script("gdb_lookup.py");
cp_debugger_script("gdb_providers.py");

// lldb debugger scripts
builder.install(&builder.src.join("src/etc/rust-lldb"), &sysroot.join("bin"), 0o755);

cp_debugger_script("lldb_rust_formatters.py");
cp_debugger_script("lldb_lookup.py");
cp_debugger_script("lldb_providers.py");
}
}
}
Expand Down
10 changes: 2 additions & 8 deletions src/bootstrap/mk/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ Q := @
BOOTSTRAP_ARGS :=
endif

ifdef EXCLUDE_CARGO
AUX_ARGS :=
else
AUX_ARGS := src/tools/cargo src/tools/cargotest
endif

BOOTSTRAP := $(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap.py

all:
Expand Down Expand Up @@ -48,8 +42,8 @@ check:
$(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS)
check-aux:
$(Q)$(BOOTSTRAP) test \
src/test/run-pass-valgrind/pretty \
$(AUX_ARGS) \
src/tools/cargo \
src/tools/cargotest \
$(BOOTSTRAP_ARGS)
check-bootstrap:
$(Q)$(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap_test.py
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl Step for Llvm {

let llvm_exp_targets = match builder.config.llvm_experimental_targets {
Some(ref s) => s,
None => "",
None => "AVR",
};

let assertions = if builder.config.llvm_assertions { "ON" } else { "OFF" };
Expand Down
12 changes: 3 additions & 9 deletions src/bootstrap/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ impl Step for Cargotest {
fn run(self, builder: &Builder<'_>) {
let compiler = builder.compiler(self.stage, self.host);
builder.ensure(compile::Rustc { compiler, target: compiler.host });
let cargo = builder.ensure(tool::Cargo { compiler, target: compiler.host });

// Note that this is a short, cryptic, and not scoped directory name. This
// is currently to minimize the length of path on Windows where we otherwise
Expand All @@ -165,7 +166,7 @@ impl Step for Cargotest {
let mut cmd = builder.tool_cmd(Tool::CargoTest);
try_run(
builder,
cmd.arg(&builder.initial_cargo)
cmd.arg(&cargo)
.arg(&out_dir)
.env("RUSTC", builder.rustc(compiler))
.env("RUSTDOC", builder.rustdoc(compiler)),
Expand Down Expand Up @@ -553,7 +554,7 @@ impl Step for Clippy {

builder.add_rustc_lib_path(compiler, &mut cargo);

try_run(builder, &mut cargo.into());
builder.run(&mut cargo.into());
}
}

Expand Down Expand Up @@ -929,13 +930,6 @@ host_test!(UiFullDeps { path: "src/test/ui-fulldeps", mode: "ui", suite: "ui-ful
host_test!(Rustdoc { path: "src/test/rustdoc", mode: "rustdoc", suite: "rustdoc" });

host_test!(Pretty { path: "src/test/pretty", mode: "pretty", suite: "pretty" });
test!(RunPassValgrindPretty {
path: "src/test/run-pass-valgrind/pretty",
mode: "pretty",
suite: "run-pass-valgrind",
default: false,
host: true
});

default_test!(RunMake { path: "src/test/run-make", mode: "run-make", suite: "run-make" });

Expand Down
30 changes: 18 additions & 12 deletions src/bootstrap/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ macro_rules! tool_extended {
$toolstate:ident,
$path:expr,
$tool_name:expr,
stable = $stable:expr,
$extra_deps:block;)+) => {
$(
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
Expand All @@ -606,17 +607,22 @@ macro_rules! tool_extended {

impl Step for $name {
type Output = Option<PathBuf>;
const DEFAULT: bool = true;
const DEFAULT: bool = true; // Overwritten below
const ONLY_HOSTS: bool = true;

fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
let builder = run.builder;
run.path($path).default_condition(
builder.config.extended
&& builder.config.tools.as_ref().map_or(true, |tools| {
tools.iter().any(|tool| match tool.as_ref() {
"clippy" => $tool_name == "clippy-driver",
x => $tool_name == x,
&& builder.config.tools.as_ref().map_or(
// By default, on nightly/dev enable all tools, else only
// build stable tools.
$stable || builder.build.unstable_features(),
// If `tools` is set, search list for this tool.
|tools| {
tools.iter().any(|tool| match tool.as_ref() {
"clippy" => $tool_name == "clippy-driver",
x => $tool_name == x,
})
}),
)
Expand Down Expand Up @@ -652,20 +658,20 @@ macro_rules! tool_extended {
// Note: tools need to be also added to `Builder::get_step_descriptions` in `build.rs`
// to make `./x.py build <tool>` work.
tool_extended!((self, builder),
Cargofmt, rustfmt, "src/tools/rustfmt", "cargo-fmt", {};
CargoClippy, clippy, "src/tools/clippy", "cargo-clippy", {};
Clippy, clippy, "src/tools/clippy", "clippy-driver", {};
Miri, miri, "src/tools/miri", "miri", {};
CargoMiri, miri, "src/tools/miri/cargo-miri", "cargo-miri", {};
Rls, rls, "src/tools/rls", "rls", {
Cargofmt, rustfmt, "src/tools/rustfmt", "cargo-fmt", stable=true, {};
CargoClippy, clippy, "src/tools/clippy", "cargo-clippy", stable=true, {};
Clippy, clippy, "src/tools/clippy", "clippy-driver", stable=true, {};
Miri, miri, "src/tools/miri", "miri", stable=false, {};
CargoMiri, miri, "src/tools/miri/cargo-miri", "cargo-miri", stable=false, {};
Rls, rls, "src/tools/rls", "rls", stable=true, {
builder.ensure(Clippy {
compiler: self.compiler,
target: self.target,
extra_features: Vec::new(),
});
self.extra_features.push("clippy".to_owned());
};
Rustfmt, rustfmt, "src/tools/rustfmt", "rustfmt", {};
Rustfmt, rustfmt, "src/tools/rustfmt", "rustfmt", stable=true, {};
);

impl<'a> Builder<'a> {
Expand Down
4 changes: 0 additions & 4 deletions src/ci/azure-pipelines/auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ jobs:
# FIXME(#59637)
NO_DEBUG_ASSERTIONS: 1
NO_LLVM_ASSERTIONS: 1
# MSVC aux tests
x86_64-msvc-aux:
RUST_CHECK_TARGET: check-aux EXCLUDE_CARGO=1
INITIAL_RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
x86_64-msvc-cargo:
SCRIPT: python x.py test src/tools/cargotest src/tools/cargo
INITIAL_RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-lld
Expand Down
4 changes: 0 additions & 4 deletions src/ci/azure-pipelines/steps/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ steps:
displayName: Install msys2
condition: and(succeeded(), not(variables.SKIP_JOB))

- bash: src/ci/scripts/install-msys2-packages.sh
displayName: Install msys2 packages
condition: and(succeeded(), not(variables.SKIP_JOB))

- bash: src/ci/scripts/install-mingw.sh
displayName: Install MinGW
condition: and(succeeded(), not(variables.SKIP_JOB))
Expand Down
10 changes: 6 additions & 4 deletions src/ci/docker/scripts/musl-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Versions of the toolchain components are configurable in `musl-cross-make/Makefile` and
# musl unlike GLIBC is forward compatible so upgrading it shouldn't break old distributions.
# Right now we have: Binutils 2.27, GCC 6.4.0, musl 1.1.22.
# Right now we have: Binutils 2.31.1, GCC 9.2.0, musl 1.1.24.
set -ex

hide_output() {
Expand Down Expand Up @@ -33,11 +33,13 @@ shift
# Apparently applying `-fPIC` everywhere allows them to link successfully.
export CFLAGS="-fPIC $CFLAGS"

git clone https://github.com/richfelker/musl-cross-make -b v0.9.8
git clone https://github.com/richfelker/musl-cross-make # -b v0.9.9
cd musl-cross-make
# A few commits ahead of v0.9.9 to include the cowpatch fix:
git checkout a54eb56f33f255dfca60be045f12a5cfaf5a72a9

hide_output make -j$(nproc) TARGET=$TARGET
hide_output make install TARGET=$TARGET OUTPUT=$OUTPUT
hide_output make -j$(nproc) TARGET=$TARGET MUSL_VER=1.1.24
hide_output make install TARGET=$TARGET MUSL_VER=1.1.24 OUTPUT=$OUTPUT

cd -

Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/scripts/musl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ shift
# Apparently applying `-fPIC` everywhere allows them to link successfully.
export CFLAGS="-fPIC $CFLAGS"

MUSL=musl-1.1.22
MUSL=musl-1.1.24

# may have been downloaded in a previous run
if [ ! -d $MUSL ]; then
Expand Down
3 changes: 3 additions & 0 deletions src/ci/docker/wasm32/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ ENV PATH=$PATH:/emsdk-portable
ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
ENV BINARYEN_ROOT=/emsdk-portable/upstream/
ENV EMSDK=/emsdk-portable
ENV EM_CONFIG=/emsdk-portable/.emscripten
ENV EM_CACHE=/emsdk-portable/upstream/emscripten/cache

ENV TARGETS=wasm32-unknown-emscripten

Expand Down
10 changes: 0 additions & 10 deletions src/ci/github-actions/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ x--expand-yaml-anchors--remove:
run: src/ci/scripts/install-msys2.sh
<<: *step

- name: install MSYS2 packages
run: src/ci/scripts/install-msys2-packages.sh
<<: *step

- name: install MinGW
run: src/ci/scripts/install-mingw.sh
<<: *step
Expand Down Expand Up @@ -496,12 +492,6 @@ jobs:
NO_LLVM_ASSERTIONS: 1
<<: *job-windows-xl

- name: x86_64-msvc-aux
env:
RUST_CHECK_TARGET: check-aux EXCLUDE_CARGO=1
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
<<: *job-windows-xl

- name: x86_64-msvc-cargo
env:
SCRIPT: python x.py test src/tools/cargotest src/tools/cargo
Expand Down
27 changes: 0 additions & 27 deletions src/ci/scripts/install-msys2-packages.sh

This file was deleted.

Loading