about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-12 00:47:54 +0000
committerbors <bors@rust-lang.org>2022-06-12 00:47:54 +0000
commit37a42258ffe02cfb7107380759e492c64500ab55 (patch)
tree8ed8b58ef18bc8200c18fcc299010e9bb12b0832 /src/librustdoc/html/static/js/source-script.js
parente652caa679a304af11fc04f1f12452f255a82593 (diff)
parent5f7474e6dc9ad8ddc802606c1a538b4f567cbc01 (diff)
downloadrust-37a42258ffe02cfb7107380759e492c64500ab55.tar.gz
rust-37a42258ffe02cfb7107380759e492c64500ab55.zip
Auto merge of #97778 - compiler-errors:misc-diagnostics-tidy, r=cjgillot
Tidy up miscellaneous bounds suggestions

Just some small fixes to suggestions

- Generalizes `Ty::is_suggestable` into a `TypeVisitor`, so that it can be called on things other than `Ty`
- Makes `impl Trait` in arg position no longer suggestible (generalizing the fix in #97640)
- Fixes `impl Trait` not being replaced with fresh type param when it's deeply nested in function signature (fixes #97760)
- Fixes some poor handling of `where` clauses with no predicates (also #97760)
- Uses `InferCtxt::resolve_numeric_literals_with_default` so we suggest `i32` instead of `{integer}` (fixes #97677)

Sorry there aren't many tests the fixes. Most of them would just be duplicates of other tests with empty `where` clauses or `impl Trait` in arg position instead of generic params. Let me know if you'd want more test coverage.
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions