diff options
| author | bors <bors@rust-lang.org> | 2018-02-16 03:38:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-02-16 03:38:44 +0000 |
| commit | 5570cdcc9e7da0cca84e394e872bc16df2c6dc50 (patch) | |
| tree | 9606a02e2e153b903a1d4c2c78d160af94e87a4f /src/librustdoc/html/render.rs | |
| parent | efda9bae8788fdc68ea1d05be3c5b66d3e291961 (diff) | |
| parent | d49d428f791b97c476c066deb9c2b3c20165199f (diff) | |
| download | rust-5570cdcc9e7da0cca84e394e872bc16df2c6dc50.tar.gz rust-5570cdcc9e7da0cca84e394e872bc16df2c6dc50.zip | |
Auto merge of #46714 - leodasvacas:refactor-structurally-resolve-type, r=nikomatsakis
Refactor diverging and numeric fallback.
This refactoring tries to make numeric fallback easier to reason about. Instead of applying all fallbacks at an arbitrary point in the middle of inference, we apply the fallback only when necessary and only for
the variable that requires it. The only place that requires early fallback is the target of numeric casts.
The visible consequences is that some error messages that got `i32` now get `{integer}` because we are less eager about fallback.
The bigger goal is to make it easier to integrate user fallbacks into inference, if we ever figure that out.
Diffstat (limited to 'src/librustdoc/html/render.rs')
0 files changed, 0 insertions, 0 deletions
