diff --git a/src/tint/resolver/validator.cc b/src/tint/resolver/validator.cc index d99d35b9c9..121cc119bf 100644 --- a/src/tint/resolver/validator.cc +++ b/src/tint/resolver/validator.cc @@ -585,14 +585,6 @@ bool Validator::GlobalVariable( return Var(global); }, - [&](const ast::Let*) { - if (!decl->attributes.empty()) { - AddError("attribute is not valid for module-scope 'let' declaration", - decl->attributes[0]->source); - return false; - } - return Let(global); - }, [&](const ast::Override*) { for (auto* attr : decl->attributes) { if (auto* id_attr = attr->As()) { @@ -777,15 +769,6 @@ bool Validator::Let(const sem::Variable* v) const { auto* decl = v->Declaration(); auto* storage_ty = v->Type()->UnwrapRef(); - if (v->Is()) { - auto name = symbols_.NameFor(decl->symbol); - if (sem::ParseBuiltinType(name) != sem::BuiltinType::kNone) { - AddError("'" + name + "' is a builtin and cannot be redeclared as a 'let'", - decl->source); - return false; - } - } - if (!(storage_ty->IsConstructible() || storage_ty->Is())) { AddError(sem_.TypeNameOf(storage_ty) + " cannot be used as the type of a 'let'", decl->source);