]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Fix invalid call to vector::front in TypeBoundPredicate constructors
authorOwen Avery <powerboat9.gamer@gmail.com>
Thu, 24 Aug 2023 02:49:30 +0000 (22:49 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:04:30 +0000 (19:04 +0100)
commitc00624a6c8b9a08b10674abff7826ac990e9248a
treef31d4ecfdc8b5156a8c767ac4f8eb6e829312a89
parentfb14147b9f336d5467b3bb26afeab4ab925dd748
gccrs: Fix invalid call to vector::front in TypeBoundPredicate constructors

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-expr.cc
(TypeCheckExpr::resolve_fn_trait_call): Add TODO comment.
* typecheck/rust-tyty-bounds.cc
(TypeBoundPredicate::TypeBoundPredicate):
Add assertions, new error constructor.
(TypeBoundPredicate::error): Use new error constructor.
* typecheck/rust-tyty.h
(struct TypeBoundPredicate::mark_is_error): New.
(TypeBoundPredicate::TypeBoundPredicate):
Add new error constructor.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/typecheck/rust-hir-type-check-expr.cc
gcc/rust/typecheck/rust-tyty-bounds.cc
gcc/rust/typecheck/rust-tyty.h