]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoupdate README about what we do not support
Ralf Jung [Sun, 14 Jul 2019 07:34:08 +0000 (09:34 +0200)]
update README about what we do not support

5 years agoAuto merge of #834 - jyn514:master, r=RalfJung
bors [Sat, 13 Jul 2019 12:28:43 +0000 (12:28 +0000)]
Auto merge of #834 - jyn514:master, r=RalfJung

Give a useful error message if user gives invalid random seed

I thought this crash was in my code at first because the error was so vague.

5 years agoGive a useful error message if user gives invalid random seed
Joshua Nelson [Sat, 13 Jul 2019 12:28:33 +0000 (08:28 -0400)]
Give a useful error message if user gives invalid random seed

5 years agoAuto merge of #836 - RalfJung:arrays, r=RalfJung
bors [Sat, 13 Jul 2019 08:25:22 +0000 (08:25 +0000)]
Auto merge of #836 - RalfJung:arrays, r=RalfJung

test some const-generic-using methods

5 years agotest some const-generic-using methods
Ralf Jung [Sat, 13 Jul 2019 08:23:40 +0000 (10:23 +0200)]
test some const-generic-using methods

5 years agoAuto merge of #833 - RalfJung:win, r=RalfJung
bors [Thu, 11 Jul 2019 17:01:14 +0000 (17:01 +0000)]
Auto merge of #833 - RalfJung:win, r=RalfJung

reenable all tests on Windows

5 years agothread creation error for Windows
Ralf Jung [Thu, 11 Jul 2019 16:59:11 +0000 (18:59 +0200)]
thread creation error for Windows

5 years agoreenable all tests on Windows
Ralf Jung [Thu, 11 Jul 2019 16:41:53 +0000 (18:41 +0200)]
reenable all tests on Windows

5 years agoAuto merge of #830 - RalfJung:check-place, r=RalfJung
bors [Thu, 11 Jul 2019 15:13:50 +0000 (15:13 +0000)]
Auto merge of #830 - RalfJung:check-place, r=RalfJung

Fix validation and reborrowing of integer pointers

Depends on https://github.com/rust-lang/rust/pull/62441

5 years agobump rust
Ralf Jung [Thu, 11 Jul 2019 15:13:28 +0000 (17:13 +0200)]
bump rust

5 years agowe do this these days
Ralf Jung [Wed, 10 Jul 2019 12:38:49 +0000 (14:38 +0200)]
we do this these days

5 years agobump rustc
Ralf Jung [Wed, 10 Jul 2019 12:37:52 +0000 (14:37 +0200)]
bump rustc

5 years agoforce pointers before reborrowing; fixes cargo miri test suite
Ralf Jung [Sat, 6 Jul 2019 12:08:37 +0000 (14:08 +0200)]
force pointers before reborrowing; fixes cargo miri test suite

5 years agonow we can also enable the ptr_int_cast test again
Ralf Jung [Sat, 6 Jul 2019 11:16:54 +0000 (13:16 +0200)]
now we can also enable the ptr_int_cast test again

5 years agoadjust for rustc changes; normalize mplace before doing freeze-sensitive visit
Ralf Jung [Sat, 6 Jul 2019 11:14:06 +0000 (13:14 +0200)]
adjust for rustc changes; normalize mplace before doing freeze-sensitive visit

5 years agoptr_offset works fine with intptrcast now
Ralf Jung [Sat, 6 Jul 2019 09:05:51 +0000 (11:05 +0200)]
ptr_offset works fine with intptrcast now

5 years agoAuto merge of #832 - RalfJung:rustup, r=RalfJung
bors [Wed, 10 Jul 2019 07:32:43 +0000 (07:32 +0000)]
Auto merge of #832 - RalfJung:rustup, r=RalfJung

bump rustc

5 years agobump rustc
Ralf Jung [Wed, 10 Jul 2019 07:31:31 +0000 (09:31 +0200)]
bump rustc

