Pietro Albini
bf66ddbf24
fix wrong ignore condition
2023-04-03 10:23:13 +02:00
Pietro Albini
9a2d1b85ed
restore check for both target os and env
...
This is better than the old impl of target.ends_with("windows-gnu"),
because it also catches things like windows-gnullvm
2023-04-03 10:23:12 +02:00
Pietro Albini
5b0a0d8254
add support for ignore-gdb-version
2023-04-03 10:23:11 +02:00
Pietro Albini
8f8873e386
remove unknown xcore arch
2023-04-03 10:23:09 +02:00
Pietro Albini
3602200d50
make 32bit ignore more accurate
2023-04-03 10:23:08 +02:00
Pietro Albini
e045598c68
remove a bunch of unknown archs from the global_asm tests
2023-04-03 09:30:37 +02:00
Pietro Albini
60f2761503
add support for ignore-llvm-version
2023-04-03 09:30:36 +02:00
Pietro Albini
54c4762a86
fix remaining tests
2023-04-03 09:30:35 +02:00
Pietro Albini
91be8cadcb
properly match multiple families
2023-04-03 09:30:33 +02:00
Pietro Albini
4cdb783cb9
migrate existing behavior of matches_arch
2023-04-03 09:30:32 +02:00
Pietro Albini
e085192729
allow some out of tree archs
2023-04-03 09:30:31 +02:00
Pietro Albini
bc991de233
reduce allocations when validating cfgs
2023-04-03 09:30:29 +02:00
Pietro Albini
9cb4373a84
move cfg handling into its own module
2023-04-03 09:30:28 +02:00
Pietro Albini
8eb3def446
handle "ignore-" and "only-"
2023-04-03 09:30:26 +02:00
Pietro Albini
55121a9c46
avoid cloning the whole compiletest configuration for every test
2023-04-03 09:30:23 +02:00
Pietro Albini
c075691b82
use --print=all-target-specs-json for stage1+
2023-04-03 09:24:16 +02:00
Pietro Albini
0e6d2053b4
use target specs rather than --print=cfg to discover targets
2023-04-03 09:24:15 +02:00
Pietro Albini
ef2bf6d505
implement --print=all-target-specs-json
2023-04-03 09:24:14 +02:00
Pietro Albini
e592aaa705
remove invalid ignore-powerpc64le
2023-04-03 09:24:12 +02:00
Pietro Albini
64af509377
remove invalid ignore-pretty
2023-04-03 09:24:11 +02:00
Pietro Albini
8dd6c19379
split invalid only-x86-windows into only-x86 and only-windows
2023-04-03 09:24:10 +02:00
Pietro Albini
703ba0ce26
fix ignore-thumbv8m.base
2023-04-03 09:24:07 +02:00
Pietro Albini
0aaf9d58a2
reduce boilerplate with common enums
2023-04-03 09:24:04 +02:00
Pietro Albini
9bc8bb91de
validate ignore-FOO/only-FOO directives and output only-FOO reasoning
2023-04-03 09:24:01 +02:00
Pietro Albini
4e2a98268a
include pretty reason why ignore-FOO matched
2023-04-03 09:24:00 +02:00
Pietro Albini
123cc413bd
include eventual comment in the compiletest ignore reason
2023-04-03 09:23:57 +02:00
bors
33289132ec
Auto merge of #109770 - jyn514:run-make-fulldeps, r=Mark-Simulacrum
...
Move almost all run-make-fulldeps tests to run-make
They pass fine, and this avoids having to build the compiler twice.
There are few enough tests left that I think it should be possible to get rid of this test suite altogether, but I expect this PR to fail at least a few times in bors and want to get it merged before tackling further changes. cc https://github.com/rust-lang/rust/pull/83775
Fixes https://github.com/rust-lang/rust/issues/66085 . Fixes https://github.com/rust-lang/rust/issues/83773 .
2023-04-03 01:34:05 +00:00
jyn
c45037b956
try to fix test-various
2023-04-02 17:54:24 -04:00
bors
a93bcdc307
Auto merge of #109849 - scottmcm:more-fieldidx-rebase, r=oli-obk
...
Use `FieldIdx` in various things related to aggregates
Shrank `AggregateKind` by 8 bytes on x64, since the active field of a union is tracked as an `Option<FieldIdx>` instead of `Option<usize>`.
Part 3/? of https://github.com/rust-lang/compiler-team/issues/606
[`IndexSlice`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_index/vec/struct.IndexVec.html#deref-methods-IndexSlice%3CI,+T%3E ) was added in https://github.com/rust-lang/rust/pull/109787
2023-04-02 21:40:29 +00:00
bors
3a8a131e95
Auto merge of #109811 - jyn514:symlink-fixes, r=Mark-Simulacrum
...
Replace any existing `build/host` symlink
This has two advantages:
1. If `build.build` changes between runs, the symlink is no longer silently wrong.
2. If the entire build directory is moved, the symlink is no longer broken because it points to the wrong absolute path.
2023-04-02 14:54:31 +00:00
Jynn Nelson
28b7e6abff
Replace any existing build/host
symlink
...
This has two advantages:
1. If `build.build` changes between runs, the symlink is no longer
silently wrong.
2. If the entire build directory is moved, the symlink is no longer
broken because it points to the wrong absolute path.
2023-04-02 07:57:05 -05:00
bors
a5a690cf4b
Auto merge of #109008 - clubby789:drop-elaborate-array, r=davidtwco
...
Drop array patterns using subslices
Fixes #109004
Drops contiguous subslices of an array when moving elements out with a pattern, which improves perf for large arrays
r? `@compiler-errors`
2023-04-02 12:17:52 +00:00
bors
11cd4ff34d
Auto merge of #109852 - Nilstrieb:rollup-g3mgxxw, r=Nilstrieb
...
Rollup of 4 pull requests
Successful merges:
- #109839 (Improve grammar of Iterator.partition_in_place)
- #109840 (Fix typo in std/src/os/fd/owned.rs)
- #109844 (a couple clippy::complexity fixes)
- #109846 (more clippy::complexity fixes (iter_kv_map, map_flatten, nonminimal_bool))
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
2023-04-02 09:39:41 +00:00
Nilstrieb
59f394bf86
Rollup merge of #109846 - matthiaskrgr:clippy2023_04_III, r=Nilstrieb
...
more clippy::complexity fixes (iter_kv_map, map_flatten, nonminimal_bool)
2023-04-02 10:08:35 +02:00
Nilstrieb
e2ffe151a3
Rollup merge of #109844 - matthiaskrgr:clippy2023_04, r=Nilstrieb
...
a couple clippy::complexity fixes
map_identity
filter_next
option_as_ref_deref
unnecessary_find_map
redundant_slicing
unnecessary_unwrap
bool_comparison
derivable_impls
manual_flatten
needless_borrowed_reference
2023-04-02 10:08:34 +02:00
Nilstrieb
099f3469a9
Rollup merge of #109840 - taiki-e:typo, r=ChrisDenton
...
Fix typo in std/src/os/fd/owned.rs
2023-04-02 10:08:34 +02:00
Nilstrieb
a38bdd4439
Rollup merge of #109839 - sartak:iter-grammar, r=scottmcm
...
Improve grammar of Iterator.partition_in_place
This is my first PR against Rust, please let me know if there's anything I should be providing here! I didn't find any instructions specific to documentation grammar in the [std-dev guide](https://std-dev-guide.rust-lang.org/documentation/summary.html ).
2023-04-02 10:08:33 +02:00
bors
637d7fdb23
Auto merge of #109701 - Amanieu:binaryheap_retain, r=ChrisDenton
...
Stabilize `binary_heap_retain`
FCP finished in tracking issue: #71503
2023-04-02 07:04:01 +00:00
bors
f5f93d0063
Auto merge of #109836 - clubby789:param-non-exhaustive, r=Nilstrieb
...
Fix `non_exhaustive_omitted_patterns` on arguments and locals
Fixes #99815
r? `@Nilstrieb`
2023-04-02 04:26:05 +00:00
Scott McMurray
b5b6def021
Use FieldIdx
in various things related to aggregates
...
Shrank `AggregateKind` by 8 bytes on x64, since the active field of a union is tracked as an `Option<FieldIdx>` instead of `Option<usize>`.
2023-04-01 20:32:50 -07:00
bors
63fdb82c44
Auto merge of #109834 - Nilstrieb:mailmap-myself, r=Mark-Simulacrum
...
Add Nilstrieb to mailmap
I saw that I'm on https://thanks.rust-lang.org/ twice (once as `Nilstrieb` and once as `nils`).
This is because I've contributed as both `Nilstrieb` (locally) and `nils` (on github). So I've mailmapped them both to `Nilstrieb` (the less ambiguous of the two).
I am not entirely sure whether I've done this correctly.
2023-04-02 01:32:24 +00:00
bors
0f6312f643
Auto merge of #109833 - klensy:bs-tty, r=Mark-Simulacrum
...
bootstrap: replace `atty` with `is-terminal`, dedupe deps
`atty` reported as [unsound](https://rustsec.org/advisories/RUSTSEC-2021-0145 ), so replaced with `is-terminal`, also updated few crates to reduce dupes
fd-lock v3.0.8 -> v3.0.11 (https://github.com/yoshuawuyts/fd-lock/compare/v3.0.8...v3.0.11 , https://github.com/yoshuawuyts/fd-lock/pull/38 )
2023-04-01 22:51:10 +00:00
Matthias Krüger
73bd953dea
slighty simplify a few boolean expressions (clippy::nonminimal_bool)
2023-04-01 23:55:22 +02:00
Matthias Krüger
5a07e33d2c
use and_then/flat_map for map().flatten()
2023-04-01 23:50:45 +02:00
Matthias Krüger
ac229c2819
fix clippy::iter_kv_map
2023-04-01 23:44:16 +02:00
Matthias Krüger
8ef3bf29fe
a couple clippy::complexity fixes
...
map_identity
filter_next
option_as_ref_deref
unnecessary_find_map
redundant_slicing
unnecessary_unwrap
bool_comparison
derivable_impls
manual_flatten
needless_borrowed_reference
2023-04-01 23:16:33 +02:00
bors
0599b6b931
Auto merge of #109483 - joboet:optimize_lazycell, r=Mark-Simulacrum
...
Optimize `LazyCell` size
`LazyCell` can only store either the initializing function or the data it produces, so it does not need to reserve the space for both. Similar to #107329 , but uses an `enum` instead of a `union`.
2023-04-01 20:11:49 +00:00
clubby789
46f7d3deb7
Fix non_exhaustive_omitted_patterns
on arguments
2023-04-01 19:15:24 +01:00
bors
0196c2bd27
Auto merge of #109835 - ehuss:update-cargo, r=ehuss
...
Update cargo
9 commits in 145219a9f089f8b57c09f40525374fbade1e34ae..0e474cfd7b16b018cf46e95da3f6a5b2f1f6a9e7
2023-03-27 01:56:36 +0000 to 2023-03-31 23:15:58 +0000
- Add delays to network retries. (rust-lang/cargo#11881 )
- Add a note to `cargo logout` that it does not revoke the token. (rust-lang/cargo#11919 )
- Sync external-tools JSON docs. (rust-lang/cargo#11918 )
- Drop derive feature from serde in cargo-platform (rust-lang/cargo#11915 )
- Disable test_profile test on windows-gnu (rust-lang/cargo#11916 )
- src/doc/src/reference/build-scripts.md: a{n =>} benchmark target (rust-lang/cargo#11908 )
- Documented working directory behaviour for `cargo test`, `cargo bench` and `cargo run` (rust-lang/cargo#11901 )
- docs(contrib): Link to office hours doc (rust-lang/cargo#11903 )
- chore: Upgrade to clap v4.2 (rust-lang/cargo#11904 )
2023-04-01 17:37:42 +00:00
Taiki Endo
455a9601da
Fix typo in std/src/os/fd/owned.rs
2023-04-02 02:14:37 +09:00