From a0c2ea3ee6e47f4090759ad4cacd43225ceea669 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Sat, 17 Sep 2022 10:06:48 +0100 Subject: [PATCH] gccrs: remove bad assertion gcc/rust/ChangeLog: * backend/rust-tree.cc (rs_type_quals): Comment out bad assertion --- gcc/rust/backend/rust-tree.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc index d2ddcfd2957c..47506d6792a8 100644 --- a/gcc/rust/backend/rust-tree.cc +++ b/gcc/rust/backend/rust-tree.cc @@ -974,9 +974,10 @@ rs_type_quals (const_tree type) return TYPE_UNQUALIFIED; quals = TYPE_QUALS (type); /* METHOD and REFERENCE_TYPEs should never have quals. */ - gcc_assert ( - (TREE_CODE (type) != METHOD_TYPE && !TYPE_REF_P (type)) - || ((quals & (TYPE_QUAL_CONST | TYPE_QUAL_VOLATILE)) == TYPE_UNQUALIFIED)); + // gcc_assert ( + // (TREE_CODE (type) != METHOD_TYPE && !TYPE_REF_P (type)) + // || ((quals & (TYPE_QUAL_CONST | TYPE_QUAL_VOLATILE)) == + // TYPE_UNQUALIFIED)); return quals; } -- 2.47.2