diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-06-03 09:00:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 09:00:14 +0000 |
commit | 664bd46f4cfff6e1864b674d6ec6a10b2985104c (patch) | |
tree | e06376de707e0a3ce866d839036b0849ed0d74c1 /gcc/rust/backend/rust-compile-expr.h | |
parent | a71fa22c4dca3ffda1137981d861a45e04db8925 (diff) | |
parent | 92f9eb46ec0ef70c808db613da4312af09f736df (diff) | |
parent | 91b16af14cb4f7cdf6414b1314c35202d5883fd9 (diff) | |
download | gcc-664bd46f4cfff6e1864b674d6ec6a10b2985104c.zip gcc-664bd46f4cfff6e1864b674d6ec6a10b2985104c.tar.gz gcc-664bd46f4cfff6e1864b674d6ec6a10b2985104c.tar.bz2 |
Merge #1292 #1293
1292: Add name resolution to for loops r=philberty a=philberty
This just adds basic name resolution and hir lowering for
the loop. Eventually we will make all Loops into a single
HIR::LoopExpr but for now its really useful having a separate
visitor to implement this to avoid regressions in the short
term.
Addresses #869
1293: Fixup name canonicalization for impl blocks r=philberty a=philberty
When we generate the path for impl items we need to base this of the Self
type but this was ignoring cases like pointers, references or slices. This
meant generic slices had the same path has generic pointers etc. The only
reason we didn't end up with a linker symbol clash is due to the symbol
hash.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>