diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-06-18 21:05:25 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-06-18 21:05:59 +0000 |
| commit | bfe6a26af6669485b4661877583ebe3d22cd0317 (patch) | |
| tree | 88fd8fb6a68d8bef71ca285bc02f6f5ebc5d01d2 /compiler/rustc_interface/src | |
| parent | dd104ef16315e2387fe94e8c43eb5a66e3dbd660 (diff) | |
| download | rust-bfe6a26af6669485b4661877583ebe3d22cd0317.tar.gz rust-bfe6a26af6669485b4661877583ebe3d22cd0317.zip | |
hir_typeck: be more conservative in making "note caller chooses ty param" note
- Avoid "caller chooses ty for type param" note if the found type a.k.a. the return expression type *contains* the type parameter, because e.g. `&T` will always be different from `T` (i.e. "well duh"). - Rename `note_caller_chooses_ty_for_ty_param` to `try_note_caller_chooses_ty_for_ty_param` because the note is not always made. Issue: https://github.com/rust-lang/rust/issues/126547
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
