Add some TODO comments

This commit is contained in:
Richard Feldman 2022-02-02 18:47:18 -05:00
parent dd8f63b1ab
commit 3e9eef4d0e
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
2 changed files with 3 additions and 0 deletions

View file

@ -6061,6 +6061,8 @@ fn run_low_level<'a, 'ctx, 'env>(
.module .module
.get_function(bitcode::UTILS_EXPECT_FAILED) .get_function(bitcode::UTILS_EXPECT_FAILED)
.unwrap(); .unwrap();
// TODO get the actual line info instead of
// hardcoding as zero!
let callable = CallableValue::try_from(func).unwrap(); let callable = CallableValue::try_from(func).unwrap();
let start_line = context.i32_type().const_int(0, false); let start_line = context.i32_type().const_int(0, false);
let end_line = context.i32_type().const_int(0, false); let end_line = context.i32_type().const_int(0, false);

View file

@ -82,6 +82,7 @@ macro_rules! run_jit_function {
let failures = get_expect_failures(); let failures = get_expect_failures();
if failures.count > 0 { if failures.count > 0 {
// TODO tell the user about the failures!
let failures = let failures =
unsafe { core::slice::from_raw_parts(failures.failures, failures.count) }; unsafe { core::slice::from_raw_parts(failures.failures, failures.count) };