5 years agoAuto merge of #831 - lzutao:rustup, r=RalfJung
bors [Wed, 10 Jul 2019 06:55:57 +0000 (06:55 +0000)]
Auto merge of #831 - lzutao:rustup, r=RalfJung

Remove SliceConcatExt import

rustup https://github.com/rust-lang/rust/pull/62403
cc https://github.com/rust-lang/rust/issues/62347

5 years agoRemove SliceConcatExt import
Lzu Tao [Wed, 10 Jul 2019 02:55:04 +0000 (09:55 +0700)]
Remove SliceConcatExt import

5 years agoAuto merge of #827 - lzutao:patch-1, r=RalfJung
bors [Sat, 6 Jul 2019 10:02:17 +0000 (10:02 +0000)]
Auto merge of #827 - lzutao:patch-1, r=RalfJung

Remove stable cargo feature `default-run`

At least on beta.

5 years agoAuto merge of #826 - RalfJung:uninit, r=RalfJung
bors [Sat, 6 Jul 2019 09:40:51 +0000 (09:40 +0000)]
Auto merge of #826 - RalfJung:uninit, r=RalfJung

uninit intrinsic is gone

Finally. :D

However, to land this we'll need to fix the intptrcast issues that block https://github.com/rust-lang/miri/pull/803.

5 years agobuild: Revert update beta toolchain
Lzu Tao [Sat, 6 Jul 2019 09:35:57 +0000 (16:35 +0700)]
build: Revert update beta toolchain

5 years agoRemove stable cargo feature `default-run`
lzutao [Sat, 6 Jul 2019 09:16:34 +0000 (16:16 +0700)]
Remove stable cargo feature `default-run`

At least on beta.

5 years agoAuto merge of #824 - RalfJung:c_str, r=RalfJung
bors [Sat, 6 Jul 2019 09:17:45 +0000 (09:17 +0000)]
Auto merge of #824 - RalfJung:c_str, r=RalfJung

use Memory::read_c_str, avoid a few to_ptr

This is the Miri side of https://github.com/rust-lang/rust/pull/62257

5 years agouse Memory::read_c_str, avoid a few to_ptr
Ralf Jung [Fri, 5 Jul 2019 06:37:19 +0000 (08:37 +0200)]
use Memory::read_c_str, avoid a few to_ptr

5 years agoAuto merge of #808 - RalfJung:extra-fn, r=RalfJung
bors [Sat, 6 Jul 2019 08:26:10 +0000 (08:26 +0000)]
Auto merge of #808 - RalfJung:extra-fn, r=RalfJung

use Dlsym support to implement getentropy (and better thread spawn error)

This is the Miri side of https://github.com/rust-lang/rust/pull/62245.

Fixes https://github.com/rust-lang/miri/issues/789

5 years agobump rustc
Ralf Jung [Sat, 6 Jul 2019 07:52:28 +0000 (09:52 +0200)]
bump rustc

5 years agofix for changd machine trait signatures
Ralf Jung [Sat, 6 Jul 2019 07:51:20 +0000 (09:51 +0200)]
fix for changd machine trait signatures

5 years agoadjust for get_fn signature change
Ralf Jung [Mon, 1 Jul 2019 21:07:40 +0000 (23:07 +0200)]
adjust for get_fn signature change

5 years agogen_random: use check_ptr_access
Ralf Jung [Sun, 30 Jun 2019 21:32:25 +0000 (23:32 +0200)]
gen_random: use check_ptr_access

5 years agomove gen_random to helpers
Ralf Jung [Sun, 30 Jun 2019 21:28:24 +0000 (23:28 +0200)]
move gen_random to helpers

5 years agobump the version of getrandom that we test
Ralf Jung [Sun, 30 Jun 2019 14:52:12 +0000 (16:52 +0200)]
bump the version of getrandom that we test

5 years agobetter error message when the program tries to spawn a thread
Ralf Jung [Sun, 30 Jun 2019 14:43:05 +0000 (16:43 +0200)]
better error message when the program tries to spawn a thread

