]> git.lizzy.rs Git - rust.git/log
rust.git
3 years agoRustfmt
bjorn3 [Wed, 27 Jan 2021 09:33:06 +0000 (10:33 +0100)]
Rustfmt

3 years agoRemove vararg support check
bjorn3 [Wed, 27 Jan 2021 09:32:56 +0000 (10:32 +0100)]
Remove vararg support check

This check wasn't very useful and removing it simplifies the code.

3 years agoReplace EmptySinglePair with SmallVec
bjorn3 [Wed, 27 Jan 2021 09:24:31 +0000 (10:24 +0100)]
Replace EmptySinglePair with SmallVec

3 years ago[WIP] Use FnAbi everywhere instead of our own abi calculations
bjorn3 [Tue, 26 Jan 2021 20:41:20 +0000 (21:41 +0100)]
[WIP] Use FnAbi everywhere instead of our own abi calculations

3 years agoSplit symbol name and signature calculation
bjorn3 [Tue, 26 Jan 2021 14:11:03 +0000 (15:11 +0100)]
Split symbol name and signature calculation

3 years agoMisc cleanups
bjorn3 [Mon, 25 Jan 2021 16:12:16 +0000 (17:12 +0100)]
Misc cleanups

3 years agoReplace all uses of PassMode with ArgAbi
bjorn3 [Mon, 25 Jan 2021 14:37:49 +0000 (15:37 +0100)]
Replace all uses of PassMode with ArgAbi

3 years agoRustup to rustc 1.51.0-nightly (1d0d76f8d 2021-01-24)
bjorn3 [Mon, 25 Jan 2021 10:40:26 +0000 (11:40 +0100)]
Rustup to rustc 1.51.0-nightly (1d0d76f8d 2021-01-24)

3 years agoSplit abi adjustments out
bjorn3 [Mon, 25 Jan 2021 09:57:59 +0000 (10:57 +0100)]
Split abi adjustments out

3 years agoStart using ArgAbi
bjorn3 [Mon, 25 Jan 2021 09:45:01 +0000 (10:45 +0100)]
Start using ArgAbi

3 years agoDefault to Cranelift newBE
bjorn3 [Fri, 22 Jan 2021 11:28:32 +0000 (12:28 +0100)]
Default to Cranelift newBE

3 years agoFix rust-analyzer pref name
bjorn3 [Thu, 21 Jan 2021 20:22:19 +0000 (21:22 +0100)]
Fix rust-analyzer pref name

3 years agoMerge pull request #1127 from bjorn3/newbe
bjorn3 [Thu, 21 Jan 2021 18:55:19 +0000 (19:55 +0100)]
Merge pull request #1127 from bjorn3/newbe

Support building with the new Cranelift backends

3 years agoTest both oldbe and newbe on CI
bjorn3 [Thu, 21 Jan 2021 18:33:19 +0000 (19:33 +0100)]
Test both oldbe and newbe on CI

3 years agoAdd a feature flag to switch between oldbe and newbe
bjorn3 [Mon, 18 Jan 2021 13:48:50 +0000 (14:48 +0100)]
Add a feature flag to switch between oldbe and newbe

3 years agoUpdate Cranelift
bjorn3 [Mon, 18 Jan 2021 13:48:30 +0000 (14:48 +0100)]
Update Cranelift

This implements everything in the new backend necessary for usage with cg_clif

3 years agoFix indirectly linking to libstd.so with the JIT
bjorn3 [Thu, 21 Jan 2021 14:20:48 +0000 (15:20 +0100)]
Fix indirectly linking to libstd.so with the JIT

3 years agoDisable new failing libcore tests
bjorn3 [Thu, 21 Jan 2021 14:19:31 +0000 (15:19 +0100)]
Disable new failing libcore tests

3 years agoRustup to rustc 1.51.0-nightly (a4cbb44ae 2021-01-20)
bjorn3 [Thu, 21 Jan 2021 13:51:28 +0000 (14:51 +0100)]
Rustup to rustc 1.51.0-nightly (a4cbb44ae 2021-01-20)

3 years agoClear domtree after cg_clif optimizations
bjorn3 [Sat, 16 Jan 2021 12:05:23 +0000 (13:05 +0100)]
Clear domtree after cg_clif optimizations

3 years agoUpdate dependencies
bjorn3 [Sat, 16 Jan 2021 10:50:58 +0000 (11:50 +0100)]
Update dependencies

3 years agoUpdate Cranelift
bjorn3 [Sat, 16 Jan 2021 10:46:21 +0000 (11:46 +0100)]
Update Cranelift

3 years agoDisable timings by default for cargo.sh
bjorn3 [Wed, 6 Jan 2021 13:54:19 +0000 (14:54 +0100)]
Disable timings by default for cargo.sh

Fixes #1121

3 years agoRemove code that was moved from the backend to rustc_incremental
bjorn3 [Sat, 2 Jan 2021 15:59:23 +0000 (16:59 +0100)]
Remove code that was moved from the backend to rustc_incremental

3 years agoRustup to rustc 1.51.0-nightly (44e3daf5e 2020-12-31)
bjorn3 [Fri, 1 Jan 2021 16:15:04 +0000 (17:15 +0100)]
Rustup to rustc 1.51.0-nightly (44e3daf5e 2020-12-31)

3 years agoMerge branch 'sync_from_rust'
bjorn3 [Sun, 27 Dec 2020 09:30:56 +0000 (10:30 +0100)]
Merge branch 'sync_from_rust'

3 years agoMerge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27
bjorn3 [Sun, 27 Dec 2020 09:30:38 +0000 (10:30 +0100)]
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27

3 years agoRustfmt
bjorn3 [Fri, 25 Dec 2020 11:48:19 +0000 (12:48 +0100)]
Rustfmt

3 years agoSet rust-analyzer importMergeBehaviour option to last
bjorn3 [Fri, 25 Dec 2020 11:47:03 +0000 (12:47 +0100)]
Set rust-analyzer importMergeBehaviour option to last

3 years agoMerge pull request #1120 from bjorn3/lazy_jit
bjorn3 [Fri, 25 Dec 2020 11:40:18 +0000 (12:40 +0100)]
Merge pull request #1120 from bjorn3/lazy_jit

Lazy compilation in jit mode

3 years agoAdd documentation
bjorn3 [Fri, 25 Dec 2020 11:13:11 +0000 (12:13 +0100)]
Add documentation

3 years agoImplement lazy compilation in JIT mode
bjorn3 [Fri, 25 Dec 2020 10:41:48 +0000 (11:41 +0100)]
Implement lazy compilation in JIT mode

Lazy compilation has the potential to significantly improve the startup
time of a program. While functions have to be codegened when called, it
is expected that a significant amount of all code is only required when
an error occurs or only when the program is used in certain ways.

The basic approach is to first codegen a shim for each function. This
shim calls the `__cg_clif_jit` function of cg_clif with a pointer to the
`Instance` corresponding to the function for which it is a shim.
`__cg_clif_jit` function then codegens this function and uses the hot
code swapping support of SimpleJIT to redirect future calls to the
function to the real version. Finally it calls the newly codegened
function.

3 years agoMove finalize CodegenCx timer out of codegen mono items timer
bjorn3 [Fri, 25 Dec 2020 10:49:50 +0000 (11:49 +0100)]
Move finalize CodegenCx timer out of codegen mono items timer

3 years agoChange the way JIT mode is selected
bjorn3 [Fri, 25 Dec 2020 10:31:33 +0000 (11:31 +0100)]
Change the way JIT mode is selected

3 years agoUse PIC in JIT mode too
bjorn3 [Thu, 17 Dec 2020 18:31:38 +0000 (19:31 +0100)]
Use PIC in JIT mode too

