mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 17:25:52 +01:00
turn off tracing by default, change golden (#381)
* turn off tracing by default, change golden * Update executable_semantics/main.cpp Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com> * Update executable_semantics/main.cpp Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com> * merge with trunk, update goldens Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
Jon Meow
parent
ced98ef021
commit
7c4fcd3fa5
@@ -419,13 +419,6 @@ auto ToValue(Expression* value) -> Value* {
|
||||
// Returns nullopt if the value doesn't match the pattern.
|
||||
auto PatternMatch(Value* p, Value* v, Env env, std::list<std::string>* vars,
|
||||
int line_num) -> std::optional<Env> {
|
||||
if (tracing_output) {
|
||||
std::cout << "pattern_match(";
|
||||
PrintValue(p, std::cout);
|
||||
std::cout << ", ";
|
||||
PrintValue(v, std::cout);
|
||||
std::cout << ")" << std::endl;
|
||||
}
|
||||
switch (p->tag) {
|
||||
case ValKind::VarPatV: {
|
||||
Address a = AllocateValue(CopyVal(v, line_num));
|
||||
|
||||
Reference in New Issue
Block a user