diff options
author | Philip Herron <herron.philip@googlemail.com> | 2024-09-20 17:49:36 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:11 +0100 |
commit | 1e387486fbe93769221d905aae2b896ae0cb1cd3 (patch) | |
tree | 32e72137888dc8f0a7ed697286833fb6838af884 /gcc/rust/resolve/rust-ast-resolve-path.h | |
parent | 21e43d47d3f946a0b4f046125b07cdfc7172c41a (diff) | |
download | gcc-1e387486fbe93769221d905aae2b896ae0cb1cd3.zip gcc-1e387486fbe93769221d905aae2b896ae0cb1cd3.tar.gz gcc-1e387486fbe93769221d905aae2b896ae0cb1cd3.tar.bz2 |
rust: negative polarity removes restrictions on validation of impl blocks
Negative polarity means we can just ignore if any trait items are not
implemented.
Fxies #3030
gcc/rust/ChangeLog:
* hir/rust-ast-lower-item.cc (ASTLoweringItem::visit): the polarity was reversed
* typecheck/rust-hir-type-check-item.cc: check the polarity
gcc/testsuite/ChangeLog:
* rust/compile/nr2/exclude: nr2 cant handle this
* rust/compile/issue-3030.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-path.h')
0 files changed, 0 insertions, 0 deletions