mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Poison impl lookup queries with concrete results (#5373)
Once a concrete result has been found, it's not legal to write an `impl` that would change the concrete result afterward. --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
co-authored by
Richard Smith
parent
bd99b74608
commit
13da710e94
@@ -25,6 +25,15 @@ auto StringifyConstantInst(const File& sem_ir, InstId outer_inst_id)
|
||||
auto StringifySpecific(const File& sem_ir, SpecificId specific_id)
|
||||
-> std::string;
|
||||
|
||||
// Produces a string version of the name of a specific interface. If the
|
||||
// interface is not generic, this is just the name of the interface. Otheewise,
|
||||
// it is the interface name and its generic arguments. Generally, this should
|
||||
// not be called directly. To format a string into a diagnostic, use a
|
||||
// diagnostic parameter of type `SpecificInterface`.
|
||||
auto StringifySpecificInterface(const File& sem_ir,
|
||||
SpecificInterface specific_interface)
|
||||
-> std::string;
|
||||
|
||||
} // namespace Carbon::SemIR
|
||||
|
||||
#endif // CARBON_TOOLCHAIN_SEM_IR_STRINGIFY_H_
|
||||
|
||||
Reference in New Issue
Block a user