5 years agoupdate to FnVal changes; implement basic Dlsym support and use it for getentropy
Ralf Jung [Sun, 30 Jun 2019 14:03:13 +0000 (16:03 +0200)]
update to FnVal changes; implement basic Dlsym support and use it for getentropy

5 years agouninit intrinsic is gone
Ralf Jung [Fri, 5 Jul 2019 16:44:58 +0000 (18:44 +0200)]
uninit intrinsic is gone

5 years agoAuto merge of #799 - rust-lang:rustup, r=RalfJung
bors [Sat, 6 Jul 2019 07:36:28 +0000 (07:36 +0000)]
Auto merge of #799 - rust-lang:rustup, r=RalfJung

Initialize MemoryExtra with StdRng

We need this in a local branch for an synchronous rustc update.

5 years agofix test using mem::uninitialized
Ralf Jung [Sat, 6 Jul 2019 07:33:22 +0000 (09:33 +0200)]
fix test using mem::uninitialized

5 years agofix unused variable warning
Ralf Jung [Sat, 6 Jul 2019 07:32:35 +0000 (09:32 +0200)]
fix unused variable warning

5 years agobump rustc
Ralf Jung [Sat, 6 Jul 2019 07:29:58 +0000 (09:29 +0200)]
bump rustc

5 years agoMerge remote-tracking branch 'origin/master' into rustup
Ralf Jung [Sat, 6 Jul 2019 07:29:17 +0000 (09:29 +0200)]
Merge remote-tracking branch 'origin/master' into rustup

5 years agoAuto merge of #817 - RalfJung:small-alloc, r=RalfJung
bors [Fri, 5 Jul 2019 22:52:21 +0000 (22:52 +0000)]
Auto merge of #817 - RalfJung:small-alloc, r=RalfJung

align small malloc-allocations even less, and test that we do

Needs https://github.com/rust-lang/rust/pull/62295 to land.

Fixes https://github.com/rust-lang/miri/issues/812.

5 years agodangling-ptr-to-int should work now; move to noseed
Ralf Jung [Fri, 5 Jul 2019 21:51:11 +0000 (23:51 +0200)]
dangling-ptr-to-int should work now; move to noseed

5 years agobump rustc
Ralf Jung [Fri, 5 Jul 2019 21:49:30 +0000 (23:49 +0200)]
bump rustc

5 years agorename InterpretCx -> InterpCx
Ralf Jung [Fri, 5 Jul 2019 21:47:10 +0000 (23:47 +0200)]
rename InterpretCx -> InterpCx

5 years agoalign small malloc-allocations even less, and test that we do
Ralf Jung [Tue, 2 Jul 2019 07:03:45 +0000 (09:03 +0200)]
align small malloc-allocations even less, and test that we do

5 years agoAuto merge of #803 - christianpoveda:intptrcast-explicit-casts, r=RalfJung
bors [Fri, 5 Jul 2019 20:46:34 +0000 (20:46 +0000)]
Auto merge of #803 - christianpoveda:intptrcast-explicit-casts, r=RalfJung

Add tests for Intptrcast when doing explicit casts

r? @RalfJung

5 years agoMerge remote-tracking branch 'origin/master'
Ralf Jung [Fri, 5 Jul 2019 20:46:11 +0000 (22:46 +0200)]
Merge remote-tracking branch 'origin/master'

5 years agotemporarily disable validation on Windows
Ralf Jung [Fri, 5 Jul 2019 19:26:58 +0000 (21:26 +0200)]
temporarily disable validation on Windows

5 years agoAuto merge of #825 - RalfJung:no-null, r=RalfJung
bors [Fri, 5 Jul 2019 19:25:10 +0000 (19:25 +0000)]
Auto merge of #825 - RalfJung:no-null, r=RalfJung

avoid Scalar::is_null_ptr, it is going away

Comparing pointers should be done more carefully than that

5 years agotemporarily disable intptrcast advanced testing on Windows
Ralf Jung [Fri, 5 Jul 2019 17:22:22 +0000 (19:22 +0200)]
temporarily disable intptrcast advanced testing on Windows

