aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast-dump.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-03-29 15:00:39 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:28:42 +0100
commit048098d44462aa79d092ed23be5bffb4f77b1874 (patch)
treef27f9b27295667292413e8d1f017d274c4e58410 /gcc/rust/ast/rust-ast-dump.h
parentf4f50c7ce902afbc46d192963237c025d4c721e0 (diff)
downloadgcc-048098d44462aa79d092ed23be5bffb4f77b1874.zip
gcc-048098d44462aa79d092ed23be5bffb4f77b1874.tar.gz
gcc-048098d44462aa79d092ed23be5bffb4f77b1874.tar.bz2
gccrs: make distinction between error and empty for substution args
When handling generics of only lifetimes we have an empty SubstitutionArgumentMappings which was being detected as an error but this is not the case as we don't currently handle const generics or generic lifetimes so this makes the distinction between an error occurred or its simply empty because it was all only lifetime arguments and we don't care about it. Addresses #2043 #2039 gcc/rust/ChangeLog: * typecheck/rust-tyty-bounds.cc (TypeBoundPredicate::TypeBoundPredicate): this is an empty (TypeBoundPredicate::operator=): likewise * typecheck/rust-tyty-subst.cc (SubstitutionArgumentMappings::empty): new interface (SubstitutionArgumentMappings::is_error): this marks it as an error * typecheck/rust-tyty-subst.h: update prototypes Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast-dump.h')
0 files changed, 0 insertions, 0 deletions