internal compiler error: assertion failed: span != default()
note: at ‘compiler/span/source_map.rs:90:9’
note: in thread ‘main’
note: the compiler unexpectedly panicked. this is a bug. we would appreciate a bug report
note: lushui 0.1.0 (32d6176 2022-06-27)
help: rerun with the environment variable ‘LUSHUI_BACKTRACE=1’ to display a backtrace
This is because Component::look_up_program_entry passes the spanless identifier main to Resolver::resolve_identifier.
Possible solutions:
disallow@deprecated on the program entry since it doesn't make sense (?)
write a custom resolve_identifier that ignores deprecations
smh. special-case the warning[deprecated] for the program entry and emit a different message / span
Reproducer:
ICE:
This is because
Component::look_up_program_entry
passes the spanless identifiermain
toResolver::resolve_identifier
.Possible solutions:
@deprecated
on the program entry since it doesn't make sense (?)resolve_identifier
that ignores deprecationswarning[deprecated]
for the program entry and emit a different message / span