Skip to content

Update/nightly 2021 10 29 #106

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

Closed
wants to merge 10,000 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
4da89a1
Auto merge of #89262 - Manishearth:rollup-vtkbetm, r=Manishearth
bors Sep 26, 2021
f6e6ddc
Auto merge of #88680 - ehuss:more-attr-validation, r=petrochenkov
bors Sep 26, 2021
e63d692
Stop suggesting a float truncation that is not shorter
dtolnay Sep 26, 2021
0661c2d
suggest both immutable and mutable trait implementations
TaKO8Ki Sep 26, 2021
e2aad3f
fix the relevant tests
TaKO8Ki Sep 26, 2021
ac8dd1b
Auto merge of #89101 - ehuss:compiletest-incremental-build, r=Mark-Si…
bors Sep 26, 2021
620f480
better suggestions
TaKO8Ki Sep 26, 2021
c09d637
Auto merge of #88316 - est31:remove_box_tests, r=Mark-Simulacrum
bors Sep 26, 2021
3e41397
fix test error
TaKO8Ki Sep 26, 2021
3bab363
test suggesting immutable or mutable trait implementations
TaKO8Ki Sep 26, 2021
88ff75c
Fix populate of union.impls
Urgau Sep 26, 2021
f4aa3b5
Preserve the whole LangSyntax when parsing doctests
jyn514 Sep 26, 2021
6f087ae
Use the correct edition when syntax highlighting doctests
jyn514 Sep 26, 2021
65eb381
Do not suggest importing inaccessible items
FabianWolff Sep 10, 2021
5c70f25
Detect when negative literal indices are used and suggest appropriate…
estebank Sep 25, 2021
750018e
Improve diagnostics for inaccessible items
FabianWolff Sep 17, 2021
05044c2
Auto merge of #89144 - sexxi-goose:insig_stdlib, r=nikomatsakis
bors Sep 26, 2021
df687bd
Add regression test for issue #83564
camelid Sep 26, 2021
8701020
2229: Consume IfLet expr
roxelo Sep 26, 2021
a84e3fa
Don't normalize opaque types with escaping late-bound regions.
jackh726 Sep 26, 2021
1e15bbe
Pass real crate-level attributes to `pre_expansion_lint`
smoelius Sep 26, 2021
b280465
Auto merge of #89092 - bjorn3:sync_cg_clif-2021-09-19, r=bjorn3
bors Sep 26, 2021
30fe4ba
Auto merge of #7722 - dtolnay-contrib:float, r=giraffate
bors Sep 27, 2021
d0e2b60
Fix test
roxelo Sep 26, 2021
c81c3ea
Auto merge of #89145 - rusticstuff:bump_stdarch, r=kennytm
bors Sep 27, 2021
adbb608
Link stage1 build to toolchain automatically
Sl1mb0 Sep 24, 2021
04006d8
Auto merge of #89182 - GuillaumeGomez:boostrap-explicit-request, r=Ma…
bors Sep 27, 2021
564cb87
suggest path for tuple struct
TaKO8Ki Sep 27, 2021
592d089
:arrow_up: rust-analyzer
lnicola Sep 27, 2021
583437a
Auto merge of #89203 - GuillaumeGomez:cleanup-rustdoc-types, r=camelid
bors Sep 27, 2021
f100159
Auto merge of #7692 - workingjubilee:float-cmp-not-wrong, r=giraffate
bors Sep 27, 2021
0c8799d
Auto merge of #7664 - matthiaskrgr:bump_to_2021, r=flip1995
bors Sep 27, 2021
46f8aa9
Update changelog to 1.56
flip1995 Sep 27, 2021
3e8f32e
Auto merge of #89263 - TaKO8Ki:suggest-both-immutable-and-mutable-tra…
bors Sep 27, 2021
d122a08
Issue 89193
gcohara Sep 27, 2021
88113c5
Update issue-89193.rs
gcohara Sep 27, 2021
2b6ed3b
Auto merge of #89285 - jackh726:issue-88862, r=nikomatsakis
bors Sep 27, 2021
93ab12e
Improve cause information for NLL higher-ranked errors
Aaron1011 Aug 28, 2021
0f9c349
lock types
guswynn Sep 27, 2021
41ad383
Remove `DefId` from `ConstraintCategory::Predicate`
Aaron1011 Sep 27, 2021
4cc3297
#[feature] not required for lint result
guswynn Sep 27, 2021
5d4048b
thread: implements available_concurrency on haiku
devnexen Sep 27, 2021
98c8619
Auto merge of #89214 - smoelius:register_tool, r=petrochenkov
bors Sep 27, 2021
8a12be7
Auto merge of #89249 - Aaron1011:higher-ranked-cause, r=estebank
bors Sep 27, 2021
0911069
Apply suggestions from code review
yaahc Sep 27, 2021
12c3f50
PassWrapper: handle function rename from upstream D36850
durin42 Sep 27, 2021
cd0873b
Add unit assignment to MIR for `asm!()`
FabianWolff Sep 27, 2021
25b6f9b
print-type-sizes: skip field printing for primitives
tmiasko Sep 28, 2021
dd0b5f4
Clarify that `CString::from_vec_unchecked` appends 0 byte.
et342 Sep 28, 2021
da9ca41
Add SOLID targets
kawadakk Sep 28, 2021
b7d40bc
Adding new linting
andrewpollack Aug 30, 2021
9a3ccd8
Removed value from changelog to get pass
andrewpollack Sep 21, 2021
b6ffb29
Adjusting changelog
andrewpollack Sep 25, 2021
baec67e
Use a single if_chain
Manishearth Sep 28, 2021
17155c8
Add renamed lint
Manishearth Sep 28, 2021
13834e6
fmt
Manishearth Sep 28, 2021
cbf27d0
Auto merge of #7608 - andrewpollack:7594/while_let_some_result, r=Man…
bors Sep 28, 2021
7b10746
Auto merge of #89277 - jyn514:codeblock-edition, r=GuillaumeGomez
bors Sep 28, 2021
a09fb90
rustc_session: Remove lint store from `Session`
petrochenkov Sep 28, 2021
83f147b
Auto merge of #89293 - TaKO8Ki:fix-confusing-error-for-path-separator…
bors Sep 28, 2021
707494e
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 Sep 28, 2021
7f11e5a
Fix CHANGELOG formatting
flip1995 Sep 28, 2021
08cead3
Auto merge of #7727 - flip1995:changelog, r=xFrednet
bors Sep 28, 2021
1d71ba8
Auto merge of #86191 - kawadakk:release-add-solid-support, r=nagisa,e…
bors Sep 28, 2021
9b5aa06
More tracing instrumentation
oli-obk Aug 20, 2021
42e9dfd
Reapply "Remove optimization_fuel_crate from Session"
bjorn3 Aug 30, 2021
8901ea2
Rebase resume argument projections during state transform
tmiasko Sep 28, 2021
6cc91cb
Rename `std::thread::available_onccurrency` to `std::thread::availabl…
yoshuawuyts Sep 28, 2021
8f8092c
Auto merge of #89048 - oli-obk:in_tracing_we_trust, r=jackh726
bors Sep 28, 2021
cef736f
Suggest similarly named assoc items in trait impls
hkmatsumoto Sep 25, 2021
ec38746
Allow internal lint INVALID_PATHS for itertools path
flip1995 Sep 28, 2021
e19d82f
review comments
estebank Sep 28, 2021
87a4a79
Pick one possible lifetime in case there are multiple choices
oli-obk Sep 28, 2021
d8f453d
Bump nightly version -> 2021-09-28
flip1995 Sep 28, 2021
c2b8882
Cleanup of rustup changes
flip1995 Sep 28, 2021
cb7915b
Auto merge of #7733 - flip1995:rustup, r=flip1995
bors Sep 28, 2021
d0fb9db
Merge commit 'cb7915b00c235e9b5861564f3be78dba330980ee' into clippyup
flip1995 Sep 28, 2021
8a7c130
Use less verbose syntax for error annotations
notriddle Sep 28, 2021
311da57
Rollup merge of #87260 - antoyo:libgccjit-codegen, r=Mark-Simulacrum
GuillaumeGomez Sep 28, 2021
532c577
Rollup merge of #89212 - Sl1mb0:xpy-toolchain-link, r=jyn514
GuillaumeGomez Sep 28, 2021
2a1f674
Rollup merge of #89233 - FabianWolff:issue-89159, r=estebank
GuillaumeGomez Sep 28, 2021
c62bfd9
Rollup merge of #89235 - yaahc:junit-formatting, r=kennytm
GuillaumeGomez Sep 28, 2021
69725ca
Rollup merge of #89255 - FabianWolff:issue-88806, r=cjgillot
GuillaumeGomez Sep 28, 2021
8bd64ab
Rollup merge of #89276 - Urgau:fix-union-impls, r=GuillaumeGomez
GuillaumeGomez Sep 28, 2021
d732c82
Rollup merge of #89283 - camelid:issue-83564-test, r=davidtwco
GuillaumeGomez Sep 28, 2021
2569508
Rollup merge of #89318 - petrochenkov:lstore, r=oli-obk
GuillaumeGomez Sep 28, 2021
830ecbd
Optimize is_sorted for Range and RangeInclusive
mbrubeck Sep 28, 2021
befdfb5
Improve error messages for bad type constraints
notriddle Sep 28, 2021
d2613fb
Improve help for recursion limit errors
rossmacarthur Sep 28, 2021
58b1a12
Avoid allocations and copying in Vec::leak
mbrubeck Sep 28, 2021
f0e9982
Deriving: Include bound generic params for extracted type parameters …
audunhalland Sep 28, 2021
105b60f
feat(rustc_typeck): avoid erroring with "wrong number of generics" if…
notriddle Sep 28, 2021
1fca2ce
Additional docs about Vec::leak behavior
mbrubeck Sep 28, 2021
6490ed3
Improve error message for `printf`-style format strings
FabianWolff Sep 28, 2021
6df1d82
Auto merge of #88950 - Nadrieril:deconstruct-pat, r=oli-obk
bors Sep 29, 2021
cb8e83c
ref/refmut
guswynn Sep 29, 2021
e559867
Fix truncate of 'bound params stack' by using the correct length
audunhalland Sep 29, 2021
e3e5ae9
Clean up unneeded explicit pointer cast
dtolnay Sep 29, 2021
6f608ce
Auto merge of #89328 - flip1995:clippyup, r=Manishearth
bors Sep 29, 2021
9ffa220
Auto merge of #89331 - GuillaumeGomez:rollup-b10unye, r=GuillaumeGomez
bors Sep 29, 2021
e18a8ef
Don't ignore impls for primitive types
hkmatsumoto Aug 28, 2021
e46fc9d
Encode json files with UTF-8
hkmatsumoto Sep 29, 2021
a0f4e78
Remove lazy_static dependency
GuillaumeGomez Sep 29, 2021
e1a9ecc
Cleanup lower_generics_mut and make span be the bound itself, not the…
jackh726 Sep 28, 2021
561e02f
Auto merge of #89011 - bjorn3:restructure_rt, r=dtolnay
bors Sep 29, 2021
34d95d9
Additional tests (from jackh726)
audunhalland Sep 29, 2021
bdd3471
Remove Never variant from clean::Type enum
GuillaumeGomez Sep 27, 2021
0e9e298
Auto merge of #89110 - Aaron1011:adjustment-span, r=estebank
bors Sep 30, 2021
fa23d4f
Implement #85440
smoelius Sep 18, 2021
a6738c7
Add tests
smoelius Sep 19, 2021
1fd8e6d
Rollup merge of #88412 - mdsn:slice-sort-safety, r=dtolnay
ehuss Sep 30, 2021
ccf93a1
Rollup merge of #89098 - GuillaumeGomez:where-bounds-order, r=camelid
ehuss Sep 30, 2021
9010c3c
Rollup merge of #89232 - rossmacarthur:fix-76424, r=wesleywiser
ehuss Sep 30, 2021
9b5a620
Rollup merge of #89294 - lnicola:rust-analyzer-2021-09-27, r=lnicola
ehuss Sep 30, 2021
8e323d1
Rollup merge of #89297 - GuillaumeGomez:remove-never-from-type-enum, …
ehuss Sep 30, 2021
54b2b5a
Rollup merge of #89311 - FabianWolff:issue-89305, r=oli-obk
ehuss Sep 30, 2021
9db3261
Rollup merge of #89313 - durin42:llvm-14-thinLTOResolvePrevailingInMo…
ehuss Sep 30, 2021
6febe13
Rollup merge of #89315 - et342:cstr_from_vec_unchecked_doc, r=yaahc
ehuss Sep 30, 2021
c526dfa
Rollup merge of #89335 - mbrubeck:range-is-sorted, r=cuviper
ehuss Sep 30, 2021
bc3e33d
Rollup merge of #89366 - GuillaumeGomez:remove-lazy-static, r=jyn514
ehuss Sep 30, 2021
51c7c52
Auto merge of #89386 - ehuss:rollup-idf4dmj, r=ehuss
bors Sep 30, 2021
393340b
Auto merge of #89250 - Aaron1011:keep-bound-region-names, r=estebank
bors Sep 30, 2021
3cd15c6
Auto merge of #86853 - usbalbin:const_try, r=oli-obk
bors Sep 30, 2021
4be574e
Add 'core::array::from_fn' and 'core::array::try_from_fn'
c410-f3r Sep 30, 2021
fdccc7d
Use reference instead of raw pointer
c410-f3r Sep 30, 2021
325025e
Improve previous commit
steffahn Sep 30, 2021
13bfcb7
Merge pull request #2 from steffahn/collect_into_array_fix_ub
c410-f3r Sep 30, 2021
355c7e9
Remove an unnecessary use of unwrap_unchecked
steffahn Sep 30, 2021
68ae247
Auto merge of #87998 - nneonneo:master, r=oli-obk
bors Sep 30, 2021
32b6ac5
Check `allow_unstable` before checking environment variables
smoelius Sep 30, 2021
7ed75ce
Recommend running `cargo clean` in E0514 output
pierwill Sep 30, 2021
7630e04
Rebase fallout.
cjgillot Sep 30, 2021
5fa012b
Auto merge of #89282 - sexxi-goose:fix-88118, r=nikomatsakis
bors Sep 30, 2021
0f9f241
[aarch64] add target feature outline-atomics
Apr 5, 2021
feb26c0
Auto merge of #89183 - cjgillot:noenc, r=oli-obk
bors Oct 1, 2021
95d0fb1
Rollup merge of #88782 - asquared31415:issue-79559, r=cjgillot
Manishearth Oct 1, 2021
dc73466
Rollup merge of #89202 - estebank:infer-call-type, r=oli-obk
Manishearth Oct 1, 2021
7d0970a
Rollup merge of #89248 - hkmatsumoto:suggest-similarly-named-assoc-it…
Manishearth Oct 1, 2021
6b5c76e
Rollup merge of #89303 - guswynn:std_suspend, r=dtolnay
Manishearth Oct 1, 2021
dba7eff
Rollup merge of #89306 - devnexen:haiku_ncpus, r=nagisa
Manishearth Oct 1, 2021
c1ab698
Auto merge of #89414 - Manishearth:rollup-hs11bcq, r=Manishearth
bors Oct 1, 2021
198d907
Add `pie` as another `relocation-model` value
hlopko Sep 10, 2021
97a8129
Rollup merge of #88838 - FabianWolff:issue-88472, r=estebank
Manishearth Oct 1, 2021
154f340
Rollup merge of #89251 - estebank:negative-index-literals, r=davidtwco
Manishearth Oct 1, 2021
9268f17
Rollup merge of #89321 - tmiasko:rebase-resume-arg, r=estebank
Manishearth Oct 1, 2021
4d43a39
Rollup merge of #89327 - oli-obk:nll_diag_infer_vars, r=wesleywiser
Manishearth Oct 1, 2021
c17a672
Rollup merge of #89344 - jackh726:maybe-bound-eror, r=cjgillot
Manishearth Oct 1, 2021
48b32e3
Rollup merge of #88820 - hlopko:add_pie_relocation_model, r=petrochenkov
Manishearth Oct 1, 2021
eb46988
Rollup merge of #89029 - notriddle:notriddle/issue-89013, r=estebank
Manishearth Oct 1, 2021
b20af70
Rollup merge of #89322 - tmiasko:rm-optimization-fuel, r=michaelwoeri…
Manishearth Oct 1, 2021
c644d5f
Rollup merge of #89340 - FabianWolff:issue-89173, r=petrochenkov
Manishearth Oct 1, 2021
68b76a4
Normalize after substituting via `field.ty()`
Nadrieril Oct 1, 2021
fa4072f
path.push() should work as expected on windows verbatim paths
seanyoung Sep 26, 2021
65ef265
Call `libc::sigaction()` only on Android
FabianWolff Oct 1, 2021
d5a5bda
Rollup merge of #88847 - oliverbr:master, r=steveklabnik
Manishearth Oct 1, 2021
0243896
Rollup merge of #88963 - fee1-dead:const-iterator, r=oli-obk
Manishearth Oct 1, 2021
781df4c
Rollup merge of #89441 - Nadrieril:fix-89393, r=tmandry
Manishearth Oct 1, 2021
729ff2d
Give better error for `macro_rules name`
aDotInTheVoid Sep 25, 2021
69274aa
Bump tracing to get the instrumentation perf improvement
oli-obk Oct 2, 2021
87241e9
Expand one test (from jackh726)
audunhalland Oct 2, 2021
3c72788
Auto merge of #89341 - audunhalland:derive-type-params-with-bound-gen…
bors Oct 2, 2021
85dbb84
Auto merge of #88060 - TennyZhuang:optimize-vec-retain, r=dtolnay
bors Oct 3, 2021
ed94973
Move rustc_middle::middle::cstore to rustc_session.
cjgillot Nov 14, 2020
91ad91e
Skip platforms without unwinding support
c410-f3r Oct 3, 2021
6dd6e7c
Added tracking issue numbers for int_abs_diff.
orlp Oct 3, 2021
bb7dad8
Auto merge of #88086 - ssomers:btree_clone_testing, r=dtolnay
bors Oct 3, 2021
cd773c3
Update outdated comment
tabokie Oct 3, 2021
fec076f
Auto merge of #89165 - jkugelman:read-to-end-overallocation, r=joshtr…
bors Oct 4, 2021
969816d
Rollup merge of #86828 - lambinoo:67441-const-fn-copied-take-replace,…
Manishearth Oct 4, 2021
475297a
Rollup merge of #87679 - ssomers:btree_comments, r=joshtriplett
Manishearth Oct 4, 2021
9d002c2
Rollup merge of #87910 - iago-lito:mark_unsafe_nonzero_arithmetics_as…
Manishearth Oct 4, 2021
550e2cc
Rollup merge of #88286 - LeSeulArtichaut:unnecessary-unsafe-block-std…
Manishearth Oct 4, 2021
4aa2b3f
Rollup merge of #88305 - ijackson:exitstatus-debug, r=dtolnay
Manishearth Oct 4, 2021
8de22eb
Rollup merge of #88353 - jhpratt:stabilize-array-as-ref, r=joshtriplett
Manishearth Oct 4, 2021
9aa9035
Rollup merge of #88370 - Seppel3210:master, r=dtolnay
Manishearth Oct 4, 2021
49f98da
Rollup merge of #89138 - newpavlov:patch-2, r=dtolnay
Manishearth Oct 4, 2021
9cb30f4
Move generic error message to separate branches
JulianKnodt Sep 28, 2021
4e7995c
Auto merge of #89512 - Manishearth:rollup-meh9x7r, r=Manishearth
bors Oct 4, 2021
03fbc16
Add doc aliases to `std::thread::available_parallelism`
yoshuawuyts Oct 4, 2021
a4e4d27
Auto merge of #88834 - the8472:char-count, r=joshtriplett
bors Oct 4, 2021
cee247c
Rollup merge of #83655 - sebpop:arm64-outline-atomics, r=workingjubilee
workingjubilee Oct 4, 2021
197b6f3
Rollup merge of #88451 - theo-lw:issue-87771, r=jackh726
workingjubilee Oct 4, 2021
d38fd6d
Rollup merge of #88452 - xu-cheng:vecdeque-from-array, r=m-ou-se
workingjubilee Oct 4, 2021
15ca694
Rollup merge of #89407 - pierwill:recommend-clean-E0514, r=davidtwco
workingjubilee Oct 4, 2021
e16e15f
Add documentation
smoelius Oct 4, 2021
c35a700
Make an initial guess for metadata size to reduce buffer resizes
joshtriplett Oct 5, 2021
54dfb01
Rollup merge of #88090 - nbdd0121:inference, r=nikomatsakis
workingjubilee Oct 5, 2021
21554ae
Rollup merge of #88780 - orlp:int-abs-diff, r=m-ou-se
workingjubilee Oct 5, 2021
42c4944
Rollup merge of #89270 - seanyoung:join_fold, r=m-ou-se
workingjubilee Oct 5, 2021
f4c66ad
Rollup merge of #88234 - hkmatsumoto:rustdoc-impls-for-primitive, r=j…
Manishearth Oct 5, 2021
b158ae5
Rollup merge of #88651 - AGSaidi:monotonize-inner-64b-aarch64, r=dtolnay
Manishearth Oct 5, 2021
b05884e
Rollup merge of #89244 - DeveloperC286:pair_slices_fields_to_private,…
Manishearth Oct 5, 2021
d6a57c3
Rollup merge of #89364 - hkmatsumoto:encode-json-with-utf-8, r=Mark-S…
Manishearth Oct 5, 2021
a35aaa2
Use get_unchecked in str::[r]split_once
nickkuk Sep 24, 2021
07d5db4
Auto merge of #89266 - cjgillot:session-ich, r=michaelwoerister
bors Oct 5, 2021
2628767
Auto merge of #89363 - oli-obk:in_tracing_we_trust, r=Mark-Simulacrum
bors Oct 5, 2021
92a2753
Rollup merge of #88706 - ThePuzzlemaker:issue-88609, r=jackh726
Manishearth Oct 5, 2021
03247e3
Rollup merge of #88828 - FabianWolff:issue-88585, r=dtolnay
Manishearth Oct 5, 2021
006d1cc
Rollup merge of #88871 - FabianWolff:issue-88403, r=jackh726
Manishearth Oct 5, 2021
5cb4cbc
Rollup merge of #89317 - JulianKnodt:precise_errors, r=BoxyUwU
Manishearth Oct 5, 2021
a6a3206
Rollup merge of #89546 - joshtriplett:grow-metadata-faster, r=petroch…
Manishearth Oct 5, 2021
5e1941c
Apply suggestions from code review
yaahc Oct 5, 2021
0866b96
Apply suggestions from code review
yaahc Oct 5, 2021
ecf4741
Add tracking issue
smoelius Oct 6, 2021
98f2114
Rollup merge of #88523 - kpreid:category, r=yaahc
Manishearth Oct 6, 2021
e057081
Rollup merge of #89324 - yoshuawuyts:hardware-parallelism, r=m-ou-se
Manishearth Oct 6, 2021
617d398
Rollup merge of #89329 - tmiasko:print-type-sizes-no-fields, r=jackh726
Manishearth Oct 6, 2021
549a68b
Add InferCtxt::with_opaque_type_inference to get_body_with_borrowck_f…
willcrichton Oct 7, 2021
8a73c30
Rollup merge of #89298 - gcohara:issue89193, r=workingjubilee
GuillaumeGomez Oct 7, 2021
5e419ca
Rollup merge of #89615 - willcrichton:fix-get-body-with-borrowck-fact…
GuillaumeGomez Oct 7, 2021
11b08a5
Rollup merge of #88137 - joshtriplett:osx-strip-symbols-no-option, r=…
workingjubilee Oct 8, 2021
56518f3
Rollup merge of #89025 - ricobbe:raw-dylib-link-ordinal, r=michaelwoe…
workingjubilee Oct 8, 2021
81d1caa
Rollup merge of #89082 - smoelius:master, r=kennytm
workingjubilee Oct 8, 2021
aeacaa7
Create more accurate debuginfo for vtables.
michaelwoerister Oct 6, 2021
85c4a52
Also cfg flag auxiliar function
c410-f3r Oct 8, 2021
54d9b81
Rollup merge of #88707 - sylvestre:split_example, r=yaahc
matthiaskrgr Oct 9, 2021
69edbf0
Rollup merge of #75644 - c410-f3r:array, r=yaahc
GuillaumeGomez Oct 9, 2021
1ca2618
Rollup merge of #88436 - lf-:stabilize-command-access, r=yaahc
GuillaumeGomez Oct 9, 2021
16a644f
Auto merge of #89219 - nickkuk:str_split_once_get_unchecked, r=Mark-S…
bors Oct 10, 2021
453e092
Rollup merge of #88374 - joshlf:patch-2, r=JohnTitor
matthiaskrgr Oct 10, 2021
f68579e
Rollup merge of #88713 - falk-hueffner:int-log10-documentation-fixes,…
matthiaskrgr Oct 10, 2021
5eafb8a
Auto merge of #89597 - michaelwoerister:improve-vtable-debuginfo, r=w…
bors Oct 11, 2021
1b283d4
Remove hack ignoring unused attributes for stage 0 std
jyn514 Oct 11, 2021
cbe0183
Rollup merge of #89760 - jyn514:remove-incremental-hack, r=Mark-Simul…
matthiaskrgr Oct 11, 2021
c4c470f
Auto merge of #88788 - falk-hueffner:speedup-int-log10-branchless, r=…
bors Oct 12, 2021
129af04
Mention Rust version in Vec::leak docs.
m-ou-se Oct 12, 2021
df15b28
Remove potentially unsound note on reconstructing a leaked Vec.
m-ou-se Oct 12, 2021
31265c6
Assemble the compiler when running `x.py build`
jyn514 Oct 11, 2021
d355370
Rollup merge of #89759 - jyn514:x-build-assemble, r=Mark-Simulacrum
matthiaskrgr Oct 13, 2021
c9af192
Allow static linking LLVM with ThinLTO
tmandry Oct 13, 2021
d52227d
Rollup merge of #89865 - tmandry:llvm-static, r=Mark-Simulacrum
matthiaskrgr Oct 14, 2021
3623f53
Remove alloc::prelude
Amanieu Oct 14, 2021
4b9245e
Auto merge of #88717 - tabokie:vecdeque-fast-append, r=m-ou-se
bors Oct 15, 2021
3be153c
Auto merge of #89337 - mbrubeck:vec-leak, r=m-ou-se
bors Oct 15, 2021
48f6992
Rollup merge of #89898 - Amanieu:remove_alloc_prelude, r=joshtriplett
matthiaskrgr Oct 16, 2021
47ea60c
Auto merge of #88652 - AGSaidi:linux-aarch64-should-be-actually-monot…
bors Oct 17, 2021
7aaf44f
Rollup merge of #88789 - the8472:rm-zip-bound, r=JohnTitor
JohnTitor Oct 19, 2021
99b8c01
Address lcnr review
eopb Oct 19, 2021
be30e60
remove duplicate subst
eopb Oct 20, 2021
4151481
Make hash_result an Option.
cjgillot Oct 16, 2021
4c54262
Rollup merge of #88644 - eopb:abstractconst_leaf_subst, r=lcnr
JohnTitor Oct 21, 2021
0dba9d0
Stabilize feature saturating_div for rust 1.58
kellerkindt Oct 21, 2021
856af62
Rollup merge of #88624 - kellerkindt:master, r=JohnTitor
JohnTitor Oct 22, 2021
ab7e24f
Rollup merge of #89257 - aDotInTheVoid:macro-error-2, r=estebank
JohnTitor Oct 22, 2021
2ed5665
Apply suggestions from code review
yaahc Oct 22, 2021
7659707
Rollup merge of #88300 - ijackson:exitstatusext-methods, r=yaahc
matthiaskrgr Oct 23, 2021
999add9
Add LLVM CFI support to the Rust compiler
rcvalle Oct 7, 2021
ecffb82
Properly check `target_features` not to trigger an assertion
JohnTitor Oct 20, 2021
2fe0805
Auto merge of #89652 - rcvalle:rust-cfi, r=nagisa
bors Oct 27, 2021
dda7e5f
Update to nightly-2021-10-29
antoyo Oct 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/alloc_example.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![feature(start, box_syntax, core_intrinsics, alloc_prelude, alloc_error_handler)]
#![feature(start, box_syntax, core_intrinsics, alloc_error_handler)]
#![no_std]

extern crate alloc;
extern crate alloc_system;

use alloc::prelude::v1::*;
use alloc::boxed::Box;

use alloc_system::System;

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nightly-2021-09-28
nightly-2021-10-29
5 changes: 2 additions & 3 deletions src/archive.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use std::fs::File;
use std::path::{Path, PathBuf};

use rustc_session::Session;
use rustc_codegen_ssa::back::archive::ArchiveBuilder;
use rustc_session::Session;

use rustc_data_structures::temp_dir::MaybeTempDir;
use rustc_middle::middle::cstore::DllImport;

use rustc_session::cstore::DllImport;

struct ArchiveConfig<'a> {
sess: &'a Session,
Expand Down
2 changes: 1 addition & 1 deletion src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl<'a, 'gcc, 'tcx> AsmBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
true
}

fn codegen_inline_asm(&mut self, template: &[InlineAsmTemplatePiece], rust_operands: &[InlineAsmOperandRef<'tcx, Self>], options: InlineAsmOptions, _span: &[Span]) {
fn codegen_inline_asm(&mut self, template: &[InlineAsmTemplatePiece], rust_operands: &[InlineAsmOperandRef<'tcx, Self>], options: InlineAsmOptions, _span: &[Span], _instance: Instance<'_>) {
let asm_arch = self.tcx.sess.asm_arch.unwrap();
let is_x86 = matches!(asm_arch, InlineAsmArch::X86 | InlineAsmArch::X86_64);
let att_dialect = is_x86 && options.contains(InlineAsmOptions::ATT_SYNTAX);
Expand Down
12 changes: 9 additions & 3 deletions src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ use gccjit::{
GlobalKind,
};
use rustc_middle::dep_graph;
use rustc_middle::middle::cstore::EncodedMetadata;
use rustc_middle::middle::exported_symbols;
use rustc_middle::ty::TyCtxt;
use rustc_middle::mir::mono::Linkage;
use rustc_codegen_ssa::{ModuleCodegen, ModuleKind};
use rustc_codegen_ssa::base::maybe_create_entry_wrapper;
use rustc_codegen_ssa::mono_item::MonoItemExt;
use rustc_codegen_ssa::traits::DebugInfoMethods;
use rustc_metadata::EncodedMetadata;
use rustc_session::config::DebugInfo;
use rustc_span::Symbol;

Expand Down Expand Up @@ -59,7 +59,13 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol) -> (Modul
let start_time = Instant::now();

let dep_node = tcx.codegen_unit(cgu_name).codegen_dep_node(tcx);
let (module, _) = tcx.dep_graph.with_task(dep_node, tcx, cgu_name, module_codegen, dep_graph::hash_result);
let (module, _) = tcx.dep_graph.with_task(
dep_node,
tcx,
cgu_name,
module_codegen,
Some(dep_graph::hash_result),
);
let time_to_codegen = start_time.elapsed();
drop(prof_timer);

Expand Down Expand Up @@ -149,7 +155,7 @@ pub fn write_compressed_metadata<'tcx>(tcx: TyCtxt<'tcx>, metadata: &EncodedMeta

let context = &gcc_module.context;
let mut compressed = rustc_metadata::METADATA_HEADER.to_vec();
FrameEncoder::new(&mut compressed).write_all(&metadata.raw_data).unwrap();
FrameEncoder::new(&mut compressed).write_all(&metadata.raw_data()).unwrap();

let name = exported_symbols::metadata_symbol_name(tcx);
let typ = context.new_array_type(None, context.new_type::<u8>(), compressed.len() as i32);
Expand Down
10 changes: 10 additions & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,16 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
// TODO(antoyo)
}

fn type_metadata(&mut self, _function: RValue<'gcc>, _typeid: String) {
// Unsupported.
}

fn typeid_metadata(&mut self, _typeid: String) -> RValue<'gcc> {
// Unsupported.
self.context.new_rvalue_from_int(self.int_type, 0)
}


fn store(&mut self, val: RValue<'gcc>, ptr: RValue<'gcc>, align: Align) -> RValue<'gcc> {
self.store_with_flags(val, ptr, align, MemFlags::empty())
}
Expand Down
4 changes: 2 additions & 2 deletions src/debuginfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use gccjit::RValue;
use rustc_codegen_ssa::mir::debuginfo::{FunctionDebugContext, VariableKind};
use rustc_codegen_ssa::traits::{DebugInfoBuilderMethods, DebugInfoMethods};
use rustc_middle::mir;
use rustc_middle::ty::{Instance, Ty};
use rustc_middle::ty::{Instance, PolyExistentialTraitRef, Ty};
use rustc_span::{SourceFile, Span, Symbol};
use rustc_target::abi::Size;
use rustc_target::abi::call::FnAbi;
Expand Down Expand Up @@ -31,7 +31,7 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> {
}

impl<'gcc, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
fn create_vtable_metadata(&self, _ty: Ty<'tcx>, _vtable: Self::Value) {
fn create_vtable_metadata(&self, _ty: Ty<'tcx>, _trait_ref: Option<PolyExistentialTraitRef<'tcx>>, _vtable: Self::Value) {
// TODO(antoyo)
}

Expand Down
5 changes: 5 additions & 0 deletions src/intrinsic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
// TODO(antoyo)
}

fn type_test(&mut self, _pointer: Self::Value, _typeid: Self::Value) -> Self::Value {
// Unsupported.
self.context.new_rvalue_from_int(self.int_type, 0)
}

fn va_start(&mut self, _va_list: RValue<'gcc>) -> RValue<'gcc> {
unimplemented!();
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ use rustc_codegen_ssa::target_features::supported_target_features;
use rustc_codegen_ssa::traits::{CodegenBackend, ExtraBackendMethods, ModuleBufferMethods, ThinBufferMethods, WriteBackendMethods};
use rustc_data_structures::fx::FxHashMap;
use rustc_errors::{ErrorReported, Handler};
use rustc_metadata::EncodedMetadata;
use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
use rustc_middle::middle::cstore::EncodedMetadata;
use rustc_middle::ty::TyCtxt;
use rustc_session::config::{Lto, OptLevel, OutputFilenames};
use rustc_session::Session;
Expand Down