skip registering of debug symbols in hot loop

This commit is contained in:
Folkert 2022-03-22 18:51:56 +01:00
parent 68adeba43c
commit f25afe4629
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -1016,10 +1016,6 @@ pub fn canonicalize_expr<'a>(
}
};
if cfg!(debug_assertions) {
env.home.register_debug_idents(&env.ident_ids);
}
// At the end, diff used_idents and defined_idents to see which were unused.
// Add warnings for those!