aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-expr.h
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-01-16 17:10:02 +0100
committerPhilip Herron <philip.herron@embecosm.com>2025-01-21 13:45:16 +0000
commit53dfc6acf966284a86826141c8f364c1732d3d3d (patch)
tree0f385585378acc538eec368a280dd4bec413b835 /gcc/gimple-expr.h
parent9e876359e38d6849c64b7352dc560e0264a7300c (diff)
downloadgcc-53dfc6acf966284a86826141c8f364c1732d3d3d.zip
gcc-53dfc6acf966284a86826141c8f364c1732d3d3d.tar.gz
gcc-53dfc6acf966284a86826141c8f364c1732d3d3d.tar.bz2
typecheck: Add basic handling for applying auto trait bounds
gcc/rust/ChangeLog: * hir/rust-ast-lower-item.cc (ASTLoweringItem::visit): Register auto traits in mappings. * util/rust-hir-map.cc (Mappings::insert_auto_trait): New. (Mappings::get_auto_traits): New. * util/rust-hir-map.h: Declare them. * typecheck/rust-tyty-bounds.cc (TypeBoundsProbe::scan): Add auto trait bounds when scanning. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Some parts of nr2.0 can't handle auto traits yet. * rust/compile/auto_traits3.rs: Removed in favor of... * rust/compile/auto_traits2.rs: ...this one. * rust/compile/auto_traits4.rs: New test.
Diffstat (limited to 'gcc/gimple-expr.h')
0 files changed, 0 insertions, 0 deletions