Skip to content

TEST: Native OSX-ARM64 CI #1

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

Open
wants to merge 352 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
352 commits
Select commit Hold shift + click to select a range
48d60ab
Update to nightly-2021-09-11 (#79)
Sep 17, 2021
df48731
Merge commit '48d60ab7c505c6c1ebb042eacaafd8dc9f7a9267' into libgccji…
antoyo Sep 17, 2021
ed7a82e
Auto merge of #7653 - lengyijun:same_name_method_crate, r=llogiq
bors Sep 17, 2021
59cd777
Auto merge of #7657 - dswij:needless-borrow-mut, r=llogiq
bors Sep 17, 2021
ee6a6b5
Change the suggestion for `while_let_on_iterator` when the iterator c…
Jarcho Sep 18, 2021
b365912
Fix needless_return with let-else
camsteffen Sep 18, 2021
19a3116
Remove needless hir Map ref
camsteffen Sep 18, 2021
871ad80
Auto merge of #7690 - Jarcho:while_loop_by_ref, r=xFrednet
bors Sep 19, 2021
b226d17
Fix generics where bounds order
GuillaumeGomez Sep 19, 2021
44b8301
Do not store visibility in *ItemRef.
cjgillot Jul 15, 2021
63ed2f9
Expand BOX_VEC to BOX_COLLECTION
F3real Sep 17, 2021
ede8679
Enable 2021 compatibility lints for all in-tree code
Mark-Simulacrum Sep 18, 2021
41fe546
Retry on some download errors in lintcheck
Jarcho Sep 20, 2021
7f96b35
Register lint rename
F3real Sep 20, 2021
1183371
Remove Drop-caused migration-added captures
Mark-Simulacrum Sep 19, 2021
4873ebe
Use ZST for fmt unsafety
camsteffen Sep 21, 2021
848e551
Auto merge of #7694 - Jarcho:lintcheck_retry, r=matthiaskrgr
bors Sep 21, 2021
3ad3c51
Demote float_cmp to pedantic
workingjubilee Sep 19, 2021
a3b67fe
Auto merge of #89103 - Mark-Simulacrum:migrate-2021, r=estebank
bors Sep 21, 2021
ac9e80e
Rollup merge of #89078 - camsteffen:map-ref, r=cjgillot
the8472 Sep 21, 2021
b51b172
Auto merge of #89158 - the8472:rollup-3e4ijth, r=the8472
bors Sep 21, 2021
8a75002
Auto merge of #7685 - camsteffen:let-else-needless-ret, r=giraffate
bors Sep 22, 2021
b68325e
add #4546 test
lengyijun Sep 17, 2021
a4a8ec2
Auto merge of #7679 - lengyijun:issue4546, r=xFrednet
bors Sep 22, 2021
27bb76b
Tweak pedantic description for occasional FPs
camsteffen Sep 22, 2021
bf1848d
Add tests
Nadrieril Aug 25, 2021
3cd54ba
Auto merge of #7704 - camsteffen:pedantic-occasional, r=Manishearth
bors Sep 22, 2021
bb971e0
Add missing reference to box_vec
F3real Sep 22, 2021
ef2e2f0
Auto merge of #7693 - F3real:vec2, r=Manishearth
bors Sep 22, 2021
edaeacf
Auto merge of #89139 - camsteffen:write-perf, r=Mark-Simulacrum
bors Sep 23, 2021
5efd6bc
Don't lint `suspicious_else_formatting` inside proc-macros
Jarcho Sep 23, 2021
b8deb93
Add test
estebank Sep 23, 2021
072d107
Resolve infered types when complaining about unexpected call type
estebank Sep 23, 2021
e69154f
Add test for #7650
Jarcho Sep 23, 2021
cd3f3cf
Auto merge of #7707 - Jarcho:suspicious_else_proc_mac, r=Manishearth
bors Sep 23, 2021
1c23349
Clean up clean/types.rs file by making the implementations follow the…
GuillaumeGomez Sep 23, 2021
551220c
Add known-tool-in-submodule test
smoelius Sep 24, 2021
7a4a556
Avoid needless heap allocation in box_collection
F3real Sep 24, 2021
10bef56
Simplify explicit request check
GuillaumeGomez Sep 22, 2021
7355376
consistent big O notation
wooster0 Sep 24, 2021
543b638
Add new lint `if_then_panic`
Labelray Sep 14, 2021
2e38bc1
Auto merge of #7715 - F3real:vec2, r=camsteffen
bors Sep 24, 2021
fb61d04
Auto merge of #7669 - Labelray:if_then_panic, r=giraffate
bors Sep 24, 2021
e0b68ae
Rollup merge of #89001 - jackh726:binder-cleanup, r=nikomatsakis
workingjubilee Sep 24, 2021
911ced0
Hide `<...> defined here` note if the source is not available
FabianWolff Sep 24, 2021
7779eb7
make junit output more consistent with default format
yaahc Sep 24, 2021
fc8edf1
Introduce `Rvalue::ShallowInitBox`
nbdd0121 Sep 6, 2021
aef4577
Auto merge of #89030 - nbdd0121:box2, r=jonas-schievink
bors Sep 25, 2021
4d66986
Use larger span for adjustments on method calls
Aaron1011 Sep 16, 2021
78013f2
Don't anonymize bound region names during typeck
Aaron1011 Sep 25, 2021
3d08ff1
Fix incorrect disambiguation suggestion for associated items
FabianWolff Sep 25, 2021
c3515c3
bump clippy crates to edition 2021
matthiaskrgr Sep 10, 2021
d888b4b
clippy lints: update doctest ranges to inclusive ones
matthiaskrgr Sep 10, 2021
2e78c6b
Remove premature shortcutting
Nadrieril Aug 26, 2021
2bf6e78
Remove some unreachable code
Nadrieril Sep 13, 2021
003bbcb
Always report reachability for user-supplied patterns
Nadrieril Sep 13, 2021
ff90c63
Cleanup the reporting of unreachable patterns
Nadrieril Sep 13, 2021
87a0a25
A for loop is a lot faster apparently
Nadrieril Sep 22, 2021
3175409
Rework `Fields` internals.
Nadrieril Sep 22, 2021
035c521
Use usize for slice arity
Nadrieril Sep 25, 2021
5853399
Move special `&str` handling to `Constructor` and `Fields`
Nadrieril Sep 22, 2021
fde45e9
Remove dependency of `SubPatSet` on `Pat`
Nadrieril Sep 22, 2021
71abc95
Replace `Pat` with a new intermediate representation
Nadrieril Sep 25, 2021
b6062bd
Avoid double-deref in `Fields`
Nadrieril Sep 25, 2021
b7e358e
Trivialize tracking of unreachable subpatterns
Nadrieril Sep 25, 2021
067bfe3
Rollup merge of #89216 - r00ster91:bigo, r=dtolnay
Manishearth Sep 26, 2021
0f4b616
Add notes for cross-compilation to gcc-only targets (#68)
antoyo 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
4e7e822
Impove handling of registers in inline asm (#82)
Sep 26, 2021
620f480
better suggestions
TaKO8Ki Sep 26, 2021
3e41397
fix test error
TaKO8Ki Sep 26, 2021
3bab363
test suggesting immutable or mutable trait implementations
TaKO8Ki Sep 26, 2021
64c561d
Fix global initialization (#91)
antoyo 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
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
30fe4ba
Auto merge of #7722 - dtolnay-contrib:float, r=giraffate
bors Sep 27, 2021
d0e2b60
Fix test
roxelo Sep 26, 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
ab4ff2d
Cleanup fix for global initialization (#93)
antoyo 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
63608ac
Fix/mismatch types (#94)
antoyo Sep 27, 2021
cd0873b
Add unit assignment to MIR for `asm!()`
FabianWolff Sep 27, 2021
11c2023
Fix/count trailing zeroes (#95)
antoyo 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
9809f5d
Update to nightly-2021-09-28 (#97)
antoyo Sep 28, 2021
7f32dd5
Merge commit '9809f5d21990d9e24b3e9876ea7da756fd4e9def' into libgccji…
antoyo Sep 28, 2021
cd4810d
Fix warnings (#98)
antoyo Sep 28, 2021
90be409
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccji…
antoyo 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
8642904
Rollup merge of #87260 - antoyo:libgccjit-codegen, r=Mark-Simulacrum
GuillaumeGomez Sep 28, 2021
91da29f
Rollup merge of #89212 - Sl1mb0:xpy-toolchain-link, r=jyn514
GuillaumeGomez Sep 28, 2021
3c60e04
Rollup merge of #89233 - FabianWolff:issue-89159, r=estebank
GuillaumeGomez Sep 28, 2021
e601554
Rollup merge of #89235 - yaahc:junit-formatting, r=kennytm
GuillaumeGomez Sep 28, 2021
48b5d11
Rollup merge of #89255 - FabianWolff:issue-88806, r=cjgillot
GuillaumeGomez Sep 28, 2021
96ce457
Rollup merge of #89276 - Urgau:fix-union-impls, r=GuillaumeGomez
GuillaumeGomez Sep 28, 2021
733aa50
Rollup merge of #89283 - camelid:issue-83564-test, r=davidtwco
GuillaumeGomez Sep 28, 2021
d9ee68f
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
105b60f
feat(rustc_typeck): avoid erroring with "wrong number of generics" if…
notriddle 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
6f608ce
Auto merge of #89328 - flip1995:clippyup, r=Manishearth
bors Sep 29, 2021
50f9f78
Auto merge of #89331 - GuillaumeGomez:rollup-b10unye, r=GuillaumeGomez
bors Sep 29, 2021
a0f4e78
Remove lazy_static dependency
GuillaumeGomez Sep 29, 2021
6e973f0
fix(lint): don't suggest refutable patterns to "fix" irrefutable bind
notriddle Sep 28, 2021
e1a9ecc
Cleanup lower_generics_mut and make span be the bound itself, not the…
jackh726 Sep 28, 2021
35f74c2
remove outdated comment
RalfJung Sep 29, 2021
268bb46
CTFE: extra assertions for Aggregate rvalues; remove unnecessarily ea…
RalfJung Sep 29, 2021
1149193
Auto merge of #89011 - bjorn3:restructure_rt, r=dtolnay
bors Sep 29, 2021
bdd3471
Remove Never variant from clean::Type enum
GuillaumeGomez Sep 27, 2021
d90934c
Fix use after drop in self-profile with llvm events
andjo403 Sep 29, 2021
80b4718
Update cargo
ehuss Sep 29, 2021
db9fea5
Avoid more invocations of hir_crate query.
cjgillot Sep 11, 2021
abc57f6
Move body_owners to tcx.hir().
cjgillot Sep 12, 2021
762f81d
Update books
ehuss Sep 29, 2021
0f47312
Fix Windows LLVM issue.
ehuss Sep 29, 2021
24a789b
Auto merge of #89380 - ehuss:fix-windows-llvm, r=Mark-Simulacrum
bors Sep 29, 2021
4aa7879
Auto merge of #89110 - Aaron1011:adjustment-span, r=estebank
bors Sep 30, 2021
42ea15b
Rollup merge of #87428 - GuillaumeGomez:union-highlighting, r=notriddle
ehuss Sep 30, 2021
e24f522
Rollup merge of #88412 - mdsn:slice-sort-safety, r=dtolnay
ehuss Sep 30, 2021
7c23ff2
Rollup merge of #89098 - GuillaumeGomez:where-bounds-order, r=camelid
ehuss Sep 30, 2021
8087147
Rollup merge of #89232 - rossmacarthur:fix-76424, r=wesleywiser
ehuss Sep 30, 2021
9050c54
Rollup merge of #89294 - lnicola:rust-analyzer-2021-09-27, r=lnicola
ehuss Sep 30, 2021
8dfe522
Rollup merge of #89297 - GuillaumeGomez:remove-never-from-type-enum, …
ehuss Sep 30, 2021
c5f8675
Rollup merge of #89311 - FabianWolff:issue-89305, r=oli-obk
ehuss Sep 30, 2021
403e221
Rollup merge of #89313 - durin42:llvm-14-thinLTOResolvePrevailingInMo…
ehuss Sep 30, 2021
e392f5d
Rollup merge of #89315 - et342:cstr_from_vec_unchecked_doc, r=yaahc
ehuss Sep 30, 2021
8f9f3aa
Rollup merge of #89335 - mbrubeck:range-is-sorted, r=cuviper
ehuss Sep 30, 2021
9a77b21
Rollup merge of #89366 - GuillaumeGomez:remove-lazy-static, r=jyn514
ehuss Sep 30, 2021
4bb4789
Rollup merge of #89377 - ehuss:update-cargo, r=ehuss
ehuss Sep 30, 2021
20c9530
Rollup merge of #89378 - ehuss:update-books, r=ehuss
ehuss Sep 30, 2021
30acf6d
Auto merge of #89386 - ehuss:rollup-idf4dmj, r=ehuss
bors Sep 30, 2021
1cf905f
bootstrap: Update comment in config.library.toml.
BGR360 Sep 30, 2021
69c1c6a
Auto merge of #89250 - Aaron1011:keep-bound-region-names, r=estebank
bors Sep 30, 2021
c6007fd
Auto merge of #86853 - usbalbin:const_try, r=oli-obk
bors Sep 30, 2021
d98ac57
Remove visible path calculation from allowed deprecation lint
In-line Sep 30, 2021
6dc08b9
Auto merge of #87998 - nneonneo:master, r=oli-obk
bors Sep 30, 2021
c20eeba
Update `llvm` submodule to fix function name mangling on x86 Windows
wesleywiser Sep 30, 2021
faa7d42
Do not pass hir::Crate to lints.
cjgillot Sep 12, 2021
659b0a2
Bless tests.
cjgillot Sep 12, 2021
77c3002
Apply suggestions from code review
cjgillot Sep 13, 2021
098d862
bootstrap: Update comment (again) in config.library.toml
BGR360 Sep 30, 2021
f5e4f78
Add private arg to fmt::UnsafeArg
camsteffen Sep 30, 2021
df54d39
Move encode_metadata out of CrateStore.
cjgillot Nov 14, 2020
b244b98
Move EncodedMetadata to rustc_metadata.
cjgillot Sep 24, 2021
ea6b799
Update run-make-fulldeps.
cjgillot Sep 24, 2021
79d1475
Update compiler/rustc_codegen_cranelift/scripts/filter_profile.rs
cjgillot Sep 28, 2021
2d51b78
Rebase fallout.
cjgillot Sep 30, 2021
09f1542
Implemented -Z randomize-layout
Kixiron Aug 29, 2021
aa7aca3
Auto merge of #89282 - sexxi-goose:fix-88118, r=nikomatsakis
bors Sep 30, 2021
bec19a7
add regression test for issue 89119
lqd Sep 30, 2021
1c0ed0d
Auto merge of #89183 - cjgillot:noenc, r=oli-obk
bors Oct 1, 2021
3d86aac
Rollup merge of #88782 - asquared31415:issue-79559, r=cjgillot
Manishearth Oct 1, 2021
b437be4
Rollup merge of #89202 - estebank:infer-call-type, r=oli-obk
Manishearth Oct 1, 2021
837ac87
Rollup merge of #89248 - hkmatsumoto:suggest-similarly-named-assoc-it…
Manishearth Oct 1, 2021
7b40d42
Rollup merge of #89303 - guswynn:std_suspend, r=dtolnay
Manishearth Oct 1, 2021
fccfc98
Rollup merge of #89306 - devnexen:haiku_ncpus, r=nagisa
Manishearth Oct 1, 2021
fbc67b5
Rollup merge of #89314 - notriddle:notriddle/lint-fix-enum-variant-ma…
Manishearth Oct 1, 2021
4661464
Rollup merge of #89370 - RalfJung:ctfe-aggregate-rvalue, r=oli-obk
Manishearth Oct 1, 2021
9ea439d
Rollup merge of #89392 - BGR360:master, r=jyn514
Manishearth Oct 1, 2021
3565e8a
Correct caller/callsite confusion in inliner message
wesleywiser Oct 1, 2021
598d89b
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
4e4942d
Auto merge of #89395 - In-line:remove_visible_path_from_allowed_depre…
bors Oct 1, 2021
9593e61
Rollup merge of #88838 - FabianWolff:issue-88472, r=estebank
Manishearth Oct 1, 2021
e77d163
Rollup merge of #89251 - estebank:negative-index-literals, r=davidtwco
Manishearth Oct 1, 2021
2726955
Rollup merge of #89321 - tmiasko:rebase-resume-arg, r=estebank
Manishearth Oct 1, 2021
8c5114b
Rollup merge of #89327 - oli-obk:nll_diag_infer_vars, r=wesleywiser
Manishearth Oct 1, 2021
746e465
Rollup merge of #89344 - jackh726:maybe-bound-eror, r=cjgillot
Manishearth Oct 1, 2021
e834b9d
Rollup merge of #89397 - wesleywiser:update_llvm_submodule, r=cuviper
Manishearth Oct 1, 2021
4571fea
Rollup merge of #89412 - lqd:zvariant-repro, r=Aaron1011
Manishearth Oct 1, 2021
69eb996
Auto merge of #89417 - Manishearth:rollup-j2gdu95, r=Manishearth
bors Oct 1, 2021
ed93759
Auto merge of #89403 - camsteffen:fmt-unsafe-private, r=Mark-Simulacrum
bors Oct 1, 2021
37df275
Rollup merge of #87868 - Kixiron:packing-on-the-pounds, r=eddyb
Manishearth Oct 1, 2021
6f1e930
Rollup merge of #88820 - hlopko:add_pie_relocation_model, r=petrochenkov
Manishearth Oct 1, 2021
1708219
Rollup merge of #89029 - notriddle:notriddle/issue-89013, r=estebank
Manishearth Oct 1, 2021
2f67063
Rollup merge of #89322 - tmiasko:rm-optimization-fuel, r=michaelwoeri…
Manishearth Oct 1, 2021
d388428
Rollup merge of #89340 - FabianWolff:issue-89173, r=petrochenkov
Manishearth Oct 1, 2021
534946c
Rollup merge of #89415 - wesleywiser:inliner_caller_callsite_message,…
Manishearth Oct 1, 2021
b6057bf
Auto merge of #89435 - Manishearth:rollup-vh2ih7k, r=Manishearth
bors Oct 1, 2021
1a79644
Clarify a sentence in the documentation of Vec (#84488)
chrismit3s Oct 1, 2021
68b76a4
Normalize after substituting via `field.ty()`
Nadrieril Oct 1, 2021
3792be6
Replace whitespaces in doctests' name with dashes
GuillaumeGomez Oct 1, 2021
c02371c
Auto merge of #88880 - cjgillot:no-krate, r=oli-obk
bors Oct 1, 2021
eedc76d
Rollup merge of #85223 - simbleau:master, r=steveklabnik
Manishearth Oct 1, 2021
2bab0a0
Rollup merge of #88847 - oliverbr:master, r=steveklabnik
Manishearth Oct 1, 2021
743e842
Rollup merge of #88963 - fee1-dead:const-iterator, r=oli-obk
Manishearth Oct 1, 2021
1781e4b
Rollup merge of #89376 - andjo403:selfProfileUseAfterDropFix, r=Mark-…
Manishearth Oct 1, 2021
04ba153
Rollup merge of #89422 - GuillaumeGomez:doctest-whitespace-name, r=Cr…
Manishearth Oct 1, 2021
b458ecf
Rollup merge of #89440 - chrismit3s:issue-84488-fix, r=steveklabnik
Manishearth Oct 1, 2021
5ab1245
Rollup merge of #89441 - Nadrieril:fix-89393, r=tmandry
Manishearth Oct 1, 2021
6e12110
Auto merge of #89449 - Manishearth:rollup-3alb61f, r=Manishearth
bors Oct 1, 2021
b4c0c01
WIP: osx ci
hkratz Aug 17, 2021
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
  •  
  •  
  •  
54 changes: 54 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: macos-ci
on:
push:
branches:
- osx-arm64-ci

jobs:
test:
name: test
runs-on: [self-hosted, ARM64, macOS]

timeout-minutes: 600
# strategy:
# matrix:
# os: [macos-latest, macos-11]
steps:
- name: disable git crlf conversion
run: git config --global core.autocrlf false

- name: checkout the source code
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: collect CPU statistics
run: src/ci/scripts/collect-cpu-stats.sh

- name: show the current environment
run: src/ci/scripts/dump-environment.sh

- name: install sccache
run: src/ci/scripts/install-sccache.sh

- name: ensure the build happens on a partition with enough space
run: src/ci/scripts/symlink-build-dir.sh

- name: checkout submodules
run: src/ci/scripts/checkout-submodules.sh

- name: ensure line endings are correct
run: src/ci/scripts/verify-line-endings.sh

- name: run the build
run: src/ci/scripts/run-build-from-ci.sh
env:
SCRIPT: "./x.py --stage 2 test"
RUST_CONFIGURE_ARGS: --build=aarch64-apple-darwin --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set build.print-step-timings --enable-verbose-tests
RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
MACOSX_DEPLOYMENT_TARGET: 10.8
MACOSX_STD_DEPLOYMENT_TARGET: 10.7
NO_LLVM_ASSERTIONS: 1
NO_DEBUG_ASSERTIONS: 1
CC: clang
CXX: clang++
22 changes: 17 additions & 5 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ checksum = "3ca8957e71f04a205cb162508f9326aea04676c8dfd0711220190d6b83664f3f"
dependencies = [
"bitmaps",
"rand_core 0.5.1",
"rand_xoshiro",
"rand_xoshiro 0.4.0",
"sized-chunks",
"typenum",
"version_check",
Expand Down Expand Up @@ -2256,7 +2256,7 @@ dependencies = [
"libc",
"log",
"measureme",
"rand 0.8.3",
"rand 0.8.4",
"rustc-workspace-hack",
"rustc_version",
"shell-escape",
Expand Down Expand Up @@ -2852,9 +2852,9 @@ dependencies = [

[[package]]
name = "rand"
version = "0.8.3"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e"
checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
dependencies = [
"libc",
"rand_chacha 0.3.0",
Expand Down Expand Up @@ -2945,6 +2945,15 @@ dependencies = [
"rand_core 0.5.1",
]

[[package]]
name = "rand_xoshiro"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa"
dependencies = [
"rand_core 0.6.2",
]

[[package]]
name = "rayon"
version = "1.3.1"
Expand Down Expand Up @@ -3706,6 +3715,7 @@ dependencies = [
"rustc_incremental",
"rustc_index",
"rustc_macros",
"rustc_metadata",
"rustc_middle",
"rustc_serialize",
"rustc_session",
Expand Down Expand Up @@ -4086,6 +4096,8 @@ dependencies = [
"either",
"gsgdt",
"polonius-engine",
"rand 0.8.4",
"rand_xoshiro 0.6.0",
"rustc-rayon-core",
"rustc_apfloat",
"rustc_arena",
Expand Down Expand Up @@ -5096,7 +5108,7 @@ checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22"
dependencies = [
"cfg-if 1.0.0",
"libc",
"rand 0.8.3",
"rand 0.8.4",
"redox_syscall",
"remove_dir_all",
"winapi",
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ members = [
exclude = [
"build",
"compiler/rustc_codegen_cranelift",
"compiler/rustc_codegen_gcc",
"src/test/rustdoc-gui",
# HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
"obj",
Expand Down
63 changes: 38 additions & 25 deletions compiler/rustc_ast_lowering/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1328,32 +1328,45 @@ impl<'hir> LoweringContext<'_, 'hir> {
// keep track of the Span info. Now, `add_implicitly_sized` in `AstConv` checks both param bounds and
// where clauses for `?Sized`.
for pred in &generics.where_clause.predicates {
if let WherePredicate::BoundPredicate(ref bound_pred) = *pred {
'next_bound: for bound in &bound_pred.bounds {
if let GenericBound::Trait(_, TraitBoundModifier::Maybe) = *bound {
// Check if the where clause type is a plain type parameter.
match self
.resolver
.get_partial_res(bound_pred.bounded_ty.id)
.map(|d| (d.base_res(), d.unresolved_segments()))
{
Some((Res::Def(DefKind::TyParam, def_id), 0))
if bound_pred.bound_generic_params.is_empty() =>
{
for param in &generics.params {
if def_id == self.resolver.local_def_id(param.id).to_def_id() {
continue 'next_bound;
}
}
}
_ => {}
}
self.diagnostic().span_err(
bound_pred.bounded_ty.span,
"`?Trait` bounds are only permitted at the \
point where a type parameter is declared",
);
let bound_pred = match *pred {
WherePredicate::BoundPredicate(ref bound_pred) => bound_pred,
_ => continue,
};
let compute_is_param = || {
// Check if the where clause type is a plain type parameter.
match self
.resolver
.get_partial_res(bound_pred.bounded_ty.id)
.map(|d| (d.base_res(), d.unresolved_segments()))
{
Some((Res::Def(DefKind::TyParam, def_id), 0))
if bound_pred.bound_generic_params.is_empty() =>
{
generics
.params
.iter()
.find(|p| def_id == self.resolver.local_def_id(p.id).to_def_id())
.is_some()
}
// Either the `bounded_ty` is not a plain type parameter, or
// it's not found in the generic type parameters list.
_ => false,
}
};
// We only need to compute this once per `WherePredicate`, but don't
// need to compute this at all unless there is a Maybe bound.
let mut is_param: Option<bool> = None;
for bound in &bound_pred.bounds {
if !matches!(*bound, GenericBound::Trait(_, TraitBoundModifier::Maybe)) {
continue;
}
let is_param = *is_param.get_or_insert_with(compute_is_param);
if !is_param {
self.diagnostic().span_err(
bound.span(),
"`?Trait` bounds are only permitted at the \
point where a type parameter is declared",
);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_ast_lowering/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ pub trait ResolverAstLowering {
fn legacy_const_generic_args(&mut self, expr: &Expr) -> Option<Vec<usize>>;

/// Obtains resolution for a `NodeId` with a single resolution.
fn get_partial_res(&mut self, id: NodeId) -> Option<PartialRes>;
fn get_partial_res(&self, id: NodeId) -> Option<PartialRes>;

/// Obtains per-namespace resolutions for `use` statement with the given `NodeId`.
fn get_import_res(&mut self, id: NodeId) -> PerNS<Option<Res<NodeId>>>;
Expand Down
Loading