about summary refs log tree commit diff
path: root/src/test/ui/macros/format-parse-errors.rs
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-12-19 16:47:06 +0100
committerDavid Wood <david@davidtw.co>2018-12-30 14:30:59 +0100
commit0bfe184b1ad14db4b002c3a272adf44e1839822f (patch)
treea8284d73529951ca1e5ebec76fc09e42647b3257 /src/test/ui/macros/format-parse-errors.rs
parent28fd1b04e56f33fecc843c0a78fc490b03100f43 (diff)
downloadrust-0bfe184b1ad14db4b002c3a272adf44e1839822f.tar.gz
rust-0bfe184b1ad14db4b002c3a272adf44e1839822f.zip
Stop duplicating projections of type annotation.
This commit changes how type annotations are handled in bindings during
MIR building.

Instead of building up a `PatternTypeProjections` with the
`CanonicalUserTypeAnnotation` and projections, the
`CanonicalUserTypeAnnotation` is stored in the
`canonical_user_type_annotations` map at the start and the (equivalent)
`UserTypeProjections` is built up with the new index and same projections.

This has the effect of deduplicating type annotations as instead of type
annotations being added to the `canonical_user_type_annotations` map
multiple times at the end after being duplicated (which happens in building
up `PatternTypeProjections`), it is instead added once.
Diffstat (limited to 'src/test/ui/macros/format-parse-errors.rs')
0 files changed, 0 insertions, 0 deletions