about summary refs log tree commit diff
path: root/src/test/ui/const-generics/array-size-in-generic-struct-param.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-01-09 10:01:20 -0500
committerAaron Hill <aa1ronham@gmail.com>2020-01-09 10:01:20 -0500
commit4840cd8117010e057109e0233f403e526d309d9f (patch)
tree1030f1f79b0b809d9f2b339cb70b0f0f81b135c8 /src/test/ui/const-generics/array-size-in-generic-struct-param.rs
parentadc65725004c8aac16392fe4052c3e347181157d (diff)
downloadrust-4840cd8117010e057109e0233f403e526d309d9f.tar.gz
rust-4840cd8117010e057109e0233f403e526d309d9f.zip
Don't discard marker trait impls when inference variables are present
Fixes #61651

Previously, we would unconditionally discard impl candidates for marker
traits during trait selection. However, if the predicate had inference
variables, this could have the effect of constrainting inference
variables (due to a successful trait selection) when we would have
otherwise failed due to mutliple applicable impls,

This commit prevents marker trait impls from being discarded while the
obligation predicate has any inference variables, ensuring that
discarding impls will never cause us to incorrectly constraint inference
variables.
Diffstat (limited to 'src/test/ui/const-generics/array-size-in-generic-struct-param.rs')
0 files changed, 0 insertions, 0 deletions