Open zhassan-aws opened 8 months ago
Yes, we don't support ADTs with lifetimes for now (I intend to lift this soon). Also, on the shorter term: we're about to start an overhaul of Aeneas to have informative error messages (I've been wanting this for a while and I think it's time).
This also impacts std::str::chars
, e.g:
fn foo(s: &str) {
let _c = s.chars();
}
$ aeneas -backend lean ref_in_struct.llbc
[Info ] Imported: ref_in_struct.llbc
Uncaught exception:
Not_found
Raised at Stdlib__Map.Make.find in file "map.ml", line 137, characters 10-25
Called from Stdlib__List.map in file "list.ml", line 92, characters 20-23
Called from Aeneas__Translate.export_types_group in file "Translate.ml", line 415, characters 4-72
Called from Stdlib__List.iter in file "list.ml", line 110, characters 12-15
Called from Aeneas__Translate.extract_definitions in file "Translate.ml", line 822, characters 2-52
Called from Aeneas__Translate.extract_file in file "Translate.ml", line 940, characters 2-36
Called from Aeneas__Translate.translate_crate in file "Translate.ml", line 1488, characters 5-42
Called from Dune__exe__Main in file "Main.ml", line 276, characters 9-61
Code:
Output: