]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agostacked borrows: track refs and derefs
Ralf Jung [Tue, 16 Oct 2018 16:01:50 +0000 (18:01 +0200)]
stacked borrows: track refs and derefs

5 years agoadd env var emulation test, and fix it complaining about leaks
Ralf Jung [Tue, 16 Oct 2018 10:44:04 +0000 (12:44 +0200)]
add env var emulation test, and fix it complaining about leaks

5 years agoadd Borrow tag to pointers; remove old locking code
Ralf Jung [Tue, 16 Oct 2018 09:21:38 +0000 (11:21 +0200)]
add Borrow tag to pointers; remove old locking code

5 years agoMerge pull request #484 from RalfJung/mir-opt
Ralf Jung [Tue, 16 Oct 2018 16:35:07 +0000 (18:35 +0200)]
Merge pull request #484 from RalfJung/mir-opt

Test with opt levels 0 and 1

5 years agoexplain our flags in the README
Ralf Jung [Mon, 15 Oct 2018 07:21:29 +0000 (09:21 +0200)]
explain our flags in the README

5 years agotest with opt levels 0 and 1
Ralf Jung [Tue, 16 Oct 2018 15:57:03 +0000 (17:57 +0200)]
test with opt levels 0 and 1

5 years agoMerge pull request #482 from apoelstra/2018-10-lib-tests
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Tue, 16 Oct 2018 09:48:59 +0000 (11:48 +0200)]
Merge pull request #482 from apoelstra/2018-10-lib-tests

cargo-miri: support running unit tests for libraries as well as test binaries

5 years agocargo-miri: support running unit tests for libraries as well as test binaries
Andrew Poelstra [Mon, 15 Oct 2018 18:38:07 +0000 (18:38 +0000)]
cargo-miri: support running unit tests for libraries as well as test binaries

5 years agoMerge pull request #478 from RalfJung/rustc-tests
Ralf Jung [Sun, 14 Oct 2018 10:04:58 +0000 (12:04 +0200)]
Merge pull request #478 from RalfJung/rustc-tests

make rustc-tests a binary in the main project

5 years agomake rustc-tests a binary in the main project
Ralf Jung [Sun, 14 Oct 2018 09:45:56 +0000 (11:45 +0200)]
make rustc-tests a binary in the main project

5 years agoMerge pull request #473 from solson/rustup
Ralf Jung [Sun, 14 Oct 2018 09:29:14 +0000 (11:29 +0200)]
Merge pull request #473 from solson/rustup

rustup: Update for rustc validation fixes

5 years agowhitelist Windows Mutex
Ralf Jung [Sun, 14 Oct 2018 09:06:36 +0000 (11:06 +0200)]
whitelist Windows Mutex

5 years agofix rustc_test compilation
Ralf Jung [Sun, 14 Oct 2018 08:50:35 +0000 (10:50 +0200)]
fix rustc_test compilation

5 years agobump toolchain
Ralf Jung [Sun, 14 Oct 2018 08:35:48 +0000 (10:35 +0200)]
bump toolchain

5 years agoMerge remote-tracking branch 'origin/master' into rustup
Ralf Jung [Sun, 14 Oct 2018 08:35:27 +0000 (10:35 +0200)]
Merge remote-tracking branch 'origin/master' into rustup

5 years agoMerge pull request #477 from RalfJung/miri-validate
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Fri, 12 Oct 2018 10:26:39 +0000 (12:26 +0200)]
Merge pull request #477 from RalfJung/miri-validate

Validate more things

5 years agoenable validation for compile-fail tests, and add some new ones
Ralf Jung [Fri, 12 Oct 2018 08:54:37 +0000 (10:54 +0200)]
enable validation for compile-fail tests, and add some new ones

5 years agowhitelist std::ptr::read
Ralf Jung [Fri, 12 Oct 2018 08:40:44 +0000 (10:40 +0200)]
whitelist std::ptr::read

5 years agoMerge pull request #476 from RalfJung/atomics
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Fri, 12 Oct 2018 07:31:09 +0000 (09:31 +0200)]
Merge pull request #476 from RalfJung/atomics

atomics wrap around on overflow

5 years agoatomics wrap around on overflow
Ralf Jung [Fri, 12 Oct 2018 07:07:56 +0000 (09:07 +0200)]
atomics wrap around on overflow

5 years agodo not validate start-fn code
Ralf Jung [Thu, 11 Oct 2018 14:10:04 +0000 (16:10 +0200)]
do not validate start-fn code

5 years agofix return place for __rust_maybe_catch_panic
Ralf Jung [Thu, 11 Oct 2018 13:28:21 +0000 (15:28 +0200)]
fix return place for __rust_maybe_catch_panic

5 years agoMerge pull request #474 from RalfJung/miri-validate
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Thu, 11 Oct 2018 11:36:43 +0000 (13:36 +0200)]
Merge pull request #474 from RalfJung/miri-validate

Enable enforcing the validity invariant per default

5 years agoenable validation per default, but add a flag to disable it and use that for some...
Ralf Jung [Thu, 11 Oct 2018 09:24:22 +0000 (11:24 +0200)]
enable validation per default, but add a flag to disable it and use that for some run-pass tests

compile-fail does not do validation yet

5 years agoMerge pull request #468 from RalfJung/pointer-provenance
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Thu, 11 Oct 2018 07:15:35 +0000 (09:15 +0200)]
Merge pull request #468 from RalfJung/pointer-provenance

update for ptr provenance

5 years agoenforce_validity became a function
Ralf Jung [Thu, 11 Oct 2018 07:02:28 +0000 (09:02 +0200)]
enforce_validity became a function

5 years agoexplain a test
Ralf Jung [Wed, 10 Oct 2018 07:06:44 +0000 (09:06 +0200)]
explain a test

5 years agoupdate for size_and_align considering extern types
Ralf Jung [Tue, 9 Oct 2018 20:35:14 +0000 (22:35 +0200)]
update for size_and_align considering extern types

5 years agoupdate for new return place handling
Ralf Jung [Tue, 9 Oct 2018 20:03:14 +0000 (22:03 +0200)]
update for new return place handling

5 years agobump toolchain
Ralf Jung [Thu, 11 Oct 2018 06:45:57 +0000 (08:45 +0200)]
bump toolchain

5 years agoupdate for ptr provenance
Ralf Jung [Fri, 5 Oct 2018 16:08:50 +0000 (18:08 +0200)]
update for ptr provenance

5 years agoMerge pull request #470 from RalfJung/ptr-offset
Ralf Jung [Wed, 10 Oct 2018 09:28:33 +0000 (11:28 +0200)]
Merge pull request #470 from RalfJung/ptr-offset

only allow 0-offset on integer pointers

5 years agoMerge branch 'master' into ptr-offset
Ralf Jung [Wed, 10 Oct 2018 08:03:34 +0000 (10:03 +0200)]
Merge branch 'master' into ptr-offset

5 years agoMerge pull request #467 from solson/rustup
Ralf Jung [Wed, 10 Oct 2018 08:03:22 +0000 (10:03 +0200)]
Merge pull request #467 from solson/rustup

rustup; test for return type mismatch

5 years agoMerge branch 'master' into rustup
Ralf Jung [Wed, 10 Oct 2018 07:43:23 +0000 (09:43 +0200)]
Merge branch 'master' into rustup

5 years agoMerge pull request #471 from RalfJung/vergen
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Wed, 10 Oct 2018 07:09:08 +0000 (09:09 +0200)]
Merge pull request #471 from RalfJung/vergen

update to vergen 3

5 years agobump toolchain
Ralf Jung [Wed, 10 Oct 2018 07:08:03 +0000 (09:08 +0200)]
bump toolchain

5 years agoMerge remote-tracking branch 'origin/master' into rustup
Ralf Jung [Wed, 10 Oct 2018 07:07:26 +0000 (09:07 +0200)]
Merge remote-tracking branch 'origin/master' into rustup

5 years agoupdate to vergen 3
Ralf Jung [Tue, 9 Oct 2018 18:17:54 +0000 (20:17 +0200)]
update to vergen 3

5 years ago0-offset is also not always okay
Ralf Jung [Mon, 8 Oct 2018 09:22:52 +0000 (11:22 +0200)]
0-offset is also not always okay

5 years agoonly allow offset-by-0 on integer pointers
Ralf Jung [Mon, 8 Oct 2018 08:22:26 +0000 (10:22 +0200)]
only allow offset-by-0 on integer pointers

5 years agofix for fn allocations now having an alignment (1) and a size (0)
Ralf Jung [Mon, 8 Oct 2018 11:35:54 +0000 (13:35 +0200)]
fix for fn allocations now having an alignment (1) and a size (0)

5 years agoMerge pull request #469 from RalfJung/ptr-offset
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Mon, 8 Oct 2018 06:18:11 +0000 (08:18 +0200)]
Merge pull request #469 from RalfJung/ptr-offset

ensure that we cannot use (wrapping_)offset to go from an int ptr to a real ptr

5 years agouse Box::into_raw
Ralf Jung [Sun, 7 Oct 2018 08:35:34 +0000 (10:35 +0200)]
use Box::into_raw

5 years agoensure that we cannot use (wrapping_)offset to go from an int ptr to a real ptr
Ralf Jung [Sat, 6 Oct 2018 16:32:39 +0000 (18:32 +0200)]
ensure that we cannot use (wrapping_)offset to go from an int ptr to a real ptr

5 years agorustup; test for return type mismatch
Ralf Jung [Tue, 2 Oct 2018 19:16:55 +0000 (21:16 +0200)]
rustup; test for return type mismatch

5 years agoMerge pull request #466 from solson/rustup
Ralf Jung [Tue, 2 Oct 2018 08:00:31 +0000 (10:00 +0200)]
Merge pull request #466 from solson/rustup

rustup

5 years agorustup
Ralf Jung [Tue, 2 Oct 2018 07:25:55 +0000 (09:25 +0200)]
rustup

5 years agoMerge pull request #464 from RalfJung/travis
Oliver S̶c̶h̶n̶e̶i̶d̶e̶r Scherer [Mon, 1 Oct 2018 11:09:38 +0000 (13:09 +0200)]
Merge pull request #464 from RalfJung/travis

update CI

5 years agoupdate CI: Avoid downloading Rust twice
Ralf Jung [Mon, 1 Oct 2018 10:32:22 +0000 (12:32 +0200)]
update CI: Avoid downloading Rust twice

5 years agoMerge pull request #462 from RalfJung/needs-drop
Ralf Jung [Mon, 1 Oct 2018 07:19:46 +0000 (09:19 +0200)]
Merge pull request #462 from RalfJung/needs-drop

remove needs_drop impl

5 years agomove 'cargo miri' test down so it is not the first thing testing start-fn
Ralf Jung [Mon, 1 Oct 2018 06:27:03 +0000 (08:27 +0200)]
move 'cargo miri' test down so it is not the first thing testing start-fn

5 years agoremove needs_drop impl
Ralf Jung [Mon, 1 Oct 2018 06:24:42 +0000 (08:24 +0200)]
remove needs_drop impl

5 years agoMerge pull request #461 from solson/rustup
Ralf Jung [Sat, 29 Sep 2018 18:02:32 +0000 (20:02 +0200)]
Merge pull request #461 from solson/rustup

fix test for latest rustc

5 years agofix test for latest rustc
Ralf Jung [Sat, 29 Sep 2018 17:39:34 +0000 (19:39 +0200)]
fix test for latest rustc

5 years agoMerge pull request #459 from solson/rustup
Ralf Jung [Mon, 24 Sep 2018 21:34:34 +0000 (23:34 +0200)]
Merge pull request #459 from solson/rustup

Rustup

5 years agobump toolchain
Ralf Jung [Mon, 24 Sep 2018 21:01:12 +0000 (23:01 +0200)]
bump toolchain

5 years agoMerge remote-tracking branch 'origin/master' into rustup
Ralf Jung [Mon, 24 Sep 2018 21:00:58 +0000 (23:00 +0200)]
Merge remote-tracking branch 'origin/master' into rustup

5 years agoMerge pull request #460 from RalfJung/static-mut
Ralf Jung [Mon, 24 Sep 2018 20:57:59 +0000 (22:57 +0200)]
Merge pull request #460 from RalfJung/static-mut

Test mutating a non-mut static with interior mutability

5 years agotest mutating a non-mut static with interior mutability
Ralf Jung [Sun, 23 Sep 2018 07:14:55 +0000 (09:14 +0200)]
test mutating a non-mut static with interior mutability

5 years agoMerge pull request #457 from RalfJung/field-align
Ralf Jung [Sat, 22 Sep 2018 07:53:48 +0000 (09:53 +0200)]
Merge pull request #457 from RalfJung/field-align

test for interestingly aligned field access

5 years agobump toolchain
Ralf Jung [Sat, 22 Sep 2018 06:44:38 +0000 (08:44 +0200)]
bump toolchain

5 years agotest for interestingly aligned field access
Ralf Jung [Mon, 17 Sep 2018 16:05:36 +0000 (18:05 +0200)]
test for interestingly aligned field access

5 years agorustup
Ralf Jung [Thu, 20 Sep 2018 10:24:55 +0000 (12:24 +0200)]
rustup

5 years agoMerge pull request #458 from RalfJung/tls
Eduard-Mihai Burtescu [Wed, 19 Sep 2018 23:31:34 +0000 (02:31 +0300)]
Merge pull request #458 from RalfJung/tls

Move TLS data to machine data

5 years agoMove TLS data to machine data
Ralf Jung [Wed, 19 Sep 2018 23:00:59 +0000 (01:00 +0200)]
Move TLS data to machine data

There is no good reason to let the machine store stuff in the machine *and* in memory. I plan to get rid of the latter.

5 years agoMerge pull request #453 from RalfJung/zst
Ralf Jung [Tue, 18 Sep 2018 07:05:58 +0000 (09:05 +0200)]
Merge pull request #453 from RalfJung/zst

ZST pointers and pointer equality

5 years agoupdate toolchain
Ralf Jung [Tue, 18 Sep 2018 06:32:23 +0000 (08:32 +0200)]
update toolchain

5 years agomore compile-fail ptr equality tests, to rule out any non-determinism; and fix ptr...
Ralf Jung [Sat, 15 Sep 2018 15:12:48 +0000 (17:12 +0200)]
more compile-fail ptr equality tests, to rule out any non-determinism; and fix ptr equality to fail all of them.

At least these are the cases I can think of right now.

5 years agotest more operations on dangling ZST pointers
Ralf Jung [Sat, 15 Sep 2018 14:35:37 +0000 (16:35 +0200)]
test more operations on dangling ZST pointers

5 years agoMerge pull request #456 from solson/rustup
Ralf Jung [Mon, 17 Sep 2018 08:01:44 +0000 (10:01 +0200)]
Merge pull request #456 from solson/rustup

fix test for rustup

5 years agofix test for rustup
Ralf Jung [Mon, 17 Sep 2018 07:18:57 +0000 (09:18 +0200)]
fix test for rustup

5 years agoMerge pull request #446 from RalfJung/zero-sized-accesses
Ralf Jung [Mon, 17 Sep 2018 07:15:36 +0000 (09:15 +0200)]
Merge pull request #446 from RalfJung/zero-sized-accesses

Strictly enforce pointer validity even for zero-sized accesses

5 years agobump toolchain
Ralf Jung [Mon, 17 Sep 2018 06:40:17 +0000 (08:40 +0200)]
bump toolchain

5 years agoMerge remote-tracking branch 'origin/master' into zero-sized-accesses
Ralf Jung [Mon, 17 Sep 2018 06:39:59 +0000 (08:39 +0200)]
Merge remote-tracking branch 'origin/master' into zero-sized-accesses

5 years agoadd some compile-fail tests
Ralf Jung [Sun, 16 Sep 2018 14:47:37 +0000 (16:47 +0200)]
add some compile-fail tests

5 years agoMerge pull request #455 from RalfJung/cargo-miri-version
Ralf Jung [Sun, 16 Sep 2018 13:37:52 +0000 (15:37 +0200)]
Merge pull request #455 from RalfJung/cargo-miri-version

cargo miri: show version number

5 years agocargo miri: show version number
Ralf Jung [Sun, 16 Sep 2018 13:06:05 +0000 (15:06 +0200)]
cargo miri: show version number

5 years agoMerge pull request #451 from TimDiekmann/master
Ralf Jung [Sat, 15 Sep 2018 11:52:20 +0000 (13:52 +0200)]
Merge pull request #451 from TimDiekmann/master

Remove unchecked_shr/shl from intrinsics

5 years agobump Rust
Ralf Jung [Sat, 15 Sep 2018 08:31:20 +0000 (10:31 +0200)]
bump Rust

5 years agomove MemoryData to memory.rs; remove all the Hashing stuff
Ralf Jung [Sun, 9 Sep 2018 08:57:39 +0000 (10:57 +0200)]
move MemoryData to memory.rs; remove all the Hashing stuff

5 years agoRemove (overflowing_)add/mul/sub(_with_overflow)
Tim [Thu, 6 Sep 2018 14:49:08 +0000 (16:49 +0200)]
Remove (overflowing_)add/mul/sub(_with_overflow)

5 years agoRemove unchecked_shr/shl from intrinsics
Tim [Thu, 6 Sep 2018 14:07:13 +0000 (16:07 +0200)]
Remove unchecked_shr/shl from intrinsics

5 years agoMerge pull request #448 from TheDarkula/master
Ralf Jung [Sat, 1 Sep 2018 10:28:56 +0000 (12:28 +0200)]
Merge pull request #448 from TheDarkula/master

Removed transmute from intrinsic.rs

5 years agoMerge branch 'master' into master
Ralf Jung [Sat, 1 Sep 2018 09:47:52 +0000 (11:47 +0200)]
Merge branch 'master' into master

5 years agoRemoved transmute from intrinsic.rs
thedarkula [Thu, 30 Aug 2018 20:06:53 +0000 (21:06 +0100)]
Removed transmute from intrinsic.rs

5 years agoMerge pull request #445 from solson/rustup
Ralf Jung [Sat, 1 Sep 2018 09:46:01 +0000 (11:46 +0200)]
Merge pull request #445 from solson/rustup

Rustup

5 years agomore permissive pointer comparison logic
Ralf Jung [Sat, 1 Sep 2018 09:26:54 +0000 (11:26 +0200)]
more permissive pointer comparison logic

5 years agoMerge branch 'master' into rustup
Ralf Jung [Sat, 1 Sep 2018 08:35:19 +0000 (10:35 +0200)]
Merge branch 'master' into rustup

5 years agobump toolchain
Ralf Jung [Sat, 1 Sep 2018 08:33:53 +0000 (10:33 +0200)]
bump toolchain

5 years agoMerge pull request #444 from RalfJung/windows
Ralf Jung [Fri, 31 Aug 2018 06:32:31 +0000 (08:32 +0200)]
Merge pull request #444 from RalfJung/windows

Unignore a bunch of tests that actually work

5 years agounignore a bunch of tests that actually work
Ralf Jung [Thu, 30 Aug 2018 13:57:17 +0000 (15:57 +0200)]
unignore a bunch of tests that actually work

5 years agoalso allow comparing pointers with integers so big that they cannot be equal
Ralf Jung [Thu, 30 Aug 2018 09:04:48 +0000 (11:04 +0200)]
also allow comparing pointers with integers so big that they cannot be equal

5 years agostrictly enforce pointer validity even for zero-sized accesses
Ralf Jung [Thu, 30 Aug 2018 08:50:13 +0000 (10:50 +0200)]
strictly enforce pointer validity even for zero-sized accesses

5 years agoptr equality: only defined for ptrs in the same allocation and live ptrs
Ralf Jung [Tue, 28 Aug 2018 16:13:58 +0000 (18:13 +0200)]
ptr equality: only defined for ptrs in the same allocation and live ptrs

5 years agonew tests for new fn arg passing code
Ralf Jung [Mon, 27 Aug 2018 15:08:42 +0000 (17:08 +0200)]
new tests for new fn arg passing code

5 years agomove some more helpers to rustc
Ralf Jung [Sun, 26 Aug 2018 18:42:26 +0000 (20:42 +0200)]
move some more helpers to rustc

5 years agoMerge pull request #434 from solson/rustup
Oliver Schneider [Thu, 30 Aug 2018 08:31:05 +0000 (10:31 +0200)]
Merge pull request #434 from solson/rustup

rustup for big refactor; kill most of validation

5 years agono TLS dtor and no leak checks on macOS
Ralf Jung [Thu, 30 Aug 2018 07:41:57 +0000 (09:41 +0200)]
no TLS dtor and no leak checks on macOS

5 years agopretend mprotect works
Ralf Jung [Thu, 30 Aug 2018 07:22:01 +0000 (09:22 +0200)]
pretend mprotect works