Skip to content

Commit 9a32772

Browse files
authored
Merge pull request #156 from oli-obk/master
Use rustc generated shims instead of interpreter hacks
2 parents cba0a7e + b9bd747 commit 9a32772

File tree

14 files changed

+989
-1114
lines changed

14 files changed

+989
-1114
lines changed

.travis.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,16 @@ language: rust
22
rust:
33
- nightly
44
before_script:
5-
- |
6-
pip install 'travis-cargo<0.2' --user &&
7-
export PATH=$HOME/.local/bin:$PATH
8-
- sh ~/rust-installer/rustup.sh --add-target=i686-unknown-linux-gnu --prefix=/home/travis/rust -y --disable-sudo
9-
- sh ~/rust-installer/rustup.sh --add-target=i686-pc-windows-gnu --prefix=/home/travis/rust -y --disable-sudo
10-
- sh ~/rust-installer/rustup.sh --add-target=i686-pc-windows-msvc --prefix=/home/travis/rust -y --disable-sudo
5+
- export PATH=$HOME/.local/bin:$PATH
6+
- rustup target add i686-unknown-linux-gnu
7+
- rustup target add i686-pc-windows-gnu
8+
- rustup target add i686-pc-windows-msvc
119
script:
1210
- |
1311
export RUST_SYSROOT=$HOME/rust &&
14-
travis-cargo build &&
15-
travis-cargo test &&
16-
travis-cargo install &&
12+
cargo build &&
13+
cargo test &&
14+
cargo install &&
1715
cd cargo-miri-test &&
1816
cargo miri &&
1917
cargo miri test &&

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/error.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::error::Error;
22
use std::fmt;
33
use rustc::mir;
44
use rustc::ty::{FnSig, Ty, layout};
5-
use memory::{Pointer, Function};
5+
use memory::Pointer;
66
use rustc_const_math::ConstMathErr;
77
use syntax::codemap::Span;
88

@@ -52,9 +52,6 @@ pub enum EvalError<'tcx> {
5252
DeallocatedStaticMemory,
5353
Layout(layout::LayoutError<'tcx>),
5454
Unreachable,
55-
ExpectedConcreteFunction(Function<'tcx>),
56-
ExpectedDropGlue(Function<'tcx>),
57-
ManuallyCalledDropGlue,
5855
Panic,
5956
}
6057

@@ -128,12 +125,6 @@ impl<'tcx> Error for EvalError<'tcx> {
128125
"attempted to get length of a null terminated string, but no null found before end of allocation",
129126
EvalError::Unreachable =>
130127
"entered unreachable code",
131-
EvalError::ExpectedConcreteFunction(_) =>
132-
"tried to use glue function as function",
133-
EvalError::ExpectedDropGlue(_) =>
134-
"tried to use non-drop-glue function as drop glue",
135-
EvalError::ManuallyCalledDropGlue =>
136-
"tried to manually invoke drop glue",
137128
EvalError::Panic =>
138129
"the evaluated program panicked",
139130
}

0 commit comments

Comments
 (0)