diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-02-27 16:38:41 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:19:00 +0100 |
commit | a313761b2f506093b8ed8134338b935f968ca380 (patch) | |
tree | 9e4cee22f6caffb62b60db2fb11004825bd978fc | |
parent | e67500111dbaf97b954a9733f3221ffa5413eb6e (diff) | |
download | gcc-a313761b2f506093b8ed8134338b935f968ca380.zip gcc-a313761b2f506093b8ed8134338b935f968ca380.tar.gz gcc-a313761b2f506093b8ed8134338b935f968ca380.tar.bz2 |
gccrs: Only emit errors during type-bounds checking when required
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:
* typecheck/rust-unify.cc (UnifyRules::go): respect the emit_errors flag
-rw-r--r-- | gcc/rust/typecheck/rust-unify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-unify.cc b/gcc/rust/typecheck/rust-unify.cc index bdee48b..dcd1783 100644 --- a/gcc/rust/typecheck/rust-unify.cc +++ b/gcc/rust/typecheck/rust-unify.cc @@ -141,7 +141,7 @@ UnifyRules::go () // check bounds if (ltype->num_specified_bounds () > 0) { - if (!ltype->bounds_compatible (*rtype, locus, true)) + if (!ltype->bounds_compatible (*rtype, locus, emit_error)) { // already emitted an error emit_error = false; |