]> git.lizzy.rs Git - rust.git/log
rust.git
2 years agoUpdate to latest portable-simd version
bjorn3 [Thu, 18 Nov 2021 18:30:28 +0000 (19:30 +0100)]
Update to latest portable-simd version

2 years agoImplement simd_reduce_{min,max} for floats
bjorn3 [Thu, 18 Nov 2021 18:27:49 +0000 (19:27 +0100)]
Implement simd_reduce_{min,max} for floats

2 years agoImplement new simd_shuffle signature
bjorn3 [Thu, 18 Nov 2021 18:27:32 +0000 (19:27 +0100)]
Implement new simd_shuffle signature

2 years agoRustup to rustc 1.58.0-nightly (d914f17ca 2021-11-16)
bjorn3 [Wed, 17 Nov 2021 20:01:35 +0000 (21:01 +0100)]
Rustup to rustc 1.58.0-nightly (d914f17ca 2021-11-16)

2 years agoUse crates.io releases of Cranelift
bjorn3 [Fri, 29 Oct 2021 14:22:45 +0000 (16:22 +0200)]
Use crates.io releases of Cranelift

I originally switched the Cranelift dependencies to use git as cg_clif
required a lot of new Cranelift features. With crates.io dependencies I
would have to wait for a new release every time. With git dependencies I
could start using the new features as soon as they were merged.
Currently there aren't a lot of new Cranelift features necessary anymore
and those that are useful are no longer blocking compilation of lots of
crates. There was some concern expressed about using git dependencies in
the main rust repo, so all together I think it is best to switch to
crates.io releases and if necessary wait a bit before merging changes
requiring newer Cranelift commits.

2 years agoRevert libc update
bjorn3 [Wed, 27 Oct 2021 14:44:51 +0000 (16:44 +0200)]
Revert libc update

It causes the macOS CI to fail. See rust-lang/libc#2484

2 years agoDisable rustc test requiring rustdoc
bjorn3 [Wed, 27 Oct 2021 12:37:57 +0000 (14:37 +0200)]
Disable rustc test requiring rustdoc

2 years agoRustup to rustc 1.58.0-nightly (e269e6bf4 2021-10-26)
bjorn3 [Wed, 27 Oct 2021 12:17:26 +0000 (14:17 +0200)]
Rustup to rustc 1.58.0-nightly (e269e6bf4 2021-10-26)

2 years agoSync from rust 47aeac648ed56095688c1c20972c9b72bd0da7ce
bjorn3 [Wed, 27 Oct 2021 12:05:12 +0000 (14:05 +0200)]
Sync from rust 47aeac648ed56095688c1c20972c9b72bd0da7ce

2 years agoRemove unncesessary TryFrom and TryInto impls
bjorn3 [Thu, 21 Oct 2021 18:18:01 +0000 (20:18 +0200)]
Remove unncesessary TryFrom and TryInto impls

2 years agoUpdate Cranelift and object
bjorn3 [Thu, 21 Oct 2021 13:19:38 +0000 (15:19 +0200)]
Update Cranelift and object

2 years agoMake hash_result an Option.
Camille GILLOT [Sat, 16 Oct 2021 20:31:48 +0000 (22:31 +0200)]
Make hash_result an Option.

2 years agoRemove unnecessary Lazy
bjorn3 [Sun, 17 Oct 2021 20:42:19 +0000 (22:42 +0200)]
Remove unnecessary Lazy

Found by m-ou-se in https://github.com/bjorn3/rustc_codegen_cranelift/pull/1166#discussion_r730468919

2 years agoDisable a failing test
bjorn3 [Sun, 17 Oct 2021 15:05:00 +0000 (17:05 +0200)]
Disable a failing test

2 years agoRe-enable incremental compilation for the sysroot
bjorn3 [Sun, 17 Oct 2021 13:29:57 +0000 (15:29 +0200)]
Re-enable incremental compilation for the sysroot

rust-lang/rust#74946 for fixed

2 years agoRemove alloc::prelude
Amanieu d'Antras [Thu, 14 Oct 2021 23:41:31 +0000 (01:41 +0200)]
Remove alloc::prelude

As per the libs team decision in #58935.

