aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-01-16 17:10:02 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-24 13:06:51 +0100
commit3ee9affeb3bd5e5ef6f2b6f9a73252b937536f4e (patch)
tree19e79fc544a9ee5b1bbbfeb32b1660293f10e0ff /gcc/rust/backend
parentecb0e17c41944d340595816e2890f2a7d2053044 (diff)
downloadgcc-3ee9affeb3bd5e5ef6f2b6f9a73252b937536f4e.zip
gcc-3ee9affeb3bd5e5ef6f2b6f9a73252b937536f4e.tar.gz
gcc-3ee9affeb3bd5e5ef6f2b6f9a73252b937536f4e.tar.bz2
gccrs: 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/rust/backend')
0 files changed, 0 insertions, 0 deletions