carbon-lang
carbon-lang copied to clipboard
Switch type literals to use builtin functions.
Modifies the core package and literal handling to use factory functions for standard type literals.
Updates function/builtin/import.carbon to stop depending on the prelude, since it would list all the impls in the core file. Updates alias/builtins.carbon to be failing (the type values cannot be aliased).
Depends on #3977
Looks good. I wonder how much all these extra function calls will slow down @chandlerc's performance benchmark.
Noted this on #toolchain, but I think it's WAI