Closes #58935

2 years agoUpdate Cranelift
bjorn3 [Wed, 13 Oct 2021 14:59:59 +0000 (16:59 +0200)]
Update Cranelift

2 years agoUpdate Cranelift
bjorn3 [Tue, 12 Oct 2021 12:47:57 +0000 (14:47 +0200)]
Update Cranelift

2 years agoAdd const_eval_select intrinsic
Deadbeef [Tue, 12 Oct 2021 05:06:37 +0000 (05:06 +0000)]
Add const_eval_select intrinsic

2 years agoRustup to rustc 1.57.0-nightly (54bb4fec6 2021-10-08)
bjorn3 [Sat, 9 Oct 2021 13:16:19 +0000 (15:16 +0200)]
Rustup to rustc 1.57.0-nightly (54bb4fec6 2021-10-08)

2 years agoSync from rust bb918d0a5bf22211df0423f7474e4e4056978007
bjorn3 [Sat, 9 Oct 2021 13:02:14 +0000 (15:02 +0200)]
Sync from rust bb918d0a5bf22211df0423f7474e4e4056978007

2 years agoAuto merge of #89619 - michaelwoerister:incr-vtables, r=nagisa
bors [Fri, 8 Oct 2021 09:04:06 +0000 (09:04 +0000)]
Auto merge of #89619 - michaelwoerister:incr-vtables, r=nagisa

Turn vtable_allocation() into a query

This PR removes the untracked vtable-const-allocation cache from the `tcx` and turns the `vtable_allocation()` method into a query.

The change is pretty straightforward and should be backportable without too much effort.

Fixes https://github.com/rust-lang/rust/issues/89598.

2 years agoTurn tcx.vtable_allocation() into a query.
Michael Woerister [Thu, 7 Oct 2021 09:29:01 +0000 (11:29 +0200)]
Turn tcx.vtable_allocation() into a query.

2 years agoMove rustc_middle::middle::cstore to rustc_session.
Camille GILLOT [Sat, 14 Nov 2020 02:02:03 +0000 (03:02 +0100)]
Move rustc_middle::middle::cstore to rustc_session.

2 years agoRustfmt
bjorn3 [Sat, 2 Oct 2021 12:51:08 +0000 (14:51 +0200)]
Rustfmt

2 years agoRustup to rustc 1.57.0-nightly (c02371c44 2021-10-01)
bjorn3 [Sat, 2 Oct 2021 12:50:15 +0000 (14:50 +0200)]
Rustup to rustc 1.57.0-nightly (c02371c44 2021-10-01)

2 years agoSync from rust a8387aef8c378a771686878062e544af4d5e2245
bjorn3 [Sat, 2 Oct 2021 12:42:18 +0000 (14:42 +0200)]
Sync from rust a8387aef8c378a771686878062e544af4d5e2245

2 years agoUpdate Cranelift
bjorn3 [Fri, 1 Oct 2021 13:37:48 +0000 (15:37 +0200)]
Update Cranelift

This version no longer has the old x86 backend

2 years agoUpdate compiler/rustc_codegen_cranelift/scripts/filter_profile.rs
Camille Gillot [Tue, 28 Sep 2021 18:49:57 +0000 (20:49 +0200)]
Update compiler/rustc_codegen_cranelift/scripts/filter_profile.rs

Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
2 years agoMove EncodedMetadata to rustc_metadata.
Camille GILLOT [Fri, 24 Sep 2021 16:15:36 +0000 (18:15 +0200)]
Move EncodedMetadata to rustc_metadata.

2 years agoMove encode_metadata out of CrateStore.
Camille GILLOT [Sat, 14 Nov 2020 00:59:00 +0000 (01:59 +0100)]
Move encode_metadata out of CrateStore.

2 years agoUpdate dependencies
bjorn3 [Thu, 30 Sep 2021 13:22:19 +0000 (15:22 +0200)]
Update dependencies

2 years agoUpdate Cranelift
bjorn3 [Thu, 30 Sep 2021 13:17:43 +0000 (15:17 +0200)]
Update Cranelift

2 years agoFix unused import warning
bjorn3 [Mon, 27 Sep 2021 09:20:04 +0000 (11:20 +0200)]
Fix unused import warning

