aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-09-17 10:06:48 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-01-31 14:16:51 +0100
commita0c2ea3ee6e47f4090759ad4cacd43225ceea669 (patch)
tree921aa0a6b56753389b0c031d7fa0dda0c13f6180 /gcc/rust
parent408ab8a6e412270996ec10369b778cfcb3946ae5 (diff)
downloadgcc-a0c2ea3ee6e47f4090759ad4cacd43225ceea669.zip
gcc-a0c2ea3ee6e47f4090759ad4cacd43225ceea669.tar.gz
gcc-a0c2ea3ee6e47f4090759ad4cacd43225ceea669.tar.bz2
gccrs: remove bad assertion
gcc/rust/ChangeLog: * backend/rust-tree.cc (rs_type_quals): Comment out bad assertion
Diffstat (limited to 'gcc/rust')
-rw-r--r--gcc/rust/backend/rust-tree.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc
index d2ddcfd..47506d6 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;
}