From 34ec3ce74bc2d6fd906d38c8a3eef38f449432d4 Mon Sep 17 00:00:00 2001 From: Adrien Leravat Date: Wed, 21 Dec 2022 12:48:27 -0800 Subject: [PATCH] Explorer: add missing `Nonnull<>` (#2486) Trivial change adding a missing `Nonnull<>` to `RewritableMixin`. --- explorer/ast/expression.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/ast/expression.h b/explorer/ast/expression.h index 56000b9aec5a..f20e42ce8f8c 100644 --- a/explorer/ast/expression.h +++ b/explorer/ast/expression.h @@ -103,7 +103,7 @@ class RewritableMixin : public Base { // Set the rewritten form of this expression. Can only be called during type // checking. - auto set_rewritten_form(const Expression* rewritten_form) -> void { + auto set_rewritten_form(Nonnull rewritten_form) -> void { CARBON_CHECK(!rewritten_form_.has_value()) << "rewritten form set twice"; rewritten_form_ = rewritten_form; this->set_static_type(&rewritten_form->static_type());