mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add MaybeUnformed(T) type. (#5989)
This type has the same object representation as `T`, but always uses a pointer type as its value representation. No other semantics are provided for it yet.
This commit is contained in:
@@ -307,6 +307,10 @@ constexpr BuiltinInfo FloatMakeType = {"float.make_type",
|
||||
constexpr BuiltinInfo BoolMakeType = {"bool.make_type",
|
||||
ValidateSignature<auto()->Type>};
|
||||
|
||||
// Returns the `MaybeUnformed(T)` type.
|
||||
constexpr BuiltinInfo MaybeUnformedMakeType = {
|
||||
"maybe_unformed.make_type", ValidateSignature<auto(Type)->Type>};
|
||||
|
||||
// Converts between char types, with a diagnostic if the value doesn't fit.
|
||||
constexpr BuiltinInfo CharConvertChecked = {
|
||||
"char.convert_checked",
|
||||
|
||||
Reference in New Issue
Block a user