TryInto is part of the 2021 edition prelude

2 years agoRustup to rustc 1.57.0-nightly (05044c2e6 2021-09-26)
bjorn3 [Mon, 27 Sep 2021 09:17:24 +0000 (11:17 +0200)]
Rustup to rustc 1.57.0-nightly (05044c2e6 2021-09-26)

2 years agoSync from rust 04006d8e3b5043131ec56a5f3605b1edcb33194d
bjorn3 [Mon, 27 Sep 2021 09:11:18 +0000 (11:11 +0200)]
Sync from rust 04006d8e3b5043131ec56a5f3605b1edcb33194d

2 years agoAuto merge of #89092 - bjorn3:sync_cg_clif-2021-09-19, r=bjorn3
bors [Sun, 26 Sep 2021 23:31:01 +0000 (23:31 +0000)]
Auto merge of #89092 - bjorn3:sync_cg_clif-2021-09-19, r=bjorn3

Sync rustc_codegen_cranelift

Nothing exciting this time. Mostly internal refactorings.

r? `@ghost`

`@rustbot` label +A-codegen +A-cranelift +T-compiler

2 years agoIntroduce `Rvalue::ShallowInitBox`
Gary Guo [Mon, 6 Sep 2021 17:33:23 +0000 (18:33 +0100)]
Introduce `Rvalue::ShallowInitBox`

2 years agoMigrate to 2021
Mark Rousskov [Sun, 19 Sep 2021 16:49:55 +0000 (12:49 -0400)]
Migrate to 2021

2 years agoAdjust to SourceType::InTree in several places
Mark Rousskov [Sun, 19 Sep 2021 14:36:17 +0000 (10:36 -0400)]
Adjust to SourceType::InTree in several places

These were left over in migrations to subtrees, which should generally be treated
as-if it was local.

Also fixes a warning caused by this change.

2 years agoMerge branch 'sync_from_rust'
bjorn3 [Sun, 19 Sep 2021 11:58:19 +0000 (13:58 +0200)]
Merge branch 'sync_from_rust'

2 years agoMerge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19
bjorn3 [Sun, 19 Sep 2021 11:56:58 +0000 (13:56 +0200)]
Merge commit '61667dedf55e3e5aa584f7ae2bd0471336b92ce9' into sync_cg_clif-2021-09-19

2 years agoRustup to rustc 1.57.0-nightly (aa8f2d432 2021-09-18)
bjorn3 [Sun, 19 Sep 2021 11:53:32 +0000 (13:53 +0200)]
Rustup to rustc 1.57.0-nightly (aa8f2d432 2021-09-18)

2 years agoSync from rust 7a3d1a5f3dfeaf5177885fedd7db8ecc70670dc1
bjorn3 [Sun, 19 Sep 2021 11:43:54 +0000 (13:43 +0200)]
Sync from rust 7a3d1a5f3dfeaf5177885fedd7db8ecc70670dc1

2 years agoQuerify `fn_abi_of_{fn_ptr,instance}`.
Eduard-Mihai Burtescu [Wed, 1 Sep 2021 21:29:15 +0000 (00:29 +0300)]
Querify `fn_abi_of_{fn_ptr,instance}`.

2 years agoty::layout: replicate `layout_of` setup for `fn_abi_of_{fn_ptr,instance}`.
Eduard-Mihai Burtescu [Wed, 1 Sep 2021 21:09:34 +0000 (00:09 +0300)]
ty::layout: replicate `layout_of` setup for `fn_abi_of_{fn_ptr,instance}`.

2 years agoty::layout: intern `FnAbi`s as `&'tcx`.
Eduard-Mihai Burtescu [Thu, 26 Aug 2021 18:58:34 +0000 (21:58 +0300)]
ty::layout: intern `FnAbi`s as `&'tcx`.

2 years agoAuto merge of #88839 - nbdd0121:alignof, r=nagisa
bors [Sun, 12 Sep 2021 23:49:24 +0000 (23:49 +0000)]
Auto merge of #88839 - nbdd0121:alignof, r=nagisa

Introduce NullOp::AlignOf

This PR introduces `Rvalue::NullaryOp(NullOp::AlignOf, ty)`, which will be lowered from `align_of`, similar to `size_of` lowering to `Rvalue::NullaryOp(NullOp::SizeOf, ty)`.

The changes are originally part of #88700 but since it's not dependent on other changes and could have performance impact on its own, it's separated into its own PR.

2 years agoIntroduce NullOp::AlignOf
Gary Guo [Tue, 7 Sep 2021 15:06:07 +0000 (16:06 +0100)]
Introduce NullOp::AlignOf

2 years agoRe-enable portable simd testing
bjorn3 [Sun, 12 Sep 2021 18:27:50 +0000 (20:27 +0200)]
Re-enable portable simd testing

2 years agoRustup to rustc 1.57.0-nightly (8c2b6ea37 2021-09-11)
bjorn3 [Sun, 12 Sep 2021 17:40:01 +0000 (19:40 +0200)]
Rustup to rustc 1.57.0-nightly (8c2b6ea37 2021-09-11)

2 years agoSync from rust c7dbe7a830100c70d59994fd940bf75bb6e39b39
bjorn3 [Sun, 12 Sep 2021 17:25:17 +0000 (19:25 +0200)]
Sync from rust c7dbe7a830100c70d59994fd940bf75bb6e39b39

2 years agoMake `abi::Abi` `Copy` and remove a *lot* of refs
Andreas Liljeqvist [Sun, 29 Aug 2021 09:06:55 +0000 (11:06 +0200)]
Make `abi::Abi` `Copy` and remove a *lot* of refs

fix

fix

Remove more refs and clones

fix

more

fix

2 years agoAvoid unnecessary duplicate metadata encoding
bjorn3 [Wed, 8 Sep 2021 16:54:48 +0000 (18:54 +0200)]
Avoid unnecessary duplicate metadata encoding

2 years agoAdd portable-simd to .gitignore
bjorn3 [Tue, 7 Sep 2021 18:45:58 +0000 (20:45 +0200)]
Add portable-simd to .gitignore

2 years agoRustup to rustc 1.57.0-nightly (1698e3cac 2021-09-06)
bjorn3 [Tue, 7 Sep 2021 18:45:28 +0000 (20:45 +0200)]
Rustup to rustc 1.57.0-nightly (1698e3cac 2021-09-06)

2 years agoSync from rust 73641cd23ba470c6b4dcd72b8d5f62d27c735254
bjorn3 [Tue, 7 Sep 2021 18:45:09 +0000 (20:45 +0200)]
Sync from rust 73641cd23ba470c6b4dcd72b8d5f62d27c735254

2 years agoMove the dataflow framework to its own crate.
Camille GILLOT [Tue, 5 Jan 2021 18:53:07 +0000 (19:53 +0100)]
Move the dataflow framework to its own crate.

2 years agoMove monomorphize code to its own crate.
Camille GILLOT [Sat, 2 Jan 2021 13:42:15 +0000 (14:42 +0100)]
Move monomorphize code to its own crate.

2 years agoAuto merge of #88499 - eddyb:layout-off, r=nagisa
bors [Sun, 5 Sep 2021 16:14:41 +0000 (16:14 +0000)]
Auto merge of #88499 - eddyb:layout-off, r=nagisa

Provide `layout_of` automatically (given tcx + param_env + error handling).

After #88337, there's no longer any uses of `LayoutOf` within `rustc_target` itself, so I realized I could move the trait to `rustc_middle::ty::layout` and redesign it a bit.

This is similar to #88338 (and supersedes it), but at no ergonomic loss, since there's no funky `C: LayoutOf<Ty = Ty>` -> `Ty: TyAbiInterface<C>` generic `impl` chain, and each `LayoutOf` still corresponds to one `impl` (of `LayoutOfHelpers`) for the specific context.

After this PR, this is what's needed to get `trait LayoutOf` (with the `layout_of` method) implemented on some context type:
* `TyCtxt`, via `HasTyCtxt`
* `ParamEnv`, via `HasParamEnv`
* a way to transform `LayoutError`s into the desired error type
  * an error type of `!` can be paired with having `cx.layout_of(...)` return `TyAndLayout` *without* `Result<...>` around it, such as used by codegen
  * this is done through a new `LayoutOfHelpers` trait (and so is specifying the type of `cx.layout_of(...)`)

