Fix hang on qualified import with builtin name

This commit is contained in:
Agus Zubiaga 2024-07-03 12:40:53 -03:00
parent f69d39dffc
commit 13ba59a4cb
No known key found for this signature in database
3 changed files with 33 additions and 2 deletions

View file

@ -3599,9 +3599,9 @@ fn load_module<'a>(
macro_rules! load_builtins {
($($name:literal, $module_id:path)*) => {
match module_name.as_inner().as_str() {
match module_name.unqualified().map(|name| name.as_str()) {
$(
$name => {
Some($name) => {
let (module_id, msg) = load_builtin_module(
arena,
module_ids,