Commit Graph

292 Commits

Author SHA1 Message Date
Ralf Jung 8ecd767791 fix test failure from diagnostics change 2019-09-29 11:30:28 -04:00
Christian Poveda 145a5826d5 Check that chdir fails for non-utf8 paths 2019-09-24 17:28:38 -05:00
Oliver Scherer b952584186 Rustup to 1.39.0-nightly (1e869133b 2019-09-09) 2019-09-09 13:00:20 +02:00
Ralf Jung f67af5a1c2 test too big slice 2019-08-31 08:41:55 +02:00
Ralf Jung cecbe1611b test for invalid wide raw ptr 2019-08-29 17:19:09 +02:00
Ralf Jung 94cd0ce734 fix test failure due to my own lint 2019-08-18 11:16:02 +02:00
Ralf Jung 2f95d4d50c remove dead code 2019-08-15 11:01:03 +02:00
Ralf Jung 60a0688185 adjust tests for eager pointer checks on deref 2019-08-15 11:01:03 +02:00
Ralf Jung b93629262d test that even &Cell must be dereferencable 2019-08-09 19:22:47 +02:00
bors b09ae31da0 Auto merge of #871 - RalfJung:miri-rustc-cleanup, r=RalfJung
Cleanup after rustc bootstrap tests Miri with a separate libstd

Should only be merged after https://github.com/rust-lang/rust/pull/63162 got the green light.
2019-08-08 20:43:47 +00:00
Ralf Jung d26917a9d6 fix for latest rustc 2019-08-05 10:45:48 +02:00
Ralf Jung f47e58950b check that atomics are sufficiently aligned, and add test 2019-08-04 10:30:42 +02:00
Ralf Jung a41ec9aacb adjust error messages in tests 2019-08-03 20:54:57 +02:00
Ralf Jung bff6b05424 more consistent test name 2019-08-03 17:27:50 +02:00
Ralf Jung 773f6aeb4c remove some compile-fail tests that now work 2019-08-03 15:01:04 +02:00
Ralf Jung 2973063fa3 test dangling ZST deref 2019-08-02 14:26:15 +02:00
Ralf Jung c4c2716f4e make reborrow shallow, and fix tests for that 2019-08-02 08:09:22 +02:00
Ralf Jung 6c545ba340 the compile-fail-norustc hack is no longer needed 2019-07-31 15:29:55 +02:00
Ralf Jung d5ca345c36 remove redundant tests / flags 2019-07-23 23:26:25 +02:00
Ralf Jung 3c1ab78196 review failing compile-fail tests 2019-07-23 23:25:06 +02:00
Ralf Jung 59190e8542 disable some compile-fail tests for rustc 2019-07-20 22:38:41 +02:00
Ralf Jung 95e6e671bf fix compile-fail tests for latest rustc 2019-07-16 18:39:18 +02:00
Ralf Jung 4f6a56f54f better error message when the program tries to spawn a thread 2019-07-06 10:07:21 +02:00
Ralf Jung b29cb7d551 avoid catching errors 2019-07-03 10:56:25 +02:00
Ralf Jung 0bb50ada34 make sure we catch alignment problems even with intrptrcast 2019-06-29 14:31:54 +02:00
Christian Poveda 792d665a1f Fix merge conflicts 2019-06-25 00:57:33 -05:00
Ralf Jung 7e7b5d42ba Apply suggestions from code review
Co-Authored-By: Oliver Scherer <github35764891676564198441@oli-obk.de>
2019-06-24 14:50:27 +02:00
Ralf Jung 4d65aa8f20 expand and better explain alignment check tests 2019-06-24 08:40:45 +02:00
Ralf Jung 4dc188a60e adjust for refactored memory pointer checks 2019-06-23 20:19:26 +02:00
Christian Poveda e57447014d Duplicate compile-fail tests for intptrcast 2019-06-21 16:32:54 -05:00
Ralf Jung 5472755f16 add a failing test where an immovable generator gets moved 2019-06-21 21:48:27 +02:00
Ralf Jung 04fa38dd1b allow some inequality comparisons between pointers and integers 2019-06-20 16:38:55 +02:00
Ralf Jung 7ce36226e6 implement and test unchecked_{add,sub,mul} intrinsics 2019-06-16 11:10:33 +02:00
Ralf Jung cf748149ce test unchecked_rem 2019-06-16 11:10:33 +02:00
Ralf Jung fc90124489 test exact_div UB detection 2019-06-16 11:10:33 +02:00
Ralf Jung 9f48b3029c test that we cannot access unescaped static memory with a raw ptr 2019-06-02 22:16:02 +02:00
Ralf Jung e03255d625 fix existing tests
fix thread-local example to no longer write to pointers derived from a shared ref;
fix compile-fail test
2019-06-02 22:16:02 +02:00
Ralf Jung 0dfc1c97c5 test weak_into_raw 2019-05-29 19:36:16 +02:00
Ralf Jung f10ab1991c fix error pattern 2019-05-27 19:37:31 +02:00
Ralf Jung 74f98b3803 test for new read rules 2019-05-21 15:43:18 +02:00
Ralf Jung 4b9e1544c2 give up on two-phase borrows 2019-05-17 15:02:31 +02:00
Ralf Jung f676f2265b make writes act stack-like 2019-05-15 18:12:58 +02:00
Ralf Jung 617195eb12 add arielby's example 2019-04-30 20:18:29 +02:00
Ralf Jung d410b13139 fix compile-fail ref files 2019-04-21 13:18:05 +02:00
Ralf Jung 287ffb8bba test another version of 'creating a shared ref must not leak the Unique' 2019-04-19 08:46:40 +02:00
Ralf Jung 7d9dc6e698 test that creating a 2nd mutable ref from a NonNull invalidates the first 2019-04-18 14:43:25 +02:00
Ralf Jung e1ed855a44 more tests -- also one showing why we are not done yet 2019-04-17 16:02:57 +02:00
Ralf Jung 72cec0562c add tests for fixes: sharing no longer leaks, and we can handle entering interior mutability 2019-04-17 16:02:57 +02:00
Ralf Jung 46d5fd8487 barriers are dead, long live protectors -- this enables overlapping two-phase borrows! 2019-04-17 16:02:57 +02:00
Ralf Jung ef52be031c adjust compile-fail error messages
This also passes miri-test-libstd!
2019-04-17 16:02:57 +02:00