diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2020-05-20 14:31:51 +0000 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2020-06-22 15:33:07 +0000 |
| commit | 1e00e1b6debce8270dd75e795458ba8becdffe1f (patch) | |
| tree | 61b186bfde82f9b3954da9bc5b269383ac383b99 /src/rustllvm/CoverageMappingWrapper.cpp | |
| parent | 5a7a850753b60abfd2a806bf6bba4259d3535e7b (diff) | |
| download | rust-1e00e1b6debce8270dd75e795458ba8becdffe1f.tar.gz rust-1e00e1b6debce8270dd75e795458ba8becdffe1f.zip | |
upcasting traits requires only that things become more general
Revert the code that states that upcasting traits requires full equality and change to require that the source type is a subtype of the target type, as one would expect. As the comment states, this was an old bug that we didn't want to fix yet as it interacted poorly with the old leak-check. This fixes the old-lub-glb-object test, which was previously reporting too many errors (i.e., in the previous commit).
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