5 years agotemporarily disable validation for 'cargo miri test' testing
Ralf Jung [Fri, 5 Jul 2019 17:21:42 +0000 (19:21 +0200)]
temporarily disable validation for 'cargo miri test' testing

5 years agofix deallocating/reallocating with integer pointers
Ralf Jung [Fri, 5 Jul 2019 17:21:21 +0000 (19:21 +0200)]
fix deallocating/reallocating with integer pointers

5 years agofix NULL in TLS dtors
Ralf Jung [Fri, 5 Jul 2019 08:08:57 +0000 (10:08 +0200)]
fix NULL in TLS dtors

5 years agoavoid Scalar::is_null_ptr, it is going away
Ralf Jung [Fri, 5 Jul 2019 07:56:42 +0000 (09:56 +0200)]
avoid Scalar::is_null_ptr, it is going away

5 years agotemporarily disable ptr_offset, maybe that helps
Ralf Jung [Thu, 4 Jul 2019 22:06:41 +0000 (00:06 +0200)]
temporarily disable ptr_offset, maybe that helps

5 years agoAuto merge of #822 - RalfJung:tls, r=RalfJung
bors [Thu, 4 Jul 2019 08:51:19 +0000 (08:51 +0000)]
Auto merge of #822 - RalfJung:tls, r=RalfJung

move tls.rs into shims module

5 years agomove tls.rs into shims module
Ralf Jung [Wed, 3 Jul 2019 21:12:44 +0000 (23:12 +0200)]
move tls.rs into shims module

5 years agoFix explicit cast test
Christian Poveda [Wed, 3 Jul 2019 18:42:01 +0000 (13:42 -0500)]
Fix explicit cast test

5 years agoUpdate rust-version
Christian Poveda [Wed, 3 Jul 2019 18:28:30 +0000 (13:28 -0500)]
Update rust-version

5 years agoAdd intptrcast test for explicit casts
Christian Poveda [Sat, 29 Jun 2019 18:17:15 +0000 (13:17 -0500)]
Add intptrcast test for explicit casts

5 years agoAuto merge of #820 - RalfJung:intptrcast, r=RalfJung
bors [Wed, 3 Jul 2019 17:13:09 +0000 (17:13 +0000)]
Auto merge of #820 - RalfJung:intptrcast, r=RalfJung

Make most tests work with Intptrcast