When going through this path (and not bypassing it with a manual `impl` of `LayoutOf`), the end result is that only the error case can be customized, the query itself and the success paths are guaranteed to be uniform.

(**EDIT**: just noticed that because of the supertrait relationship, you cannot actually implement `LayoutOf` yourself, the blanket `impl` fully covers all possible context types that could ever implement it)

Part of the motivation for this shape of API is that I've been working on querifying `FnAbi::of_*`, and what I want/need to introduce for that looks a lot like the setup in this PR - in particular, it's harder to express the `FnAbi` methods in `rustc_target`, since they're much more tied to `rustc` concepts.

r? `@nagisa` cc `@oli-obk` `@bjorn3`

2 years agoAuto merge of #88559 - bjorn3:archive_logic_dedup, r=cjgillot
bors [Sun, 5 Sep 2021 04:37:12 +0000 (04:37 +0000)]
Auto merge of #88559 - bjorn3:archive_logic_dedup, r=cjgillot

Move add_rlib and add_native_library to cg_ssa

This deduplicates logic between codegen backends.

cc `@antoyo` and `@khyperia` for cg_gcc and rust-gpu.

2 years agoAuto merge of #88363 - michaelwoerister:remapped-diagnostics, r=estebank
bors [Fri, 3 Sep 2021 00:23:10 +0000 (00:23 +0000)]
Auto merge of #88363 - michaelwoerister:remapped-diagnostics, r=estebank

Path remapping: Make behavior of diagnostics output dependent on presence of --remap-path-prefix.

