Commit graph

7793 commits

Author SHA1 Message Date
Ralf Jung
a4b7e14230 C "memcpy" shim: ensure the pointers are valid
Also add tests for some other shims that already behave correctly
2023-07-05 23:08:30 +02:00
bors
7591c51436 Auto merge of #2960 - oli-obk:run_filter, r=oli-obk
Restore test filtering by substring.

Previously it was only looking for tests whose path was a prefix of the given filter

fixes #2958
2023-07-04 12:12:22 +00:00
bors
8fa48940a0 Auto merge of #2963 - RalfJung:start, r=RalfJung
better error on missing #[start]
2023-07-04 11:24:26 +00:00
Oli Scherer
da98baa493 Restore test filtering by substring.
Previously it was only looking for tests whose path was a prefix of the given filter
2023-07-04 11:23:14 +00:00
Ralf Jung
812f9b2620 better error on missing #[start] 2023-07-04 13:23:05 +02:00
bors
2b3fae1ea9 Auto merge of #2957 - RalfJung:zulip, r=oli-obk
send link to PR to Zulip
2023-07-04 06:40:16 +00:00
Ralf Jung
a68afa2211 vec tets: ensure pointer is still writeable 2023-07-03 13:58:42 +02:00
Ralf Jung
4951d5f404 remove outdated comment 2023-07-03 11:59:19 +02:00
Ralf Jung
46c1e61792 send link to PR to Zulip 2023-07-03 11:29:46 +02:00
Oli Scherer
6a21b2ddc2 Silence clippy on FIXME'd code and fix the new lints otherwise 2023-07-03 08:15:34 +00:00
The Miri Conjob Bot
707afc389a fmt 2023-07-03 06:35:03 +00:00
The Miri Conjob Bot
1505dd86d1 Merge from rustc 2023-07-03 06:32:31 +00:00
The Miri Conjob Bot
17e17e1e81 Preparing for merge from rustc 2023-07-03 06:25:04 +00:00
Ralf Jung
352180b239 can't seem to avoid repeating the branch name... 2023-07-02 22:43:04 +02:00
Ralf Jung
4c7fbf8186 more CI yml cleanup 2023-07-02 22:40:23 +02:00
Ralf Jung
2c5e076fde sadly 'gh' doesnt support all git upstream branch configs 2023-07-02 21:42:34 +02:00
Nilstrieb
3295cdfff4 cargo update
Additional deps:
equivalent: indexmap
nu-ansi-term: tracing
overload: nu-ansi-term
2023-07-02 20:41:03 +02:00
Ralf Jung
32168b7653 cronjob auto-PR: try to fix setting the remote branch 2023-07-02 20:24:03 +02:00
bors
7d12d2f08b Auto merge of #2950 - icewind1991:cargo-miri-rustc-error, r=RalfJung
cargo-miri: better error message when RUSTC is not set

Currently, when running `cargo-miri` instead of `cargo miri` you get a very confusing.

```
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', src/tools/miri/cargo-miri/src/main.rs:83:41
```

error. This replaces that with a message telling them to use `cargo miri`
2023-07-02 17:37:21 +00:00
Ralf Jung
f2ce23074e cron auto-PR: need to set upstream branch 2023-07-02 19:02:34 +02:00
Robin Appelman
cc4670f54d cargo-miri: better error message when RUSTC is not set 2023-07-02 16:53:29 +02:00
Philipp Krones
de69d556eb
Fix compile-test tests to work with the new ui_test crate 2023-07-02 15:07:39 +02:00
Philipp Krones
0cbe963e51
Fix valtree changes 2023-07-02 14:59:44 +02:00
Philipp Krones
beb0e731de
Merge commit '37f4c1725d' into clippyup 2023-07-02 14:59:02 +02:00
Ralf Jung
7adf8dd345 CI cleanup 2023-07-02 14:02:37 +02:00
Ralf Jung
04db6778f7 cronjob auto-PR: fetch more of the history 2023-07-02 14:01:22 +02:00
Ralf Jung
5fa74038cb cronjob auto-PR: make sure we are on a branch 2023-07-02 11:47:04 +02:00
bors
72b2101434 Auto merge of #112718 - oli-obk:SIMD-destructure_mir_const, r=cjgillot
Make simd_shuffle_indices use valtrees

This removes the second-to-last user of the `destructure_mir_constant` query. So in a follow-up we can remove the query and just move the query provider function directly into pretty printing (which is the last user).

cc `@rust-lang/clippy` there's a small functional change, but I think it is correct?
2023-07-02 07:43:36 +00:00
Nilstrieb
3019c1cb2a Put LayoutError behind reference to shrink result
`LayoutError` is 24 bytes, which is bigger than the `Ok` types, so let's
shrink that.
2023-07-01 21:16:25 +02:00
bors
6162f6f123 Auto merge of #113225 - calebcartwright:sync-rustfmt, r=calebcartwright
Update Rustfmt (add let-else support)

Adds let-else formatting support

Bit more detail in: https://github.com/rust-lang/rustfmt/blob/master/CHANGELOG.md#160-2023-07-02
Accompanying blog post: https://github.com/rust-lang/blog.rust-lang.org/pull/1117

I know we're getting close to tool week, however, there's been extensive discussion and testing of the changes in this between both t-style and t-rustfmt. Our confidence level is extremely high, and even if it's only on nightly for a few days, I'd still much prefer that and being able to get this out with 1.72 vs having to push to 1.73

Closes https://github.com/rust-lang/rustfmt/issues/4914
cc `@rust-lang/style` for awareness
2023-07-01 14:32:35 +00:00
Weihang Lo
80423fd6e7
Update cargo 2023-07-01 11:08:31 +01:00
Caleb Cartwright
80ab662420 Merge commit 'dca1cf90ad' into sync-rustfmt 2023-07-01 02:49:12 -05:00
Matthias Krüger
00efc94a6c
Rollup merge of #113189 - Zalathar:trim-end, r=ozkanonur
compiletest: Only trim the end of process output

As of #94196, compiletest automatically trims process stderr/stdout output before printing it, to make failure info more compact.

This causes the first line of `run-coverage` output to be displayed incorrectly, because it uses leading whitespace to align line numbers.

Trimming only the end of the output string should still have the intended effect (e.g. removing trailing newlines), without causing problems for output that deliberately uses leading whitespace on the first line.

## Before
```
--- stdout -------------------------------
1|      1|fn main() { //
    2|      1|    let num = 9;
    3|      1|    while num >= 10 {
    4|      0|    }
    5|      1|}
------------------------------------------
stderr: none
```

## After
```
--- stdout -------------------------------
    1|      1|fn main() { //
    2|      1|    let num = 9;
    3|      1|    while num >= 10 {
    4|      0|    }
    5|      1|}
------------------------------------------
stderr: none
```
2023-07-01 00:35:07 +02:00
Pietro Albini
00cc815e57
fix loading target specs in compiletest not working with custom targets 2023-06-30 14:36:14 +02:00
Zalathar
115cfda6c2 compiletest: Only trim the end of process output 2023-06-30 17:41:34 +10:00
Matthias Krüger
f00db43e97
Rollup merge of #112300 - Zalathar:run-coverage, r=wesleywiser
Convert `run-make/coverage-reports` tests to use a custom compiletest mode

I was frustrated by the fact that most of the coverage tests are glued together with makefiles and shell scripts, so I tried my hand at converting most of them over to a newly-implemented `run-coverage` mode/suite in compiletest.

This ~~*mostly*~~ resolves #85009, ~~though I've left a small number of the existing tests as-is because they would require more work to fix/support~~.

---

I had time to go back and add support for the more troublesome tests that I had initially skipped over, so this PR now manages to completely get rid of `run-make/coverage-reports`.

---

The patches are arranged as follows:

- Declare the new mode/suite in bootstrap
- Small changes to compiletest that will be used by the new mode
- Implement the new mode in compiletest
- Migrate most of the tests over
- Add more code to bootstrap and compiletest to support the remaining tests
- Migrate the remaining tests (with some temporary hacks to avoid re-blessing them)
- Remove the temporary hacks and re-bless the migrated tests
- Remove the unused remnants of `run-make/coverage-reports`
2023-06-29 16:36:31 +02:00
Oli Scherer
78f58f96aa Use a valid target directory in miri ui tests 2023-06-29 10:43:49 +00:00
bors
d061edd495 Auto merge of #2947 - oli-obk:gha_mk_pr, r=RalfJung
Try to fix cronjob PR creation

The main tests use `bash` several times, maybe that is the issue here, too?
2023-06-29 10:13:00 +00:00
Oli Scherer
2039e7c357 Checking for a cached value without having a cache is useless 2023-06-29 08:07:19 +00:00
Oli Scherer
ccb332894c Bashy Mc Bashface 2023-06-29 07:08:30 +00:00
Ralf Jung
cca0c81027 Merge from rustc 2023-06-29 08:43:01 +02:00
Ralf Jung
8d4b2bdf7b Preparing for merge from rustc 2023-06-29 08:42:56 +02:00
bors
cec5ec44b1 Auto merge of #2936 - Vanille-N:unique, r=RalfJung
Optional semantics for `Unique`

Use with `-Zmiri-unique-is-unique`, makes `core::ptr::Unique` get a reborrow with its own permissions.
2023-06-28 21:21:42 +00:00
Neven Villani
0671f14733
Unique gets special treatment when -Zmiri-unique-is-unique 2023-06-28 18:42:13 +02:00
bors
1ffe627f05 Auto merge of #2945 - oli-obk:gha_mk_pr, r=RalfJung
Try running a sync automatically

absolutely no clue if this works, but it happens after the zulip message, so worst case we'll see the failure after the cron job did everything it currently does.
2023-06-28 12:59:55 +00:00
Oli Scherer
e1b2951450 Try running a sync automatically 2023-06-28 12:59:29 +00:00
Dylan DPC
fa56e01b35
Rollup merge of #111571 - jhpratt:proc-macro-span, r=m-ou-se
Implement proposed API for `proc_macro_span`

As proposed in [#54725 (comment)](https://github.com/rust-lang/rust/issues/54725#issuecomment-1546918161). I have omitted the byte-level API as it's already available as [`Span::byte_range`](https://doc.rust-lang.org/nightly/proc_macro/struct.Span.html#method.byte_range).

`@rustbot` label +A-proc-macros

r? `@m-ou-se`
2023-06-28 18:28:46 +05:30
Oli Scherer
de9dc59164 fmt 2023-06-28 07:12:31 +00:00
Oli Scherer
c10656e882 Merge from rustc 2023-06-28 06:57:12 +00:00
Oli Scherer
48294e40e7 Preparing for merge from rustc 2023-06-28 06:55:53 +00:00