The one that still fails (amusingly, that's ptr_int_casts) requires some help from the librustc_mir side.

5 years agoavoid catching errors
Ralf Jung [Wed, 3 Jul 2019 08:54:16 +0000 (10:54 +0200)]
avoid catching errors

5 years agomake a test noseed for now that does not work with intptrcast yet
Ralf Jung [Wed, 3 Jul 2019 08:46:51 +0000 (10:46 +0200)]
make a test noseed for now that does not work with intptrcast yet

5 years agodon't call Stacked Borrows hooks at all when validation is disabled
Ralf Jung [Wed, 3 Jul 2019 08:19:55 +0000 (10:19 +0200)]
don't call Stacked Borrows hooks at all when validation is disabled

5 years agosupport integers that can be cast to pointers in in-bounds offset operation
Ralf Jung [Wed, 3 Jul 2019 07:56:35 +0000 (09:56 +0200)]
support integers that can be cast to pointers in in-bounds offset operation

5 years agowe don't need zero-sized freeze-sensitive visiting
Ralf Jung [Wed, 3 Jul 2019 07:42:07 +0000 (09:42 +0200)]
we don't need zero-sized freeze-sensitive visiting

5 years agoavoid integer overflow in ptr-to-int cast
Ralf Jung [Wed, 3 Jul 2019 07:32:21 +0000 (09:32 +0200)]
avoid integer overflow in ptr-to-int cast

5 years agoallow dangling ptr-to-int casts; use force_bits for ptr comparison
Ralf Jung [Wed, 3 Jul 2019 07:23:31 +0000 (09:23 +0200)]
allow dangling ptr-to-int casts; use force_bits for ptr comparison

5 years agoonly treat integer operations as such
Ralf Jung [Wed, 3 Jul 2019 07:06:48 +0000 (09:06 +0200)]
only treat integer operations as such

5 years agodont add the -Zmiri-seed flag twice
Ralf Jung [Wed, 3 Jul 2019 07:06:35 +0000 (09:06 +0200)]
dont add the -Zmiri-seed flag twice

5 years agorun all run-pass tests with intrptrcast. makes many of them fail!
Ralf Jung [Tue, 2 Jul 2019 20:20:37 +0000 (22:20 +0200)]
run all run-pass tests with intrptrcast. makes many of them fail!

5 years agoAuto merge of #819 - RalfJung:test-name, r=RalfJung
bors [Tue, 2 Jul 2019 11:03:22 +0000 (11:03 +0000)]
Auto merge of #819 - RalfJung:test-name, r=RalfJung

fix outdated test name: overalign -> align

5 years agofix outdated test name: overalign -> align
Ralf Jung [Tue, 2 Jul 2019 11:02:48 +0000 (13:02 +0200)]
fix outdated test name: overalign -> align

5 years agoAuto merge of #818 - RalfJung:readme, r=RalfJung
bors [Tue, 2 Jul 2019 07:51:55 +0000 (07:51 +0000)]
Auto merge of #818 - RalfJung:readme, r=RalfJung

add another bug we found to the list

5 years agoadd another bug we found to the list
Ralf Jung [Tue, 2 Jul 2019 07:51:16 +0000 (09:51 +0200)]
add another bug we found to the list

5 years agoAuto merge of #815 - RalfJung:memory-audit, r=RalfJung
bors [Mon, 1 Jul 2019 20:59:17 +0000 (20:59 +0000)]
Auto merge of #815 - RalfJung:memory-audit, r=RalfJung

don't call Memory::get without checking the pointer first

Also avoid Memory::get if we just need to know align/size.

I audited all uses of `alloc_id`; the rest should be fine (and we can kill a bunch of them once https://github.com/rust-lang/rust/pull/62257 lands).

5 years agoAuto merge of #814 - RalfJung:shims, r=RalfJung
bors [Mon, 1 Jul 2019 13:42:33 +0000 (13:42 +0000)]
Auto merge of #814 - RalfJung:shims, r=RalfJung

move find_fn (which is not specific to foreign items) out of foreign_item

5 years agoAuto merge of #816 - RalfJung:gitattr, r=RalfJung
bors [Mon, 1 Jul 2019 12:31:57 +0000 (12:31 +0000)]
Auto merge of #816 - RalfJung:gitattr, r=RalfJung

be explicit about our line endings

Let's see if this is the right setting for Windows...

5 years agoMerge branch 'master' into rustup
Ralf Jung [Mon, 1 Jul 2019 11:01:28 +0000 (13:01 +0200)]
Merge branch 'master' into rustup

5 years agobe explicit about our line endings
Ralf Jung [Mon, 1 Jul 2019 09:05:57 +0000 (11:05 +0200)]
be explicit about our line endings

5 years agomove find_fn (which is not specific to foreign items) out of foreign_items
Ralf Jung [Sun, 30 Jun 2019 21:24:08 +0000 (23:24 +0200)]
move find_fn (which is not specific to foreign items) out of foreign_items

5 years agodon't call Memory::get without checking the pointer first; avoid Memory::get if we...
Ralf Jung [Sun, 30 Jun 2019 22:12:45 +0000 (00:12 +0200)]
don't call Memory::get without checking the pointer first; avoid Memory::get if we just need to know align/size

5 years agoAuto merge of #809 - RalfJung:intptrcast, r=RalfJung
bors [Sun, 30 Jun 2019 21:19:56 +0000 (21:19 +0000)]
Auto merge of #809 - RalfJung:intptrcast, r=RalfJung

use intptrcast for heap_allocator test; then it should work on Windows

5 years agotest even more size-alignment combinations. found a bug in libstd!
Ralf Jung [Sun, 30 Jun 2019 19:23:48 +0000 (21:23 +0200)]
test even more size-alignment combinations. found a bug in libstd!

5 years agofix minimal alignment for system allocation functions
Ralf Jung [Sun, 30 Jun 2019 19:08:17 +0000 (21:08 +0200)]
fix minimal alignment for system allocation functions

5 years agoadd some tracing to intptrcast
Ralf Jung [Sun, 30 Jun 2019 19:06:32 +0000 (21:06 +0200)]
add some tracing to intptrcast

5 years agomove appveyor env var settings to more appropriate section
Ralf Jung [Sun, 30 Jun 2019 19:03:52 +0000 (21:03 +0200)]
move appveyor env var settings to more appropriate section

5 years agofix setting rustc flags
Ralf Jung [Sun, 30 Jun 2019 17:10:09 +0000 (19:10 +0200)]
fix setting rustc flags

5 years agoAuto merge of #806 - varkor:patch-1, r=RalfJung
bors [Sun, 30 Jun 2019 15:07:03 +0000 (15:07 +0000)]
Auto merge of #806 - varkor:patch-1, r=RalfJung

Fix `unused_must_use` inside `Box`

After https://github.com/rust-lang/rust/pull/62228, this will be linted against (and causes the test to fail). (This blocks https://github.com/rust-lang/rust/pull/62228.)

5 years agoMiri is not deterministic any more
Ralf Jung [Sun, 30 Jun 2019 15:02:20 +0000 (17:02 +0200)]
Miri is not deterministic any more

5 years agouse intptrcast for heap_allocator test; then it should work on Windows
Ralf Jung [Sun, 30 Jun 2019 14:56:16 +0000 (16:56 +0200)]
use intptrcast for heap_allocator test; then it should work on Windows

5 years agoAuto merge of #807 - RalfJung:test-name, r=RalfJung
bors [Sun, 30 Jun 2019 14:46:03 +0000 (14:46 +0000)]
Auto merge of #807 - RalfJung:test-name, r=RalfJung

better name for a test: threads -> sync

5 years agoimprove comment
Ralf Jung [Sun, 30 Jun 2019 14:45:41 +0000 (16:45 +0200)]
improve comment

5 years agobetter name for a test: threads -> sync
Ralf Jung [Sun, 30 Jun 2019 14:44:25 +0000 (16:44 +0200)]
better name for a test: threads -> sync

5 years agoFix `unused_must_use` inside `Box`
varkor [Sun, 30 Jun 2019 14:31:14 +0000 (15:31 +0100)]
Fix `unused_must_use` inside `Box`

After https://github.com/rust-lang/rust/pull/62228, this will be linted against (and causes the test to fail).

5 years agoAuto merge of #805 - RalfJung:shims, r=RalfJung
bors [Sun, 30 Jun 2019 13:38:38 +0000 (13:38 +0000)]
Auto merge of #805 - RalfJung:shims, r=RalfJung

move shims (foreign items and intrinsics) into submodule

This is in preparation for dlsym support, where there will b a third "kind" of shim.

And maybe some day we find a good way to split those long files...

5 years agomove shims (foreign items and intrinsics) into submodule
Ralf Jung [Sun, 30 Jun 2019 13:35:28 +0000 (15:35 +0200)]
move shims (foreign items and intrinsics) into submodule

5 years agoAuto merge of #804 - RalfJung:intptrcast, r=RalfJung
bors [Sun, 30 Jun 2019 09:37:27 +0000 (09:37 +0000)]
Auto merge of #804 - RalfJung:intptrcast, r=RalfJung

fix comparing function pointers with intptrcast

Cc @christianpoveda

5 years agofix comparing function pointers with intptrcast
Ralf Jung [Sun, 30 Jun 2019 08:59:42 +0000 (10:59 +0200)]
fix comparing function pointers with intptrcast