aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-09-10 14:44:42 +0000
committerGitHub <noreply@github.com>2021-09-10 14:44:42 +0000
commite3b7eb58844c446d097ddee00ecd455d5537c6b2 (patch)
tree30186abaf20b28e107b78a93cddba7143c68d2b8 /gcc/rust/backend/rust-compile-expr.h
parent2bf19c1b20bfad19136e17c0c7fa765e161b789c (diff)
parent0c409fcf5678709303126aba07932f9f2a8519da (diff)
downloadgcc-e3b7eb58844c446d097ddee00ecd455d5537c6b2.zip
gcc-e3b7eb58844c446d097ddee00ecd455d5537c6b2.tar.gz
gcc-e3b7eb58844c446d097ddee00ecd455d5537c6b2.tar.bz2
Merge #669
669: Fix bug with monomorphizing of trait items r=philberty a=philberty When we monomorphize functions we need to check if we have already generated this function already. All function items have a DefId which is unique for the crate and HIR item this means for generic implementations of an item we end up with mappings of: DefId -> [ (concete-tyty-fntype, GCC::Function), ... ] So for any function we can lookup for that DefId is there a suitable version of this function already compiled. This was working untill we have generic trait items which also need to be handled in the same way. Fixes #668 Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions