]> git.lizzy.rs Git - rust.git/commit
Tweak output
authorEsteban Küber <esteban@kuber.com.ar>
Wed, 4 Jan 2023 04:20:31 +0000 (20:20 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Thu, 5 Jan 2023 16:51:16 +0000 (16:51 +0000)
commit9cc8d8619062278046e678bbc08401b733a17236
treed066f880488aeddab487ea88a3140d122b66369b
parent6b0cce4b5018bcd1c7aed1f84cb0b86e3cc03f9f
Tweak output

- Only point at a the single expression where the found type was first
  inferred.
- Find method call argument that might have caused the found type to be
  inferred.
- Provide structured suggestion.
- Apply some review comments.
- Tweak wording.
compiler/rustc_hir_typeck/src/demand.rs
src/test/ui/type/type-check/assignment-in-if.stderr
src/test/ui/type/type-check/point-at-inference-2.rs [new file with mode: 0644]
src/test/ui/type/type-check/point-at-inference-2.stderr [new file with mode: 0644]
src/test/ui/type/type-check/point-at-inference.fixed [new file with mode: 0644]
src/test/ui/type/type-check/point-at-inference.rs [new file with mode: 0644]
src/test/ui/type/type-check/point-at-inference.stderr [new file with mode: 0644]