diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-06-14 12:11:38 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-06-14 15:30:31 +0000 |
commit | b028c7ece2ad67236e55a38b776c0bf70408a53e (patch) | |
tree | 75df66e6a72f5e4d0dc0c0c811ad88239eb1827e /gcc/rust/resolve | |
parent | d1e10de0014401a1e31ba87003cdcf157439cae3 (diff) | |
download | gcc-b028c7ece2ad67236e55a38b776c0bf70408a53e.zip gcc-b028c7ece2ad67236e55a38b776c0bf70408a53e.tar.gz gcc-b028c7ece2ad67236e55a38b776c0bf70408a53e.tar.bz2 |
gccrs: we can't check the bounds involving empty placeholder types
We use placeholders for assoicated types on traits but if we are unifying
types against a placeholder its not possible to check the bounds as the
placeholder does not have enough information yet at this point to determine
if bounds will or won't be satisfied. That check will occur when associated
types and generics are setup.
Fixes #2036
gcc/rust/ChangeLog:
* typecheck/rust-unify.cc (UnifyRules::go): dont check bounds on placeholders
gcc/testsuite/ChangeLog:
* rust/compile/issue-2036.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions