mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Implement checking observe declarations (#6709)
This adds SemIR structs and implements building `observe` lists, as well as naming, formatting, and importing `observe` declarations. --------- Co-authored-by: Dana Jansens <danakj@orodu.net>
This commit is contained in:
co-authored by
Dana Jansens
parent
918bb9364f
commit
08385adeb5
@@ -889,4 +889,12 @@ auto CopySpecificToGeneric(Context& context, SemIR::LocId loc_id,
|
||||
return MakeSpecific(context, loc_id, target_generic_id, args_id);
|
||||
}
|
||||
|
||||
auto DiagnoseImplsOnNonFacetType(Context& context, SemIR::LocId loc_id)
|
||||
-> void {
|
||||
CARBON_DIAGNOSTIC(
|
||||
ImplsOnNonFacetType, Error,
|
||||
"right argument of `impls` requirement must be a facet type");
|
||||
context.emitter().Emit(loc_id, ImplsOnNonFacetType);
|
||||
}
|
||||
|
||||
} // namespace Carbon::Check
|
||||
|
||||
Reference in New Issue
Block a user