bors
abbdfd4db8
Auto merge of #1693 - rust-lang:oli-obk-patch-1, r=RalfJung
...
Document -Zmiri-compare-exchange-weak-failure-rate
2021-01-30 20:17:39 +00:00
Oli Scherer
397443093d
Update README.md
2021-01-30 20:06:05 +01:00
Oli Scherer
bd04091a16
Update README.md
...
Co-authored-by: Ralf Jung <post@ralfj.de >
2021-01-30 20:05:21 +01:00
bors
bcb87a70f8
Auto merge of #1696 - RalfJung:abi-check, r=RalfJung
...
add test for caller ABI check
2021-01-29 20:16:49 +00:00
Ralf Jung
9d777d8410
add test for caller ABI check
2021-01-29 21:16:17 +01:00
bors
b38dc837f2
Auto merge of #1670 - unseddd:abi, r=RalfJung
...
Add ABI check for shims
Resolves #1631
2021-01-29 19:36:30 +00:00
bors
099e0a1661
Auto merge of #1694 - JohnTitor:rustup, r=RalfJung
...
Rustup for rust-lang/rust#79951
cc https://github.com/rust-lang/rust/issues/81467
2021-01-28 13:48:28 +00:00
Yuki Okushi
53612ece7c
Rustup for rust-lang/rust#79951
2021-01-28 22:31:22 +09:00
Oli Scherer
35ece43ef7
Document -Zmiri-compare-exchange-weak-failure-rate
2021-01-28 10:58:33 +01:00
bors
a0485c5a90
Auto merge of #1686 - thomcc:cmpxchg_weak, r=oli-obk
...
Add random failures to compare_exchange_weak
In practice this is pretty useful for detecting bugs.
This fails more frequently than realistic (~~50%~~ (now 80%, controlled by a flag) of the time). I couldn't find any existing code that tries to model this (tsan, cdschecker, etc all seem to have TODOs there). Relacy models it with a 25% or 50% failure chance depending on some settings.
CC `@JCTyblaidd` who wrote the code this modifies initially, and seems interested in this subject.
2021-01-28 09:52:04 +00:00
Nym Seddon
de4eea9d49
Add ABI check for shims
2021-01-27 22:32:25 +00:00
bors
e23e0b2d12
Auto merge of #1692 - RalfJung:rustup, r=RalfJung
...
rustup; more slack for timing tests
2021-01-27 09:44:48 +00:00
Ralf Jung
e308eeb3f1
rustup; more slack for timing tests
2021-01-27 10:44:08 +01:00
bors
755a3225cd
Auto merge of #1690 - RalfJung:rustup, r=RalfJung
...
rustup; allow some lints
2021-01-26 10:48:36 +00:00
Ralf Jung
0e56bff5f9
erroneous_const span now changes with inlining
2021-01-26 11:48:11 +01:00
Ralf Jung
d38e861f1e
rustup; allow some lints
2021-01-26 11:43:39 +01:00
Thom Chiovoloni
d310620c11
Allow configuring the failure rate with -Zmiri-compare-exchange-weak-failure-rate
2021-01-26 00:13:54 -08:00
Thom Chiovoloni
d4b592ed17
Fail 80% of the time on weak cmpxchg, not 50%
2021-01-26 00:13:54 -08:00
Thom Chiovoloni
efd2d55e00
review nits
2021-01-26 00:13:54 -08:00
Thom Chiovoloni
b6eccc6482
Test that _weak atomics sometimes fail
2021-01-26 00:13:54 -08:00
Thom Chiovoloni
c678bd722e
Add random failures to compare_exchange_weak
2021-01-26 00:13:54 -08:00
bors
de0800e83b
Auto merge of #1688 - RalfJung:rustup, r=RalfJung
...
adjust Windows shims for stdlib changes (Windows XP removal)
2021-01-25 10:05:12 +00:00
Ralf Jung
13dd513254
adjust Windows shims for stdlib changes (Windows XP removal)
2021-01-25 10:43:48 +01:00
bors
5483ed5836
Auto merge of #1687 - hyd-dev:zulip, r=RalfJung
...
Fix `\n` in Zulip message
https://rust-lang.zulipchat.com/#narrow/stream/269128-miri/topic/Cron.20Job.20Failure/near/223865005 :
> Dear `@**RalfJ**` and `@**oli**\n\nIt` would appear that the Miri cron job build failed. Would you mind investigating this issue?\n\nThanks in advance!\nSincerely,\nThe Miri Cronjobs Bot
This PR changes that to:
> Dear `@**RalfJ**` and `@**oli**`
>
> It would appear that the Miri cron job build failed. Would you mind investigating this issue?
>
> Thanks in advance!
> Sincerely,
> The Miri Cronjobs Bot
2021-01-25 09:43:07 +00:00
hyd-dev
a5d7ae5816
Fix \n in Zulip message
...
https://rust-lang.zulipchat.com/#narrow/stream/269128-miri/topic/Cron.20Job.20Failure/near/223865005
2021-01-25 16:12:29 +08:00
bors
853254f467
Auto merge of #1675 - hyd-dev:proc-macro-unit-test, r=RalfJung
...
[cargo-miri] Skip unit tests of `proc-macro` crates
Fixes #1660 .
2021-01-24 15:50:51 +00:00
hyd-dev
28577924e7
Add a test for unit test of proc-macro crate
2021-01-24 23:48:17 +08:00
hyd-dev
ecab8a4fae
Skip unit tests of proc-macro crates
2021-01-24 23:48:06 +08:00
bors
c26fa8321a
Auto merge of #1685 - RalfJung:readme, r=RalfJung
...
add -Zmiri-disable-data-race-detector to readme
2021-01-24 15:13:28 +00:00
Ralf Jung
056016571f
add -Zmiri-disable-data-race-detector to readme
2021-01-24 15:58:37 +01:00
bors
5e9bf46b46
Auto merge of #1683 - frewsxcv:frewsxcv-nprocessors, r=RalfJung
...
Add shim for libc::sysconf(libc::_SC_NPROCESSORS_CONF)
`libc::sysconf(libc::_SC_NPROCESSORS_CONF)` is used by AArch64 devices to get the number of CPUs in the `num_cpus` crate:
https://github.com/seanmonstar/num_cpus/blob/b423db0a698b035914ae1fd6b7ce5d2a4e727b46/src/lib.rs#L337-L342
2021-01-23 17:37:22 +00:00
Ralf Jung
7d8f8c405f
macos: support aarch64 link names
2021-01-23 18:14:57 +01:00
Ralf Jung
848be1bf82
implement aarch64 hint 'intrinsic'
2021-01-23 18:11:01 +01:00
bors
e3ca994a6d
Auto merge of #1684 - RalfJung:env, r=oli-obk
...
prefer build-time env vars over run-time values
Fixes https://github.com/rust-lang/miri/issues/1661
2021-01-23 15:59:58 +00:00
Ralf Jung
4a13f24839
expand README
2021-01-23 16:54:00 +01:00
Corey Farwell
36ce776997
Test aarch64-apple-darwin
2021-01-23 10:51:36 -05:00
Ralf Jung
225e255cfe
prefer build-time env vars over run-time values
2021-01-23 16:51:29 +01:00
Corey Farwell
2aedbf0993
Add shim for libc::sysconf(libc::_SC_NPROCESSORS_CONF)
2021-01-22 09:16:27 -05:00
bors
6fdda8aac9
Auto merge of #1682 - RalfJung:rustup, r=RalfJung
...
rustup; test swap of element with itself
Cc https://github.com/rust-lang/rust/issues/80682
2021-01-22 08:23:36 +00:00
Ralf Jung
3990debf82
rustup; test swap of element with itself
2021-01-22 09:22:53 +01:00
hyd-dev
eae95693d8
Add ArgFlagValueIter
2021-01-19 01:18:45 +08:00
bors
903bfd82bf
Auto merge of #1681 - RalfJung:rustup, r=RalfJung
...
rustup; remove some intrinsics that are gone or moved to rustc
2021-01-18 12:02:12 +00:00
Ralf Jung
3d01ba11c0
rustup; remove some intrinsics that are gone or moved to rustc
2021-01-18 12:55:30 +01:00
bors
d814eaa1a7
Auto merge of #1680 - LeSeulArtichaut:polite-bot, r=RalfJung
...
Teach the miri cronjobs to speak politely
> Please be kind and courteous. There’s no need to be mean or rude.
― Rust Code of conduct
2021-01-17 20:41:57 +00:00
LeSeulArtichaut
a4a643e7cb
Teach the miri cronjobs to speak politely
2021-01-17 21:26:24 +01:00
bors
ba244e3e7c
Auto merge of #1679 - hyd-dev:min-const-generics, r=RalfJung
...
Remove `#![feature(const_generics)]` and `#![allow(incomplete_features)]`
`#![feature(min_const_generics)]` has been [stabilized](https://github.com/rust-lang/rust/pull/79135 ), so I removed `#![feature(const_generics)]` and `#![allow(incomplete_features)]` (I assume Miri is not built by the beta bootstrap compiler so it's fine to just remove them).
The test [`tests/run-pass/specialization.rs` also has a `#![allow(incomplete_features)]` for `#![feature(specialization)]`](https://github.com/rust-lang/miri/blob/9949d9e4/tests/run-pass/specialization.rs#L1-L2 ). I think that can be removed and `#![feature(specialization)]` can be replaced with `#![feature(min_specialization)]`, but I'm not sure whether I should do that because it's a test. Feel free to ask me to remove it if it's fine to do so.
2021-01-17 16:28:34 +00:00
hyd-dev
9949d9e417
Remove #![feature(const_generics)] and #![allow(incomplete_features)]
2021-01-17 23:28:20 +08:00
bors
7e3af26d66
Auto merge of #1678 - RalfJung:features, r=RalfJung
...
remove some unnecessary feature gates
2021-01-16 20:57:00 +00:00
Ralf Jung
7125b86c33
remove some unnecessary feature gates
2021-01-16 18:27:10 +01:00
bors
b666a38c50
Auto merge of #1676 - RalfJung:zulip, r=RalfJung
...
undo cronjob deliberate failure
2021-01-16 09:30:19 +00:00