Skip to content

Conversation

jld and others added 10 commits October 4, 2015 17:22
This turned up as part of rust-lang#3170.  When constructing an `undef` value to
return in the error case, we were trying to get the element type of the
Rust-level value being indexed instead of the underlying array; when
indexing a slice, that's not an array and the LLVM assertion failure
reflects this.

The regression test is a lightly altered copy of `const-array-oob.rs`.
This adds a chapter to the nightly section of the book on leveraging and
implementing the `#![allocator]` attribute to write custom allocators as well as
explaining the current situation with allocators.
This turned up as part of rust-lang#3170.  When constructing an `undef` value to
return in the error case, we were trying to get the element type of the
Rust-level value being indexed instead of the underlying array; when
indexing a slice, that's not an array and the LLVM assertion failure
reflects this.

The regression test is a lightly altered copy of `const-array-oob.rs`.
…klabnik

This adds a chapter to the nightly section of the book on leveraging and
implementing the `#![allocator]` attribute to write custom allocators as well as
explaining the current situation with allocators.
@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@Manishearth
Copy link
Member Author

@bors r+ p=10 force

@bors
Copy link
Collaborator

bors commented Oct 7, 2015

📌 Commit 480166b has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented Oct 7, 2015

⌛ Testing commit 480166b with merge fc218b7...

@bors
Copy link
Collaborator

bors commented Oct 7, 2015

💔 Test failed - auto-mac-64-nopt-t

@Manishearth
Copy link
Member Author

@bors r+ force

@bors
Copy link
Collaborator

bors commented Oct 7, 2015

📌 Commit ec7966a has been approved by Manishearth

@Manishearth
Copy link
Member Author

@bors force

@bors
Copy link
Collaborator

bors commented Oct 7, 2015

⌛ Testing commit ec7966a with merge 890b516...

@bors
Copy link
Collaborator

bors commented Oct 7, 2015

💔 Test failed - auto-win-gnu-64-opt

@Manishearth Manishearth closed this Oct 7, 2015
@Centril Centril added the rollup A PR which is a rollup label Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants