119908 Commits

Author SHA1 Message Date
LeSeulArtichaut
8d9f73a690 Add new tests and bless old tests 2020-05-01 17:32:06 +02:00
Nicholas Nethercote
d4e5e1bcff Don't copy bytecode files into the incr. comp. cache.
It's no longer necessary now that bitcode is embedded into object files.

This change meant that `WorkProductFileKind::Bytecode` is no longer
necessary, which means that type is no longer necessary, which allowed
several places in the code to become simpler.
2020-05-01 08:14:39 -07:00
Tshepang Lekhonkhobe
7a1a69911b make Stability docs a bit more readable, and fix some rustdoc warnings 2020-05-01 16:41:50 +02:00
LeSeulArtichaut
f9b9ba51d3 Prevent functions with #[target_feature] to be coerced to safe function pointers 2020-05-01 16:37:47 +02:00
LeSeulArtichaut
f2c6cbd98f Prevent calls to functions with #[target_feature] in safe contexts 2020-05-01 16:24:59 +02:00
Oliver Scherer
004208fc46 Move recursion check for zsts back to read site instead of access check site. 2020-05-01 15:52:08 +02:00
Camille GILLOT
e4976d0caf Restrict access. 2020-05-01 15:10:45 +02:00
Camille GILLOT
282d72f6bb Inline a few things. 2020-05-01 15:10:12 +02:00
Camille GILLOT
49e024ee7c Monomorphise the interface. 2020-05-01 14:53:55 +02:00
Camille GILLOT
e15383cce1 Move the DepNode construction to librustc_query_system. 2020-05-01 14:48:14 +02:00
Camille GILLOT
8f3e96d658 Monomorphise try_execute_query. 2020-05-01 14:40:17 +02:00
Ralf Jung
1bab6a4db7 fix Miri error message padding 2020-05-01 14:39:41 +02:00
Camille GILLOT
1c7376e797 Monomorphise try_start. 2020-05-01 14:37:12 +02:00
Camille GILLOT
d56085cbc9 Monomorphise try_execute_anon_query. 2020-05-01 14:32:11 +02:00
Santiago Pastorino
8bdf988be2
Remove deadcode in eval_mir_constant_to_operand 2020-05-01 09:30:55 -03:00
Camille GILLOT
85704a41db Monomorphise load_from_disk_and_cache_in_memory. 2020-05-01 14:29:35 +02:00
Camille GILLOT
1b2deaf57a Monomorphise force_query_with_job. 2020-05-01 14:28:57 +02:00
bors
a91d64873f Auto merge of #71742 - matthiaskrgr:submodule_upd, r=Dylan-DPC
submodules: update cargo from 90931d9b3 to 258c89644

Changes:
````
Remove unnecessary loop in `maybe_spurious`
Fix error with git repo discovery and symlinks.
Allow failure when setting file mtime.
Support multiple `--target` flags on the CLI
build-std: Don't treat std like a "local" package.
Allow `cargo package --list` even for things that don't package.
````

I'd like to get https://github.com/rust-lang/cargo/pull/8186 into nightly asap. :)

r? @ehuss
2020-05-01 12:18:41 +00:00
LeSeulArtichaut
2474f0ed88 Allow #[target_feature] on safe functions 2020-05-01 14:17:43 +02:00
jumbatm
bd18ad4fef Note that try_validation_pat can take a format str directly. 2020-05-01 21:52:43 +10:00
jumbatm
830473959a Manually format macro to not go over text width. 2020-05-01 21:52:43 +10:00
jumbatm
8175c4ceec Expect at least one expr for p, what_fmt and expected_fmt. 2020-05-01 21:52:43 +10:00
jumbatm
f1d778fef1 Also make expected param wrapped in format_args. 2020-05-01 21:52:43 +10:00
jumbatm
65c36f6e38 Wrap try_validation_pat! args in format_args! 2020-05-01 21:52:43 +10:00
jumbatm
425a99f1eb Update try_validation_pat! doc comment. 2020-05-01 21:52:43 +10:00
jumbatm
cb96d41fa1 Apply suggestions for try_validation_pat!. 2020-05-01 21:52:43 +10:00
jumbatm
9459b37780 Fix comment to reflect error handling behaviour. 2020-05-01 21:52:43 +10:00
jumbatm
9c898d65b8 Allow unreachable_patterns instead of using if true 2020-05-01 21:52:43 +10:00
jumbatm
eca147896f Match kind in try_validation_pat!.
Avoids having to repeat InterpErrorInfo { .. }
2020-05-01 21:52:43 +10:00
jumbatm
656ab76397 Add FIXME about replacing all usages of try_validation. 2020-05-01 21:52:43 +10:00
jumbatm
894a83d409 Apply suggestions from code review
Co-Authored-By: Ralf Jung <post@ralfj.de>
Co-Authored-By: Oliver Scherer <github35764891676564198441@oli-obk.de>
2020-05-01 21:52:43 +10:00
jumbatm
5b1d6000a0 Update stderrs. 2020-05-01 21:52:43 +10:00
jumbatm
2887d7923e Partially unrevert #70566.
This partially reverts commit 4b5b6cbe60a8dd1822cfa46c41cf1ad58c113e18,
reversing some changes made to 62b362472dbf8bdf43b252ac5ea53b527a8dbee3.
2020-05-01 21:52:43 +10:00
jumbatm
6b413d95fc Throw validation failure for InvalidUndefBytes. 2020-05-01 21:52:43 +10:00
jumbatm
bc7b7140b9 Don't fail for UndefinedBehaviourInfo in validation. 2020-05-01 21:52:43 +10:00
jumbatm
e66e37cbf1 Don't duplicate body of try_validation. 2020-05-01 21:52:43 +10:00
jumbatm
326d38fa09 Add try_validation_pat. 2020-05-01 21:52:43 +10:00
jumbatm
14d90deab9 Don't duplicate macro for optional arg. 2020-05-01 21:52:43 +10:00
Tshepang Lekhonkhobe
6a681f5ca1 remove obsolete comments
Referenced was removed in 8770d0f34a9bee2691517ab95803a277c453dfda
2020-05-01 13:43:04 +02:00
Matthias Krüger
868d559699 submodules: update cargo from 90931d9b3 to 258c89644
Changes:
````
Remove unnecessary loop in `maybe_spurious`
Fix error with git repo discovery and symlinks.
Allow failure when setting file mtime.
Support multiple `--target` flags on the CLI
build-std: Don't treat std like a "local" package.
Allow `cargo package --list` even for things that don't package.
````
2020-05-01 13:04:03 +02:00
Ralf Jung
62ee0ea0b6 fmt 2020-05-01 12:08:16 +02:00
Tshepang Lekhonkhobe
8abfb685b3 remove obsolete comment
Referenced was removed in 9f492fefef8d9a75f6dc27c834561fe977ca70c5
2020-05-01 11:45:05 +02:00
Ralf Jung
d0a746ecfa remove AllocId generalization of Pointer 2020-05-01 11:33:21 +02:00
Ralf Jung
c66d02e3ba liballoc tests: Miri supports threads now 2020-05-01 11:16:38 +02:00
Ralf Jung
6c8ae7c7e5 bootstrap: also apply unused-attributes hack without deny_warnings 2020-05-01 11:16:05 +02:00
bors
fd61d06772 Auto merge of #71704 - RalfJung:miri-error-print, r=oli-obk
Miri: tweak error print

I started by adjusting the "invalid use of int as pointer" message (it wasn't really clear what is invalid about the use). But then I realized that these are all `Debug` impls we use for these errors, for some reason, so I fixed that to use `Display` instead.

~~This includes https://github.com/rust-lang/rust/pull/71590 (to get the `Display` impl for `Pointer`), so the diff will look better once that finally lands. Here's the [relative diff](e72ebf5119...RalfJung:miri-error-print).~~

r? @oli-obk
2020-05-01 09:15:12 +00:00
Ralf Jung
cce0cb3c39 use hex for invalid bool and char (consistently with validation) 2020-05-01 10:56:17 +02:00
Ralf Jung
707bd7b213 rename InvalidIntPtrUsage 2020-05-01 10:50:04 +02:00
Ralf Jung
2feeb88b62 bless you 2020-05-01 10:50:04 +02:00
Ralf Jung
f94899565b InterpError printing really is more Display than Debug
also tweak InvalidDiscriminant message
2020-05-01 10:50:04 +02:00