Fix platform root module flag

When loading a platform module as the root, the `is_root_module`
flag in `HeaderInfo` would be set to `false`. This caused issues
with docs generation.
This commit is contained in:
Agus Zubiaga 2024-06-12 19:00:15 -03:00
parent a6f1408b5c
commit facae9d56c
No known key found for this signature in database

View file

@ -4268,7 +4268,7 @@ fn parse_header<'a>(
let (module_id, _, header) = build_platform_header(
arena,
None,
false,
is_root_module,
None,
filename,
parse_state,