Skip to content

Rollup of 5 pull requests #65812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 22 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
88b5e94
Make <*const/mut T>::offset_from `const fn`
oli-obk Aug 20, 2019
4a51801
Use dedicated method for getting the type size
oli-obk Oct 18, 2019
94a6d4b
Adjust const eval code to reflect `offset_from` docs
oli-obk Oct 18, 2019
1c9d889
Review nit
oli-obk Oct 18, 2019
3956c48
Ignore a test on musl because its ui output differs
oli-obk Oct 18, 2019
bf83ecf
Update ui output
oli-obk Oct 19, 2019
fc50036
fixed ac vulnerability
raoulstrackx Oct 21, 2019
f6aa64b
self-profiling: Remove unused methods from profiler.
michaelwoerister Oct 24, 2019
ee1173a
self-profiling: Update measureme to 0.4.0 and use new RAII-based API.
michaelwoerister Oct 24, 2019
9c08306
self-profiling: Switch query-blocking measurements to RAII-style API.
michaelwoerister Oct 24, 2019
dcf3436
Fill tracking issue number for `array_value_iter` and fix Rust version
LukasKalbertodt Oct 25, 2019
4936f96
Add [T]::as_ptr_range() and [T]::as_mut_ptr_range().
m-ou-se Oct 25, 2019
f1b69b0
Add slice_ptr_range tracking issue number.
m-ou-se Oct 25, 2019
d257c20
removed unnecessary push
raoulstrackx Oct 25, 2019
34f5d59
cleaning up code
raoulstrackx Oct 25, 2019
de9b660
Explain why pointer::add in slice::as_ptr_range is safe.
m-ou-se Oct 25, 2019
5aafa98
forgot pushfq/popqfq: fixed
raoulstrackx Oct 25, 2019
26318b1
Rollup merge of #63810 - oli-obk:const_offset_from, r=RalfJung,nikic
Centril Oct 25, 2019
5e05ab8
Rollup merge of #65799 - LukasKalbertodt:fill-array-value-iter-tracki…
Centril Oct 25, 2019
4cc0226
Rollup merge of #65800 - michaelwoerister:measureme-0.4.0, r=wesleywiser
Centril Oct 25, 2019
2e64a71
Rollup merge of #65806 - fusion-engineering-forks:slice-ptr-range, r=…
Centril Oct 25, 2019
d043e95
Rollup merge of #65810 - raoulstrackx:ac_mitigation, r=nagisa
Centril Oct 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update ui output
  • Loading branch information
oli-obk committed Oct 19, 2019
commit bf83ecf90eac14093b226d27ab74bc6eefcd550c
12 changes: 6 additions & 6 deletions src/test/ui/consts/offset_from_ub.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| ptr_offset_from cannot compute offset of pointers into different allocations.
| inside call to `std::ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:17:27
| inside call to `std::ptr::<impl *const Struct>::offset_from` at $DIR/offset_from_ub.rs:20:27
|
::: $DIR/offset_from_ub.rs:11:1
::: $DIR/offset_from_ub.rs:14:1
|
LL | / pub const DIFFERENT_ALLOC: usize = {
LL | |
Expand All @@ -27,9 +27,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| a memory access tried to interpret some bytes as a pointer
| inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:23:14
| inside call to `std::ptr::<impl *const u8>::offset_from` at $DIR/offset_from_ub.rs:26:14
|
::: $DIR/offset_from_ub.rs:21:1
::: $DIR/offset_from_ub.rs:24:1
|
LL | / pub const NOT_PTR: usize = {
LL | |
Expand All @@ -44,9 +44,9 @@ LL | intrinsics::ptr_offset_from(self, origin)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| exact_div: 1 cannot be divided by 2 without remainder
| inside call to `std::ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:31:27
| inside call to `std::ptr::<impl *const u16>::offset_from` at $DIR/offset_from_ub.rs:34:27
|
::: $DIR/offset_from_ub.rs:26:1
::: $DIR/offset_from_ub.rs:29:1
|
LL | / pub const NOT_MULTIPLE_OF_SIZE: usize = {
LL | |
Expand Down