Skip to content
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

Rollup of 7 pull requests #100974

Closed
wants to merge 148 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
0fed1a5
Enable raw-dylib for binaries
dpaoliello Jul 1, 2022
42dd106
Auto merge of #98989 - dpaoliello:rawdylibbin, r=michaelwoerister
bors Jul 26, 2022
1fb02e0
Auto merge of #99745 - JohnTitor:rollup-lvrie64, r=JohnTitor
bors Jul 26, 2022
a6260ec
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_…
bjorn3 Jul 26, 2022
72c69a8
Merge branch 'sync_from_rust'
bjorn3 Jul 26, 2022
e34bb03
Rustup to rustc 1.64.0-nightly (4d6d601c8 2022-07-26)
bjorn3 Jul 27, 2022
e0697a3
Move output argument from ArchiveBuilder::new to .build()
bjorn3 Jul 28, 2022
34b37e7
Inline inject_dll_import_lib
bjorn3 Jul 28, 2022
451817e
Introduce an ArchiveBuilderBuilder
bjorn3 Jul 28, 2022
49e7731
Update to cranelift 0.86 (#1250)
afonso360 Jul 28, 2022
6fd1660
Add Windows build artifacts to .gitignore
afonso360 Jul 29, 2022
3ce83dc
Move test.sh to y.rs test
afonso360 Jul 30, 2022
c115933
Run tests on windows CI
afonso360 Jul 30, 2022
d059935
Misc cleanups to the test runner
afonso360 Jul 30, 2022
437b441
Use get_file_name everywhere for better cross compilation support
afonso360 Jul 30, 2022
ae4fe1d
Use get_file_name in tests
afonso360 Jul 30, 2022
0244355
break out to one scope higher for let-else
dingxiangfei2009 Jul 30, 2022
aa2f407
Use Windows Env vars in CI
afonso360 Jul 30, 2022
8ec3d20
Fix test.regex test
afonso360 Jul 30, 2022
f8747f0
Fix aarch64 cross compilation
afonso360 Jul 30, 2022
3936134
Fix some cross compilation scenarios in test runner
afonso360 Jul 30, 2022
6ea108b
Split flags whitespace
afonso360 Jul 30, 2022
78372d6
Log cloned regex output
afonso360 Jul 30, 2022
bec651e
Compare lines iterator instead of full output
afonso360 Jul 30, 2022
2f13800
Cleanup meaningless changes
afonso360 Jul 30, 2022
5d79366
Don't run tests on Windows CI
afonso360 Jul 30, 2022
f588bfa
Assume host target in get_file_name
afonso360 Jul 30, 2022
d489fb9
Don't pass RUSTFLAGS to rustc in tests
afonso360 Jul 30, 2022
0db9094
Rustfmt
bjorn3 Jul 31, 2022
231f7c6
Merge pull request #1252 from afonso360/tests-rs
bjorn3 Jul 31, 2022
e262856
add test for earlier drop despite extend lifetime
dingxiangfei2009 Jul 31, 2022
8467a7b
provide a clearer explanation of scope breaking
dingxiangfei2009 Jul 31, 2022
46fa744
Disable JIT on windows
afonso360 Aug 1, 2022
8f5330e
Fix mini_core printf linking on windows
afonso360 Aug 1, 2022
e0fab63
Add windows support to mini_core tests
afonso360 Aug 1, 2022
c9bb519
Misc Cleanups
afonso360 Aug 1, 2022
0c5b61f
Merge pull request #1253 from afonso360/msvc-nosysroot
bjorn3 Aug 1, 2022
8c8fc6a
Use native cranelift instructions when lowering float intrinsics
afonso360 Aug 2, 2022
9e1aa9c
Merge pull request #1254 from afonso360/float-intrinsics-fix
bjorn3 Aug 4, 2022
012acdf
Update dependencies
bjorn3 Aug 5, 2022
41d5478
Re-introduce test.sh as convenience wrapper around ./y.rs test
bjorn3 Aug 5, 2022
e7bc81c
Disable incr comp globally on CI
bjorn3 Aug 5, 2022
3c97227
Fix previous commit
bjorn3 Aug 5, 2022
3bd9821
Initial ABI Checker support
afonso360 Aug 6, 2022
fb6362e
Test adding abi-checker to CI
afonso360 Aug 6, 2022
5693122
Add abi-checker to clean_all.sh
afonso360 Aug 6, 2022
e5ba71a
Pass all pairs to abi-checker
afonso360 Aug 6, 2022
7610be4
Move abi-checker to y.rs test
afonso360 Aug 6, 2022
8520535
make NOP dyn casts not require anything about the vtable
RalfJung Aug 6, 2022
1cde1a3
also update anyhow in codegen_cranelift
RalfJung Aug 8, 2022
7368f56
Sync from rust f03ce30962cf1b2a5158667eabae8bf6e8d1cb03
bjorn3 Aug 8, 2022
526553e
Rustup to rustc 1.65.0-nightly (d394408fb 2022-08-07)
bjorn3 Aug 8, 2022
fa6480e
Remove most trap functions and remove all trapnz usages
bjorn3 Aug 9, 2022
a7443a6
Move some code into codegen_fn_content
bjorn3 Aug 10, 2022
a10da0f
Split non-compile parts of codegen_fn out into a separate function
bjorn3 Aug 10, 2022
8a336a2
Move cached_context out of CodegenCx
bjorn3 Aug 10, 2022
07bcd11
Return ModuleCodegenResult from reuse_workproduct_for_cgu
bjorn3 Aug 11, 2022
c5adc96
Introduce OngoingCodegen type
bjorn3 Aug 11, 2022
7cc97eb
Extract global_asm module
bjorn3 Aug 12, 2022
066f844
Move some sess.fatal calls out of compile_global_asm
bjorn3 Aug 12, 2022
aca05cf
Fix alignment flag for emit_small_memory_copy
uweigand Aug 12, 2022
64c73d0
Merge pull request #1257 from uweigand/memcpy-align
bjorn3 Aug 12, 2022
48b312f
Don't take TyCtxt as argument for compile_global_asm
bjorn3 Aug 12, 2022
8bcab19
Ignore ptr_bitops_tagging test on s390x
uweigand Aug 12, 2022
e45f600
Remove the partial linking hack for global asm support
bjorn3 Aug 12, 2022
f76ca22
Enable inline asm on macOS
bjorn3 Aug 12, 2022
57818ce
Merge pull request #1260 from uweigand/s390x-ignore-aligntest
bjorn3 Aug 12, 2022
db7d8a8
Give fields of ModuleCodegenResult names
bjorn3 Aug 12, 2022
d3512b1
Don't attempt to do incr comp for the allocator shim
bjorn3 Aug 12, 2022
ab7c706
Move build_isa call into make_module
bjorn3 Aug 12, 2022
6206c4e
Stream object file to disk
bjorn3 Aug 12, 2022
c2f0b3a
Move copy to incr comp cache to codegen join phase
bjorn3 Aug 12, 2022
0706df5
Update abi-checker version
afonso360 Aug 12, 2022
69c6749
Disable some abi-checker tests
afonso360 Aug 12, 2022
8c407e0
Merge pull request #1255 from afonso360/abi-checker
bjorn3 Aug 13, 2022
484041c
Rename abi-checker patch (#1262)
afonso360 Aug 13, 2022
4c0766c
Move error reporting out of emit_cgu
bjorn3 Aug 13, 2022
9461fd2
Remove TyCtxt parameter from emit_cgu
bjorn3 Aug 13, 2022
523f0db
Merge pull request #1264 from bjorn3/parallel_comp_refactor
bjorn3 Aug 13, 2022
7b4cd17
Start uplifting `clippy::for_loops_over_fallibles`
WaffleLapkin Jul 17, 2022
810cf60
Use structured suggestions for `for_loop_over_fallibles` lint
WaffleLapkin Jul 18, 2022
b661157
`for_loop_over_fallibles`: Suggest removing `.next()`
WaffleLapkin Jul 24, 2022
7cf94ad
`for_loop_over_fallibles`: suggest `while let` loop
WaffleLapkin Jul 24, 2022
14b8f24
`for_loop_over_fallibles`: suggest using `?` in some cases
WaffleLapkin Jul 24, 2022
2bf213b
`for_loop_over_fallibles`: remove duplication from the message
WaffleLapkin Jul 24, 2022
5128140
Add a test for the `for_loop_over_fallibles` lint
WaffleLapkin Jul 24, 2022
34815a9
`for_loop_over_fallibles`: fix suggestion for "remove `.next()`" case
WaffleLapkin Jul 24, 2022
c4ab59e
`for_loop_over_fallibles`: don't use `MachineApplicable`
WaffleLapkin Jul 24, 2022
41fccb1
allow or avoid for loops over option in compiler and tests
WaffleLapkin Jul 26, 2022
86360f4
allow `for_loop_over_fallibles` in a `core` test
WaffleLapkin Jul 26, 2022
1662702
Work around new asm! usage in measureme
bjorn3 Aug 14, 2022
d7b8a65
Edit documentation for `for_loop_over_fallibles` lint
WaffleLapkin Aug 14, 2022
aed1ae4
remove an infinite loop
WaffleLapkin Aug 15, 2022
fd428c0
Sync from rust 6ce76091c7cef21692a15dce1f0a4c415d245be4
bjorn3 Aug 15, 2022
1cac888
Rustup to rustc 1.65.0-nightly (801821d15 2022-08-14)
bjorn3 Aug 15, 2022
701b274
Remove optimize_function
bjorn3 Aug 17, 2022
b181f2b
Replace instance param of write_clif_file with symbol_name
bjorn3 Aug 17, 2022
c820b7c
Remove TyCtxt field from CodegenCx
bjorn3 Aug 17, 2022
2079b4b
Use `stack_store` instead of `stack_addr`+`store` when building structs
afonso360 Aug 17, 2022
df1b251
Remove TyCtxt parameter from compile_fn
bjorn3 Aug 17, 2022
4dac65f
Merge pull request #1265 from afonso360/stack_store
bjorn3 Aug 17, 2022
71b8c89
fix `for_loop_over_fallibles` lint docs
WaffleLapkin Aug 18, 2022
5fc1366
Register debuginfo for lazy jit shim
bjorn3 Aug 18, 2022
a49416d
Remove stub local debuginfo implementation
bjorn3 Aug 18, 2022
e5493a5
Remove Instance param of DebugContext::define_function
bjorn3 Aug 18, 2022
259b21f
Remove TyCtxt from DebugContext
bjorn3 Aug 18, 2022
312563f
Use walk_chain for function span too
bjorn3 Aug 18, 2022
dbf5457
Introduce FunctionDebugContext
bjorn3 Aug 18, 2022
01be0dd
Move FunctionDebugContext creation to codegen_fn
bjorn3 Aug 18, 2022
1e57774
Move set_function_span earlier
bjorn3 Aug 18, 2022
0534a55
Make line_program_add_file a DebugContext method
bjorn3 Aug 18, 2022
6421427
Move Span lowering from debuginfo finalization to codegen
bjorn3 Aug 18, 2022
535c6dd
Small cleanup
bjorn3 Aug 18, 2022
ee65a10
Rollup merge of #100208 - RalfJung:dyn-upcast-nop, r=petrochenkov
Dylan-DPC Aug 19, 2022
7dc8f38
Merge pull request #1266 from bjorn3/parallel_comp_refactor2
bjorn3 Aug 19, 2022
bd1ab72
Replace most uses of `pointer::offset` with `add` and `sub`
WaffleLapkin Aug 19, 2022
5a9b116
Rollup merge of #100822 - WaffleLapkin:no_offset_question_mark, r=sco…
matthiaskrgr Aug 21, 2022
b14c733
Update to Cranelift 0.87.0
bjorn3 Aug 22, 2022
351acc8
parser will not give wrong help message for 'public'
chenyukang Aug 23, 2022
156bda8
Avoid masking shift amounts (#1268)
afonso360 Aug 23, 2022
48c45c4
Use native scalar `fma` instruction (#1267)
afonso360 Aug 23, 2022
b1e9d2e
Revert "Avoid masking shift amounts (#1268)"
bjorn3 Aug 23, 2022
5896e5c
Store symbol name as owned string
bjorn3 Aug 19, 2022
1a0dfb3
Add a jobserver based concurrency limiter
bjorn3 Aug 23, 2022
f9d60cf
Do asm compilation and object file emission in parallel
bjorn3 Aug 23, 2022
1a63233
Use correct CguReuse variant
bjorn3 Aug 23, 2022
d081c20
Compile functions from clif ir to object code in parallel
bjorn3 Aug 23, 2022
5b41956
Add some self profiler calls
bjorn3 Aug 23, 2022
f71c545
Make sure to count reused cgus towards the count of jobs done
bjorn3 Aug 23, 2022
9b95eef
save_analysis: Migrate diagnostics
wonchulee Aug 19, 2022
c18503f
errors: `IntoDiagnosticArg` for `io::Error`/paths
davidtwco Aug 19, 2022
31e3944
Stabilize `#![feature(label_break_value)]`
jyn514 Jul 14, 2022
293223d
Tune drop_excess_capacity
bjorn3 Aug 24, 2022
072fd2b
Add fixme
bjorn3 Aug 24, 2022
ee8f8bf
Merge pull request #1271 from bjorn3/parallel_comp_support
bjorn3 Aug 24, 2022
ad1d993
Sync from rust 4a24f08ba43166cfee86d868b3fe8612aec6faca
bjorn3 Aug 24, 2022
e9d1a0a
Rustup to rustc 1.65.0-nightly (060e47f74 2022-08-23)
bjorn3 Aug 24, 2022
7b9c8c8
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_…
bjorn3 Aug 24, 2022
716101c
Add new allowed deps
bjorn3 Aug 24, 2022
e62e1d4
Rustfmt
bjorn3 Aug 24, 2022
5bac3d7
rustdoc: ayu code color selector more specific
notriddle Aug 24, 2022
bf3fc63
Rollup merge of #99332 - jyn514:stabilize-label-break-value, r=petroc…
JohnTitor Aug 24, 2022
ec74ca0
Rollup merge of #99696 - WaffleLapkin:uplift, r=fee1-dead
JohnTitor Aug 24, 2022
3d5e1d7
Rollup merge of #99954 - dingxiangfei2009:break-out-let-else-higher-u…
JohnTitor Aug 24, 2022
e21c1e4
Rollup merge of #100188 - chenyukang:fix-issue-100165, r=estebank
JohnTitor Aug 24, 2022
d0b2295
Rollup merge of #100780 - wonchulee:translation_save_analysis, r=davi…
JohnTitor Aug 24, 2022
688bdbd
Rollup merge of #100960 - rust-lang:notriddle/ayu-span-code, r=Guilla…
JohnTitor Aug 24, 2022
9a87fb4
Rollup merge of #100964 - bjorn3:sync_cg_clif-2022-08-24, r=bjorn3
JohnTitor Aug 24, 2022
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
2 changes: 2 additions & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4421,9 +4421,11 @@ dependencies = [
"rustc_ast",
"rustc_ast_pretty",
"rustc_data_structures",
"rustc_errors",
"rustc_hir",
"rustc_hir_pretty",
"rustc_lexer",
"rustc_macros",
"rustc_middle",
"rustc_session",
"rustc_span",
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_ast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#![feature(const_default_impls)]
#![feature(const_trait_impl)]
#![feature(if_let_guard)]
#![feature(label_break_value)]
#![cfg_attr(bootstrap, feature(label_break_value))]
#![feature(min_specialization)]
#![feature(negative_impls)]
#![feature(slice_internals)]
Expand Down
14 changes: 6 additions & 8 deletions compiler/rustc_ast/src/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,14 +244,12 @@ pub trait Visitor<'ast>: Sized {

#[macro_export]
macro_rules! walk_list {
($visitor: expr, $method: ident, $list: expr) => {
for elem in $list {
$visitor.$method(elem)
}
};
($visitor: expr, $method: ident, $list: expr, $($extra_args: expr),*) => {
for elem in $list {
$visitor.$method(elem, $($extra_args,)*)
($visitor: expr, $method: ident, $list: expr $(, $($extra_args: expr),* )?) => {
{
#[cfg_attr(not(bootstrap), allow(for_loop_over_fallibles))]
for elem in $list {
$visitor.$method(elem $(, $($extra_args,)* )?)
}
}
}
}
Expand Down
9 changes: 0 additions & 9 deletions compiler/rustc_ast_passes/src/feature_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,14 +647,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
ast::ExprKind::TryBlock(_) => {
gate_feature_post!(&self, try_blocks, e.span, "`try` expression is experimental");
}
ast::ExprKind::Block(_, Some(label)) => {
gate_feature_post!(
&self,
label_break_value,
label.ident.span,
"labels on blocks are unstable"
);
}
_ => {}
}
visit::walk_expr(self, e)
Expand Down Expand Up @@ -823,7 +815,6 @@ pub fn check_crate(krate: &ast::Crate, sess: &Session) {
gate_all!(box_patterns, "box pattern syntax is experimental");
gate_all!(exclusive_range_pattern, "exclusive range pattern syntax is experimental");
gate_all!(try_blocks, "`try` blocks are unstable");
gate_all!(label_break_value, "labels on blocks are unstable");
gate_all!(box_syntax, "box expression syntax is experimental; you can call `Box::new` instead");
gate_all!(type_ascription, "type ascription is experimental");

Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_borrowck/src/type_check/input_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {

debug!("{:?} normalized to {:?}", t, norm_ty);

for data in constraints {
if let Some(data) = constraints {
ConstraintConversion::new(
self.infcx,
&self.borrowck_context.universal_regions,
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_cranelift/.cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ task:
- # Reduce amount of benchmark runs as they are slow
- export COMPILE_RUNS=2
- export RUN_RUNS=2
- ./test.sh
- ./y.rs test
10 changes: 5 additions & 5 deletions compiler/rustc_codegen_cranelift/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
# Enable extra checks
export CG_CLIF_ENABLE_VERIFIER=1

./test.sh
./y.rs test

- name: Package prebuilt cg_clif
run: tar cvfJ cg_clif.tar.xz build
Expand Down Expand Up @@ -162,14 +162,14 @@ jobs:
#name: Test
run: |
# Enable backtraces for easier debugging
#export RUST_BACKTRACE=1
#$Env:RUST_BACKTRACE=1

# Reduce amount of benchmark runs as they are slow
#export COMPILE_RUNS=2
#export RUN_RUNS=2
#$Env:COMPILE_RUNS=2
#$Env:RUN_RUNS=2

# Enable extra checks
#export CG_CLIF_ENABLE_VERIFIER=1
#$Env:CG_CLIF_ENABLE_VERIFIER=1

./y.exe build

Expand Down
3 changes: 3 additions & 0 deletions compiler/rustc_codegen_cranelift/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ perf.data.old
*.string*
/y.bin
/y.bin.dSYM
/y.exe
/y.pdb
/build
/build_sysroot/sysroot_src
/build_sysroot/compiler-builtins
Expand All @@ -17,3 +19,4 @@ perf.data.old
/regex
/simple-raytracer
/portable-simd
/abi-checker
Loading