Skip to content
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

Rollup of 7 pull requests #61622

Merged
merged 19 commits into from
Jun 7, 2019
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
de677b9
Remove asterisk suggestion for move errors in borrowck
kungfukennyg May 29, 2019
529b94e
[const-prop] Fix ICE when casting function pointers
wesleywiser Jun 5, 2019
9f4d94b
[const-prop] Handle Rvalue::Ref
wesleywiser May 31, 2019
1e50e01
[const-prop] Handle ProjectionElem::Deref
wesleywiser Jun 4, 2019
dee05ab
[const-prop] Handle Rvalue::Len
wesleywiser May 20, 2019
7d1f762
ci: Disable LLVM/debug assertions for asmjs builder
alexcrichton Jun 6, 2019
9a49841
increase max heapsize available during sgx tests
Goirad Jun 6, 2019
459e37b
Bless test output
wesleywiser Jun 6, 2019
fb61b85
libcore/pin: Minor grammar corrections for module documentation
Jun 6, 2019
625763f
make the backtrace field of EvalError private
RalfJung Jun 7, 2019
524f146
add doc comment for EvalError
RalfJung Jun 7, 2019
8f37537
Fix slice const generic length display
GuillaumeGomez Jun 6, 2019
9ab654c
Rollup merge of #61332 - kennethbgoodin:borrowck-remove-asterisk-sugg…
Centril Jun 7, 2019
de6bc12
Rollup merge of #61532 - wesleywiser:const_prop_more, r=oli-obk
Centril Jun 7, 2019
b4c6c6f
Rollup merge of #61586 - alexcrichton:asmjs-no-assertions, r=pietroal…
Centril Jun 7, 2019
5557bd0
Rollup merge of #61599 - laumann:pin-docs-minor-edits, r=Centril
Centril Jun 7, 2019
06a1df4
Rollup merge of #61603 - Goirad:increase-sgx-heapsize, r=alexcrichton
Centril Jun 7, 2019
9bbdc40
Rollup merge of #61605 - GuillaumeGomez:const-generic-display, r=varkor
Centril Jun 7, 2019
b9c752b
Rollup merge of #61618 - RalfJung:error, r=oli-obk
Centril Jun 7, 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
5 changes: 5 additions & 0 deletions src/librustc/mir/interpret/error.rs
Original file line number Diff line number Diff line change
@@ -179,6 +179,11 @@ pub fn struct_error<'a, 'gcx, 'tcx>(
struct_span_err!(tcx.sess, tcx.span, E0080, "{}", msg)
}

/// Packages the kind of error we got from the const code interpreter
/// up with a Rust-level backtrace of where the error occured.
/// Thsese should always be constructed by calling `.into()` on
/// a `InterpError`. In `librustc_mir::interpret`, we have the `err!`
/// macro for this
#[derive(Debug, Clone)]
pub struct EvalError<'tcx> {
pub kind: InterpError<'tcx, u64>,