3 years agoRustup to rustc 1.50.0-nightly (bb1fbbf84 2020-12-22)
bjorn3 [Wed, 23 Dec 2020 11:47:20 +0000 (12:47 +0100)]
Rustup to rustc 1.50.0-nightly (bb1fbbf84 2020-12-22)

3 years agoSync from rust 28d73a3ee3e2c32f2768d1cbc9b42cb63472e9e9
bjorn3 [Wed, 23 Dec 2020 11:27:58 +0000 (12:27 +0100)]
Sync from rust 28d73a3ee3e2c32f2768d1cbc9b42cb63472e9e9

3 years agoMake BoundRegion have a kind of BoungRegionKind
Jack Huey [Fri, 18 Dec 2020 18:24:55 +0000 (13:24 -0500)]
Make BoundRegion have a kind of BoungRegionKind

3 years agoRemove implementation of intrinsics that are now lowered
bjorn3 [Fri, 18 Dec 2020 10:12:52 +0000 (11:12 +0100)]
Remove implementation of intrinsics that are now lowered

See rust-lang/rust#80040

3 years agoRustup to rustc 1.50.0-nightly (eb4fc71dc 2020-12-17)
bjorn3 [Fri, 18 Dec 2020 10:11:48 +0000 (11:11 +0100)]
Rustup to rustc 1.50.0-nightly (eb4fc71dc 2020-12-17)

3 years agoSync from rust fee693d08e98d25f566075cbed73e12236c05abd
bjorn3 [Fri, 18 Dec 2020 10:06:23 +0000 (11:06 +0100)]
Sync from rust fee693d08e98d25f566075cbed73e12236c05abd

3 years agoAuto merge of #79945 - jackh726:existential_trait_ref, r=nikomatsakis
bors [Thu, 17 Dec 2020 18:21:20 +0000 (18:21 +0000)]
Auto merge of #79945 - jackh726:existential_trait_ref, r=nikomatsakis

Move binder for dyn to each list item

This essentially changes `ty::Binder<&'tcx List<ExistentialTraitRef>>` to `&'tcx List<ty::Binder<ExistentialTraitRef>>`.

This is a first step in moving the `dyn Trait` representation closer to Chalk, which we've talked about in `@rust-lang/wg-traits.`

r? `@nikomatsakis`

3 years agoRustup to rustc 1.50.0-nightly (b32e6e6ac 2020-12-16)
bjorn3 [Thu, 17 Dec 2020 17:35:44 +0000 (18:35 +0100)]
Rustup to rustc 1.50.0-nightly (b32e6e6ac 2020-12-16)

3 years agoSync from rust caeb3335c052f286f6e7257ac0ff21e4f73fd8c5
bjorn3 [Thu, 17 Dec 2020 15:40:10 +0000 (16:40 +0100)]
Sync from rust caeb3335c052f286f6e7257ac0ff21e4f73fd8c5

3 years agocg_clif: fix build with split dwarf
David Wood [Sun, 8 Nov 2020 14:01:23 +0000 (14:01 +0000)]
cg_clif: fix build with split dwarf

This commit makes minor changes to the cranelift backend so that it can
build given changes in cg_ssa for Split DWARF.

Signed-off-by: David Wood <david@davidtw.co>
3 years agoAlso emit vcode when emitting clif ir while using new style backends
bjorn3 [Mon, 14 Dec 2020 11:52:41 +0000 (12:52 +0100)]
Also emit vcode when emitting clif ir while using new style backends

