diff options
author | bors <bors@rust-lang.org> | 2023-01-03 20:44:40 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-01-03 20:44:40 +0000 |
commit | c7572670a1302f5c7e245d069200e22da9df0316 (patch) | |
tree | b57ca46f169056423459a70c66670fb0e22dfff2 /tests/rustdoc-js-std/parser-errors.js | |
parent | ab10908e8c32c4350b07fc6892b9e5f7e9ffa881 (diff) | |
parent | 93e62a4bf629c0904c047e02b79905c70b9abf79 (diff) | |
download | rust-c7572670a1302f5c7e245d069200e22da9df0316.tar.gz |
Auto merge of #105752 - chenyukang:yukang/refactor-method-error, r=compiler-errors
Refactoring report_method_error
While working on #105732, I found it's hard to follow this long function,
so I tried to make it shorter.
It's not easy for code reviewing, since so many lines of code changes,
but only the positions are changed.
Generally, I extract two sub-methods from `report_method_error`:
https://github.com/rust-lang/rust/blob/397b66e77b279de5006facf87979f9ecff5c7f87/compiler/rustc_hir_typeck/src/method/suggest.rs#L117
to `note_candidates_on_method_error`
And this long block:
https://github.com/rust-lang/rust/blob/397b66e77b279de5006facf87979f9ecff5c7f87/compiler/rustc_hir_typeck/src/method/suggest.rs#L263
to `report_no_match_method_error`.
r? `@compiler-errors`
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions