about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
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
commitbfe6a26af6669485b4661877583ebe3d22cd0317 (patch)
tree88fd8fb6a68d8bef71ca285bc02f6f5ebc5d01d2 /compiler/rustc_interface/src
parentdd104ef16315e2387fe94e8c43eb5a66e3dbd660 (diff)
downloadrust-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