This PR fixes a regression (#87745) with `--remap-path-prefix` where the flag stopped causing diagnostic messages to be remapped as well. The regression was introduced in https://github.com/rust-lang/rust/pull/83813 where we erroneously assumed that remapping of diagnostic messages was not desired anymore (because #70642 partially undid that functionality with nobody objecting).

The issue is fixed by making `--remap-path-prefix` remap diagnostic messages again, including for paths that have been remapped in upstream crates (e.g. the standard library). This means that "sysroot-localization" (implemented in #70642) is also disabled if `rustc` is invoked with `--remap-path-prefix`. The assumption is that once someone starts explicitly remapping paths they also don't want paths to their local Rust installation in their build output.

In the future we might want to give more fine-grained control over this behavior via compiler flags (see https://github.com/rust-lang/rfcs/pull/3127 for a related RFC). For now this PR is intended as a regression fix.

This PR is an alternative to https://github.com/rust-lang/rust/pull/88191, which makes diagnostic messages be remapped unconditionally. That approach, however, would effectively revert #70642.

Fixes https://github.com/rust-lang/rust/issues/87745.

cc `@cbeuw`
r? `@ghost`

2 years agoUse in_incr_comp_dir_sess in cg_clif
bjorn3 [Mon, 30 Aug 2021 13:06:56 +0000 (15:06 +0200)]
Use in_incr_comp_dir_sess in cg_clif

2 years agoty::layout: split `LayoutOf` into required and (blanket) provided halves.
Eduard-Mihai Burtescu [Mon, 30 Aug 2021 17:37:36 +0000 (20:37 +0300)]
ty::layout: split `LayoutOf` into required and (blanket) provided halves.

2 years agoty::layout: implement `layout_of` automatically as a default method.
Eduard-Mihai Burtescu [Mon, 30 Aug 2021 15:01:58 +0000 (18:01 +0300)]
ty::layout: implement `layout_of` automatically as a default method.

2 years agorustc_target: move `LayoutOf` to `ty::layout`.
Eduard-Mihai Burtescu [Mon, 30 Aug 2021 14:38:27 +0000 (17:38 +0300)]
rustc_target: move `LayoutOf` to `ty::layout`.

2 years agoUpdate clean_all.sh for the rename of stdsimd to portable-simd
bjorn3 [Wed, 1 Sep 2021 15:21:50 +0000 (17:21 +0200)]
Update clean_all.sh for the rename of stdsimd to portable-simd

2 years agoDisable protable-simd tests
bjorn3 [Wed, 1 Sep 2021 13:06:25 +0000 (15:06 +0200)]
Disable protable-simd tests

Portable-simd doesn't compile on latest nightly

2 years agoUpdate protable-simd
bjorn3 [Wed, 1 Sep 2021 13:05:03 +0000 (15:05 +0200)]
Update protable-simd

2 years agoMove add_rlib and add_native_library to cg_ssa
bjorn3 [Wed, 1 Sep 2021 12:38:37 +0000 (14:38 +0200)]
Move add_rlib and add_native_library to cg_ssa

This deduplicates logic between codegen backends

2 years agoRustup to rustc 1.56.0-nightly (29ef6cf16 2021-08-31)
bjorn3 [Wed, 1 Sep 2021 12:21:36 +0000 (14:21 +0200)]
Rustup to rustc 1.56.0-nightly (29ef6cf16 2021-08-31)

2 years agoSync from rust 3ed6c1d23fd40f4367259a531465e809eb00ec27
bjorn3 [Wed, 1 Sep 2021 12:00:09 +0000 (14:00 +0200)]
Sync from rust 3ed6c1d23fd40f4367259a531465e809eb00ec27

2 years agorustc_target: `TyAndLayout::field` should never error.
Eduard-Mihai Burtescu [Wed, 25 Aug 2021 15:05:10 +0000 (18:05 +0300)]
rustc_target: `TyAndLayout::field` should never error.

2 years agoRemove unnecessary feature gates
bjorn3 [Fri, 27 Aug 2021 13:17:17 +0000 (15:17 +0200)]
Remove unnecessary feature gates

One wasn't necessary anymore at all. Others are only necessary when jit mode is enabled.

2 years agoEnable some warnings
bjorn3 [Fri, 27 Aug 2021 12:04:00 +0000 (14:04 +0200)]
Enable some warnings

2 years agorustc_target: add lifetime parameter to `LayoutOf`.
Eduard-Mihai Burtescu [Wed, 25 Aug 2021 11:51:22 +0000 (14:51 +0300)]
rustc_target: add lifetime parameter to `LayoutOf`.

2 years agoPath remapping: Make behavior of diagnostics output dependent on presence of --remap...
Michael Woerister [Thu, 26 Aug 2021 10:46:01 +0000 (12:46 +0200)]
Path remapping: Make behavior of diagnostics output dependent on presence of --remap-path-prefix.

2 years agomake unevaluated const substs optional
lcnr [Mon, 15 Mar 2021 23:05:45 +0000 (00:05 +0100)]
make unevaluated const substs optional

2 years agoFilter out tests marked with needs-asm-support
bjorn3 [Wed, 25 Aug 2021 13:17:34 +0000 (15:17 +0200)]
Filter out tests marked with needs-asm-support

2 years agoUpdate patches/0027-sysroot-128bit-atomic-operations.patch
bjorn3 [Wed, 25 Aug 2021 11:46:15 +0000 (13:46 +0200)]
Update patches/0027-sysroot-128bit-atomic-operations.patch

2 years agoRustup to rustc 1.56.0-nightly (b03ccace5 2021-08-24)
bjorn3 [Wed, 25 Aug 2021 11:12:40 +0000 (13:12 +0200)]
Rustup to rustc 1.56.0-nightly (b03ccace5 2021-08-24)

2 years agoSync from rust 9863bf51a52b8e61bcad312f81b5193d53099f9f
bjorn3 [Wed, 25 Aug 2021 11:05:20 +0000 (13:05 +0200)]
Sync from rust 9863bf51a52b8e61bcad312f81b5193d53099f9f

2 years agoAuto merge of #88135 - crlf0710:trait_upcasting_part_3, r=nikomatsakis
bors [Sat, 21 Aug 2021 21:14:07 +0000 (21:14 +0000)]
Auto merge of #88135 - crlf0710:trait_upcasting_part_3, r=nikomatsakis

Trait upcasting coercion (part 3)

By using separate candidates for each possible choice, this fixes type-checking issues in previous commits.

r? `@nikomatsakis`

2 years agoMove all code out of backend.rs
bjorn3 [Fri, 20 Aug 2021 19:43:53 +0000 (21:43 +0200)]
Move all code out of backend.rs

2 years agoMake {Debug,Unwind}Context::emit non-generic
bjorn3 [Fri, 20 Aug 2021 19:38:50 +0000 (21:38 +0200)]
Make {Debug,Unwind}Context::emit non-generic

2 years agoMove Object creation into metadata.rs
bjorn3 [Fri, 20 Aug 2021 19:38:17 +0000 (21:38 +0200)]
Move Object creation into metadata.rs

2 years agoAdd more architectures to with_object
bjorn3 [Fri, 20 Aug 2021 19:32:04 +0000 (21:32 +0200)]
Add more architectures to with_object

2 years agoRevert "Remove unnecessary bailout in clif_pair_type_from_ty"
bjorn3 [Fri, 20 Aug 2021 17:58:38 +0000 (19:58 +0200)]
Revert "Remove unnecessary bailout in clif_pair_type_from_ty"

This reverts commit 3b22c3a8ec7cc7a66b472c82edc972a3d1fb4410.

Seems to be necessary after all. At least when compiling regex.

2 years agoRemove unnecessary bailout in clif_pair_type_from_ty
bjorn3 [Fri, 20 Aug 2021 17:30:16 +0000 (19:30 +0200)]
Remove unnecessary bailout in clif_pair_type_from_ty

2 years agoRustup to rustc 1.56.0-nightly (6d64f7f69 2021-08-19)
bjorn3 [Fri, 20 Aug 2021 14:15:52 +0000 (16:15 +0200)]
Rustup to rustc 1.56.0-nightly (6d64f7f69 2021-08-19)

2 years agoSync from rust 9ccf661694423895b02e513c69e6ad263b2f3d8e
bjorn3 [Fri, 20 Aug 2021 13:06:07 +0000 (15:06 +0200)]
Sync from rust 9ccf661694423895b02e513c69e6ad263b2f3d8e

2 years agoremove box_syntax uses from cranelift and tools
Marcel Hellwig [Fri, 6 Aug 2021 15:14:27 +0000 (17:14 +0200)]
remove box_syntax uses from cranelift and tools

2 years agoFold `vtable_trait_upcasting_coercion_new_vptr_slot` logic into obligation processing.
Charles Lew [Wed, 18 Aug 2021 04:45:18 +0000 (12:45 +0800)]
Fold `vtable_trait_upcasting_coercion_new_vptr_slot` logic into obligation processing.

2 years agoUpdate rustc_codegen_cratelift for working_dir change
Aaron Hill [Thu, 12 Aug 2021 21:46:58 +0000 (16:46 -0500)]
Update rustc_codegen_cratelift for working_dir change

2 years agoImplement `black_box` using intrinsic
Gary Guo [Tue, 10 Aug 2021 10:50:33 +0000 (11:50 +0100)]
Implement `black_box` using intrinsic

The new implementation allows some `memcpy`s to be optimized away,
so the uninit value in ui/sanitize/memory.rs is constructed directly
onto the return place. Therefore the sanitizer now says that the
value is allocated by `main` rather than `random`.

2 years agoAvoid an unnecessary allocation
bjorn3 [Sat, 7 Aug 2021 12:28:28 +0000 (14:28 +0200)]
Avoid an unnecessary allocation

2 years agoAvoid converting filenames into strings where possible
bjorn3 [Sat, 7 Aug 2021 12:28:07 +0000 (14:28 +0200)]
Avoid converting filenames into strings where possible

2 years agoUse the object crate for archive reading during archive building
bjorn3 [Sat, 7 Aug 2021 12:11:54 +0000 (14:11 +0200)]
Use the object crate for archive reading during archive building

2 years agoAdd warning to the jit mode section of the usage docs
bjorn3 [Mon, 9 Aug 2021 10:30:40 +0000 (12:30 +0200)]
Add warning to the jit mode section of the usage docs

Closes #1192

2 years agoUpdate Cranelift
bjorn3 [Sat, 7 Aug 2021 09:09:03 +0000 (11:09 +0200)]
Update Cranelift