3 years agoFix Cranelift link in readme (#1118)
Jesse [Sun, 13 Dec 2020 09:58:47 +0000 (10:58 +0100)]
Fix Cranelift link in readme (#1118)

3 years agoEnable Cranelift optimizations when optimizing
bjorn3 [Sat, 12 Dec 2020 09:38:46 +0000 (10:38 +0100)]
Enable Cranelift optimizations when optimizing

LICM in Cranelift has been fixed recently

3 years agoUpdate Cranelift
bjorn3 [Sat, 12 Dec 2020 09:37:10 +0000 (10:37 +0100)]
Update Cranelift

3 years agoMove binder for dyn to each list item
Jack Huey [Fri, 11 Dec 2020 20:02:46 +0000 (15:02 -0500)]
Move binder for dyn to each list item

3 years agoAuto merge of #77611 - oli-obk:atomic_miri_leakage, r=nagisa
bors [Wed, 9 Dec 2020 19:53:23 +0000 (19:53 +0000)]
Auto merge of #77611 - oli-obk:atomic_miri_leakage, r=nagisa

Directly use raw pointers in `AtomicPtr` store/load

I was unable to find any reason for this limitation in the latest source of LLVM or in the documentation [here](http://llvm.org/docs/Atomics.html#libcalls-atomic).

fixes https://github.com/rust-lang/miri/issues/1574

3 years agoOptimize branches when the target is statically known to a jump
bjorn3 [Wed, 9 Dec 2020 18:55:11 +0000 (19:55 +0100)]
Optimize branches when the target is statically known to a jump

This can happen in generic code

3 years agoInline codegen_mono_item
bjorn3 [Sun, 11 Oct 2020 11:59:31 +0000 (13:59 +0200)]
Inline codegen_mono_item

3 years agoUpdate Cranelift
bjorn3 [Fri, 4 Dec 2020 09:19:32 +0000 (10:19 +0100)]
Update Cranelift

This includes bytecodealliance/wasmtime#2403 which enables hotswapping with SimpleJIT

3 years agoSupport #[repr(simd)] on array wrappers
bjorn3 [Thu, 3 Dec 2020 11:59:36 +0000 (12:59 +0100)]
Support #[repr(simd)] on array wrappers

Complement to rust-lang/rust#78863

3 years agoUpdate Cranelift
bjorn3 [Thu, 3 Dec 2020 11:12:46 +0000 (12:12 +0100)]
Update Cranelift

3 years agoRustup to rustc 1.50.0-nightly (f4db9ffb2 2020-12-02)
bjorn3 [Thu, 3 Dec 2020 10:52:11 +0000 (11:52 +0100)]
Rustup to rustc 1.50.0-nightly (f4db9ffb2 2020-12-02)

3 years agoAllow cranelift to handle atomic pointers
oli [Sun, 29 Nov 2020 14:56:19 +0000 (14:56 +0000)]
Allow cranelift to handle atomic pointers

3 years agoSync from rust 760430e6fdd70cdb09b5b6d696905c0ee0ea27c8
bjorn3 [Sun, 29 Nov 2020 13:50:21 +0000 (14:50 +0100)]
Sync from rust 760430e6fdd70cdb09b5b6d696905c0ee0ea27c8

3 years agoMerge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
bjorn3 [Fri, 27 Nov 2020 19:48:53 +0000 (20:48 +0100)]
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27

3 years agoRevert "Use the new component dependency option of the rust-toolchain file"
bjorn3 [Fri, 27 Nov 2020 17:05:05 +0000 (18:05 +0100)]
Revert "Use the new component dependency option of the rust-toolchain file"

This reverts commit 648caced6eb0d23c31758f69f2f44a7d748526b9.

Rustup on github actions isn't yet updated

3 years agoSync from rust c9228570668803e3e6402770d55f23a12c9ae686
bjorn3 [Fri, 27 Nov 2020 17:01:29 +0000 (18:01 +0100)]
Sync from rust c9228570668803e3e6402770d55f23a12c9ae686

3 years agoRustup to rustc 1.50.0-nightly (72da5a9d8 2020-11-26)
bjorn3 [Fri, 27 Nov 2020 17:01:01 +0000 (18:01 +0100)]
Rustup to rustc 1.50.0-nightly (72da5a9d8 2020-11-26)

3 years agoUse the new component dependency option of the rust-toolchain file
bjorn3 [Fri, 27 Nov 2020 15:52:17 +0000 (16:52 +0100)]
Use the new component dependency option of the rust-toolchain file

3 years agoAuto merge of #79336 - camelid:rename-feature-oibit-to-auto, r=oli-obk
bors [Wed, 25 Nov 2020 07:25:19 +0000 (07:25 +0000)]
Auto merge of #79336 - camelid:rename-feature-oibit-to-auto, r=oli-obk

Rename `optin_builtin_traits` to `auto_traits`

They were originally called "opt-in, built-in traits" (OIBITs), but
people realized that the name was too confusing and a mouthful, and so
they were renamed to just "auto traits". The feature flag's name wasn't
updated, though, so that's what this PR does.

There are some other spots in the compiler that still refer to OIBITs,
but I don't think changing those now is worth it since they are internal
and not particularly relevant to this PR.

Also see <https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/opt-in.2C.20built-in.20traits.20(auto.20traits).20feature.20name>.

r? `@oli-obk` (feel free to re-assign if you're not the right reviewer for this)

3 years agoRename `optin_builtin_traits` to `auto_traits`
Camelid [Mon, 23 Nov 2020 03:54:31 +0000 (19:54 -0800)]
Rename `optin_builtin_traits` to `auto_traits`

They were originally called "opt-in, built-in traits" (OIBITs), but
people realized that the name was too confusing and a mouthful, and so
they were renamed to just "auto traits". The feature flag's name wasn't
updated, though, so that's what this PR does.

There are some other spots in the compiler that still refer to OIBITs,
but I don't think changing those now is worth it since they are internal
and not particularly relevant to this PR.

Also see <https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/opt-in.2C.20built-in.20traits.20(auto.20traits).20feature.20name>.

3 years agoRustfmt
bjorn3 [Mon, 23 Nov 2020 10:49:06 +0000 (11:49 +0100)]
Rustfmt

3 years agoMake simd_extract panic at runtime on non-const index again
bjorn3 [Mon, 23 Nov 2020 10:48:53 +0000 (11:48 +0100)]
Make simd_extract panic at runtime on non-const index again

This is necessary to compile packed_simd

3 years agoImplement more simd_reduce_* intrinsics
bjorn3 [Mon, 23 Nov 2020 10:45:41 +0000 (11:45 +0100)]
Implement more simd_reduce_* intrinsics

3 years agoImplement float simd comparisons
bjorn3 [Mon, 23 Nov 2020 10:21:15 +0000 (11:21 +0100)]
Implement float simd comparisons

3 years agoImplement simd_reduce_{add,mul}_{,un}ordered
bjorn3 [Mon, 23 Nov 2020 10:09:19 +0000 (11:09 +0100)]
Implement simd_reduce_{add,mul}_{,un}ordered

3 years agoDrop support for cloudabi targets
Lzu Tao [Tue, 27 Oct 2020 13:10:31 +0000 (13:10 +0000)]
Drop support for cloudabi targets

3 years agoRustup to rustc 1.50.0-nightly (593fe977a 2020-11-20)
bjorn3 [Sat, 21 Nov 2020 18:49:51 +0000 (19:49 +0100)]
Rustup to rustc 1.50.0-nightly (593fe977a 2020-11-20)

3 years agoSync from rust 539402cb0b0f1639a4be14e40eaf8db61a62ae41
bjorn3 [Sat, 21 Nov 2020 17:43:51 +0000 (18:43 +0100)]
Sync from rust 539402cb0b0f1639a4be14e40eaf8db61a62ae41

3 years agoupdate `cg_clif`
Bastian Kauschke [Wed, 28 Oct 2020 07:25:06 +0000 (08:25 +0100)]
update `cg_clif`

3 years agoRemove unnecessary paths from LD_LIBRARY_PATH
bjorn3 [Fri, 13 Nov 2020 18:51:00 +0000 (19:51 +0100)]
Remove unnecessary paths from LD_LIBRARY_PATH

3 years agoUse rpath to compile the cg_clif executable
bjorn3 [Fri, 13 Nov 2020 18:48:49 +0000 (19:48 +0100)]
Use rpath to compile the cg_clif executable

3 years agoRustfmt
bjorn3 [Fri, 13 Nov 2020 18:02:24 +0000 (19:02 +0100)]
Rustfmt

3 years agoRustup to rustc 1.49.0-nightly (9722952f0 2020-11-12)
bjorn3 [Fri, 13 Nov 2020 18:01:40 +0000 (19:01 +0100)]
Rustup to rustc 1.49.0-nightly (9722952f0 2020-11-12)

3 years agoSync from rust f2a11a25378293e41cfcb00dbf67c524ffd79b39
bjorn3 [Fri, 13 Nov 2020 17:47:37 +0000 (18:47 +0100)]
Sync from rust f2a11a25378293e41cfcb00dbf67c524ffd79b39

3 years agoMove some things from codegen_mono_item to trans_fn
bjorn3 [Sun, 11 Oct 2020 11:51:18 +0000 (13:51 +0200)]
Move some things from codegen_mono_item to trans_fn

3 years agoInline codegen_mono_items and outline predefine_mono_items
bjorn3 [Sun, 11 Oct 2020 11:40:16 +0000 (13:40 +0200)]
Inline codegen_mono_items and outline predefine_mono_items

3 years agoMerge pull request #1111 from jakobhellermann/hardlinks-instead-of-copy
bjorn3 [Thu, 12 Nov 2020 15:37:40 +0000 (16:37 +0100)]
Merge pull request #1111 from jakobhellermann/hardlinks-instead-of-copy

use hardlinks instead of copying files

3 years agouse hardlinks instead of copying files
Jakob Hellermann [Thu, 12 Nov 2020 15:18:03 +0000 (16:18 +0100)]
use hardlinks instead of copying files

3 years agoUpdate Cranelift for SimpleJIT changes
bjorn3 [Thu, 12 Nov 2020 10:56:09 +0000 (11:56 +0100)]
Update Cranelift for SimpleJIT changes

3 years agoAvoid muliplications by 1
bjorn3 [Thu, 12 Nov 2020 10:09:58 +0000 (11:09 +0100)]
Avoid muliplications by 1

```
Benchmark #1: ./raytracer_cg_clif_pre
  Time (mean ± σ):      9.553 s ±  0.129 s    [User: 9.543 s, System: 0.008 s]
  Range (min … max):    9.438 s …  9.837 s    10 runs

Benchmark #2: ./raytracer_cg_clif_post
  Time (mean ± σ):      9.463 s ±  0.055 s    [User: 9.452 s, System: 0.008 s]
  Range (min … max):    9.387 s …  9.518 s    10 runs

Summary
  './raytracer_cg_clif_post' ran
    1.01 ± 0.01 times faster than './raytracer_cg_clif_pre'
```

3 years agoChanged unwrap_or to unwrap_or_else in some places.
Nicholas-Baron [Fri, 6 Nov 2020 21:24:55 +0000 (13:24 -0800)]
Changed unwrap_or to unwrap_or_else in some places.

The discussion seems to have resolved that this lint is a bit "noisy" in
that applying it in all places would result in a reduction in
readability.

A few of the trivial functions (like `Path::new`) are fine to leave
outside of closures.

The general rule seems to be that anything that is obviously an
allocation (`Box`, `Vec`, `vec![]`) should be in a closure, even if it
is a 0-sized allocation.

3 years agoRollup merge of #78875 - petrochenkov:cleantarg, r=Mark-Simulacrum
Jonas Schievink [Tue, 10 Nov 2020 13:45:21 +0000 (14:45 +0100)]
Rollup merge of #78875 - petrochenkov:cleantarg, r=Mark-Simulacrum

rustc_target: Further cleanup use of target options

Follow up to https://github.com/rust-lang/rust/pull/77729.

Implements items 2 and 4 from the list in https://github.com/rust-lang/rust/pull/77729#issue-500228243.

The first commit collapses uses of `target.options.foo` into `target.foo`.

The second commit renames some target options to avoid tautology:
`target.target_endian` -> `target.endian`
`target.target_c_int_width` -> `target.c_int_width`
`target.target_os` -> `target.os`
`target.target_env` -> `target.env`
`target.target_vendor` -> `target.vendor`
`target.target_family` -> `target.os_family`
`target.target_mcount` -> `target.mcount`

r? `@Mark-Simulacrum`

3 years agoUpdate dependencies
bjorn3 [Mon, 9 Nov 2020 17:43:54 +0000 (18:43 +0100)]
Update dependencies

3 years agoUpdate Cranelift
bjorn3 [Mon, 9 Nov 2020 17:16:08 +0000 (18:16 +0100)]
Update Cranelift

3 years agoRollup merge of #78674 - tmiasko:inline-substs-for-mir-body, r=oli-obk
Dylan DPC [Mon, 9 Nov 2020 00:13:42 +0000 (01:13 +0100)]
Rollup merge of #78674 - tmiasko:inline-substs-for-mir-body, r=oli-obk

inliner: Use substs_for_mir_body

Changes from 68965 extended the kind of instances that are being
inlined. For some of those, the `instance_mir` returns a MIR body that
is already expressed in terms of the types found in substitution array,
and doesn't need further substitution.

Use `substs_for_mir_body` to take that into account.

Resolves #78529.
Resolves #78560.

3 years agoBetter build dir layout
bjorn3 [Sun, 8 Nov 2020 16:35:59 +0000 (17:35 +0100)]
Better build dir layout

It now matches the layout used by rustc itself

3 years agoDon't add .d and .rmeta files to the sysroot
bjorn3 [Sun, 8 Nov 2020 16:15:31 +0000 (17:15 +0100)]
Don't add .d and .rmeta files to the sysroot

Fixes #1106

3 years agoSet diff=rust git attribute for rust files
bjorn3 [Sun, 8 Nov 2020 15:36:52 +0000 (16:36 +0100)]
Set diff=rust git attribute for rust files

This gives nicer hunk headers

Fixes #1095

3 years agoCollapse all uses of `target.options.foo` into `target.foo`
Vadim Petrochenkov [Sun, 8 Nov 2020 11:27:51 +0000 (14:27 +0300)]
Collapse all uses of `target.options.foo` into `target.foo`

with an eye on merging `TargetOptions` into `Target`.

`TargetOptions` as a separate structure is mostly an implementation detail of `Target` construction, all its fields logically belong to `Target` and available from `Target` through `Deref` impls.

3 years agoSync from rust 0256d065d4901b63def6c04013da4f781d0752bb
bjorn3 [Sat, 7 Nov 2020 18:34:01 +0000 (19:34 +0100)]
Sync from rust 0256d065d4901b63def6c04013da4f781d0752bb

3 years agoFix ICE (part 2)
bjorn3 [Fri, 6 Nov 2020 18:56:51 +0000 (19:56 +0100)]
Fix ICE (part 2)

3 years agoRustfmt
bjorn3 [Fri, 6 Nov 2020 18:50:30 +0000 (19:50 +0100)]
Rustfmt

3 years agoFix ICE
bjorn3 [Fri, 6 Nov 2020 18:49:33 +0000 (19:49 +0100)]
Fix ICE

3 years agoSync from rust dc06a36074f04c6a77b5834f2950011d49607898
bjorn3 [Fri, 6 Nov 2020 18:44:56 +0000 (19:44 +0100)]
Sync from rust dc06a36074f04c6a77b5834f2950011d49607898