Commit Graph

1266 Commits

Author SHA1 Message Date
Oliver Schneider
c817e6e4b3 Merge pull request #171 from RalfJung/println
Work with MIR-libstd
2017-05-31 08:24:15 +02:00
Ralf Jung
d06c165368 simplify xargo instructions 2017-05-30 18:12:06 -07:00
Ralf Jung
2b37d500f1 simplify determining size and alignment of a pointer 2017-05-30 17:03:45 -07:00
Ralf Jung
b44babf230 allocate return pointer only when we start the program via the start lang item 2017-05-30 15:40:26 -07:00
Ralf Jung
b8e0b79222 add a test for output string formatting 2017-05-30 14:02:20 -07:00
Ralf Jung
cdf7a057f1 latest rust nightly contains all the bits needed to re-compile libstd 2017-05-30 13:25:45 -07:00
Ralf Jung
dad95474cb test thread-local key with no dtor 2017-05-30 10:41:38 -07:00
Ralf Jung
24a9a14dfa fix various small nits 2017-05-30 10:41:38 -07:00
Ralf Jung
633a34d6d3 re-disable aux_test -- it passes here, but not on Travis 2017-05-30 10:41:38 -07:00
Ralf Jung
1241938f97 test suite now also passes on MIR-libstd
Also enable some tests that were disabled for no apparant reason.
(The comment in zst.rs was wrong, the test was disabled also for miri execution.)
Delete env_args test as the args can actually be queried with MIR-libstd (currently, they are always empty)
2017-05-30 10:41:38 -07:00
Ralf Jung
99433a1ffd improve fn pointer signature check to allow some casts that should be permitted
Also properly check the "non-capturing Fn to fn" case
2017-05-30 10:41:38 -07:00
Ralf Jung
cd6e3e6431 If a "start" lang item incl. MIR is present, run that instead of running main directly
This fixes the memory leaks when running a simple "Hello World" with MIR-libstd
2017-05-30 10:41:38 -07:00
Ralf Jung
720c5f874e implement __rust_maybe_catch_panic 2017-05-30 10:41:38 -07:00
Ralf Jung
55438fe5bf unify the way we intercept missing MIR and C ABI calls; only intercept C ABI calls if MIR is missing 2017-05-30 10:41:38 -07:00
Ralf Jung
14b16dcf45 use proper span for TLS dtors; fix some nits 2017-05-30 10:41:38 -07:00
Ralf Jung
a66f359d91 support TLS destructors 2017-05-30 10:41:38 -07:00
Ralf Jung
238211e1b3 implement TLS 2017-05-30 10:41:38 -07:00
Ralf Jung
452cc9b396 handle statics with linkage: initialize them with NULL 2017-05-30 10:41:38 -07:00
Ralf Jung
33d42f4b82 also support writing to stderr 2017-05-30 10:41:38 -07:00
Ralf Jung
1ae01b422b add instructions for how to compile libstd with xargo 2017-05-30 10:41:38 -07:00
Ralf Jung
ab90500d8c Make println!("String") work
miri complains about a memory leak when the program terminates.  This may be related to thread-local dtors not running.
2017-05-30 10:41:38 -07:00
Oliver Schneider
53412abe76 Merge pull request #172 from dwrensha/rustup
update for latest nightly rustc
2017-05-30 15:58:25 +02:00
David Renshaw
66495222ab closure_to_fn_coercion has been stabilized 2017-05-30 09:27:50 -04:00
David Renshaw
c384f9568d Rvalue::Box -> Rvalue::NullaryOp 2017-05-30 09:27:08 -04:00
Oliver Schneider
bea6d83651 Merge pull request #169 from RalfJung/cargo-run
fix 'cargo run' in README
2017-05-24 08:07:23 +02:00
Oliver Schneider
e2a099850c Merge pull request #170 from dwrensha/rustup
update for upstream changes with ty::ParamEnv
2017-05-24 08:06:23 +02:00
David Renshaw
48662d5199 update for upstream changes with ty::ParamEnv 2017-05-23 23:40:39 -04:00
Ralf Jung
5accdf45ea use cargo +nightly rather than rustup run nightly cargo 2017-05-23 10:50:07 -07:00
Ralf Jung
781709268e fix 'cargo run' in README 2017-05-23 10:31:47 -07:00
Eduard-Mihai Burtescu
5483806aee Merge pull request #168 from dwrensha/allocate-zeroed
implement __rust_allocate_zeroed C ABI function
2017-05-21 22:57:52 +03:00
David Renshaw
0641e932bc implement __rust_allocate_zeroed C ABI function 2017-05-21 15:48:31 -04:00
Eduard-Mihai Burtescu
8950b124e9 Merge pull request #167 from dwrensha/update-rustc
update for latest rustc
2017-05-13 14:29:31 +03:00
David Renshaw
2b84e176fb update for new boxier mir 2017-05-13 07:09:57 -04:00
David Renshaw
ecf452ce3a don't match on floating-point literal 2017-05-10 16:38:29 -04:00
Oliver Schneider
9e44509e51 Update dependencies 2017-05-09 16:47:04 +02:00
Oliver Schneider
25185fd324 Merge pull request #165 from sharazam/patch-1
Update Cargo.toml, fix for build error (see #164)
2017-05-09 16:42:54 +02:00
Felix Schütt
23cf495f27 Update Cargo.toml, fix for build error (see #164) 2017-05-09 16:35:09 +02:00
Eduard-Mihai Burtescu
1f8aa8d1db Merge pull request #163 from solson/rustup
Rustup to rustc 1.19.0-nightly (2d4ed8e0c 2017-05-03)
2017-05-05 12:25:57 +03:00
Oliver Schneider
5f67ba76f5 Removed unused crate imports 2017-05-05 10:37:04 +02:00
Oliver Schneider
da3860a293 Address things complained about by clippy 2017-05-05 10:34:38 +02:00
Oliver Schneider
07229d6305 Rustup to rustc 1.19.0-nightly (2d4ed8e0c 2017-05-03) 2017-05-04 17:42:43 +02:00
Eduard-Mihai Burtescu
f8c8813f87 Merge pull request #162 from solson/rustup
Update to rustc 1.19.0-nightly (777ee2079 2017-05-01)
2017-05-02 12:24:10 +03:00
Oliver Schneider
671ccca891 Update to rustc 1.19.0-nightly (777ee2079 2017-05-01) 2017-05-02 10:44:35 +02:00
Oliver Schneider
488fc53db9
Update to the latest rustc version 2017-04-27 13:48:47 +02:00
Eduard-Mihai Burtescu
1f9853ca27 Merge pull request #161 from oli-obk/master
Address clippy lints
2017-04-26 13:48:16 +03:00
Oliver Schneider
538c271e05 Address clippy lints 2017-04-26 12:15:42 +02:00
Eduard-Mihai Burtescu
c0d2d011dd Merge pull request #160 from oli-obk/master
Also test subdirectories of `rust/src/test/run-pass`
2017-04-25 18:18:19 +03:00
Oliver Schneider
df9440d5ac Also test subdirectories of rust/src/test/run-pass 2017-04-25 17:08:12 +02:00
Oliver Schneider
76768479b5 Update for latest rustc changes 2017-04-25 16:51:58 +02:00
Eduard-Mihai Burtescu
14ba6d9599 Merge pull request #159 from dwrensha/is-freeze-needs-drop
update for latest rustc nightly
2017-04-23 20:54:54 +03:00