فهرست منبع

Explorer: add missing `Nonnull<>` (#2486)

Trivial change adding a missing `Nonnull<>` to `RewritableMixin`.
Adrien Leravat 3 سال پیش
والد
کامیت
34ec3ce74b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      explorer/ast/expression.h

+ 1 - 1
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
   // Set the rewritten form of this expression. Can only be called during type
   // checking.
   // checking.
-  auto set_rewritten_form(const Expression* rewritten_form) -> void {
+  auto set_rewritten_form(Nonnull<const Expression*> rewritten_form) -> void {
     CARBON_CHECK(!rewritten_form_.has_value()) << "rewritten form set twice";
     CARBON_CHECK(!rewritten_form_.has_value()) << "rewritten form set twice";
     rewritten_form_ = rewritten_form;
     rewritten_form_ = rewritten_form;
     this->set_static_type(&rewritten_form->static_type());
     this->set_static_type(&rewritten_form->static_type());