aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-var-decl.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-12-16 11:38:58 +0000
committerGitHub <noreply@github.com>2021-12-16 11:38:58 +0000
commit7615df781226137b9cd76b47df4aea6ad9f2140e (patch)
tree9612ddcdf4381a28762ad694b4e233e4c3dda4e3 /gcc/rust/backend/rust-compile-var-decl.h
parent83a984b1a12694d8e06eb139089429b61e236fdd (diff)
parentc81eb149048938e2e795e015b69bf601a930f799 (diff)
downloadgcc-7615df781226137b9cd76b47df4aea6ad9f2140e.zip
gcc-7615df781226137b9cd76b47df4aea6ad9f2140e.tar.gz
gcc-7615df781226137b9cd76b47df4aea6ad9f2140e.tar.bz2
Merge #836
836: BugFix NodeId skew on AST::Patterns r=philberty a=philberty The AST constructors implicitly generate new NodeId's, their associated copy/move constructors ensure that they preserve the NodeId correctly. The AST::Pattern's here incorrectly had a constructor in the abstract base class which was generating the NodeId's but when this is used within AST::MatchArms the fields contain these patterns which can get copied/moved to cause new NodeId's to be generated which then throws off type checking as the NodeId changes during HIR lowering and thus each of the ID's are all off by one during type checking. Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-var-decl.h')
0 files changed, 0 insertions, 0 deletions