rust/crates
bors 07f6efc4e7 Auto merge of #13523 - lowr:fix/adjust-expectation-for-if, r=lnicola
fix: disregard type variable expectation for if expressions

Fixes #13522

As [the comment](8142d1f606/crates/hir-ty/src/infer.rs (L1087-L1090)) on `Expectation::adjust_for_branches` explains:

> If the expected type is just a type variable, then don't use an expected type. Otherwise, we might write parts of the type when checking the 'then' block which are incompatible with the 'else' branch.

Note that we already use it in match expressions. I've added tests for them too nevertheless.
2022-10-31 15:39:20 +00:00
..
base-db formatting 2022-09-26 18:35:06 +01:00
cfg Bump anyhow, arbitrary, itertools, semver, serde 2022-10-15 12:52:34 +03:00
flycheck fix: Fix standard flycheck command not being executed in the workspace it is being invoked for 2022-10-24 16:07:42 +02:00
hir Test all generic args for trait when finding matching impl 2022-10-25 23:28:40 +09:00
hir-def Collect generic arguments in associated type bindings 2022-10-27 19:18:59 +09:00
hir-expand Support const generics for builtin derive macro 2022-10-23 00:05:22 +09:00
hir-ty Auto merge of #13523 - lowr:fix/adjust-expectation-for-if, r=lnicola 2022-10-31 15:39:20 +00:00
ide Test all generic args for trait when finding matching impl 2022-10-25 23:28:40 +09:00
ide-assists feat: add multiple getters mode in generate_getter 2022-10-20 16:47:23 +05:30
ide-completion Auto merge of #13418 - lnicola:bump-deps, r=lnicola 2022-10-15 11:27:12 +00:00
ide-db Auto merge of #13418 - lnicola:bump-deps, r=lnicola 2022-10-15 11:27:12 +00:00
ide-diagnostics Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
ide-ssr Bump anyhow, arbitrary, itertools, semver, serde 2022-10-15 12:52:34 +03:00
limit Properly cfg the max field of Limit 2022-07-31 19:27:20 +02:00
mbe Auto merge of #13418 - lnicola:bump-deps, r=lnicola 2022-10-15 11:27:12 +00:00
parser Auto merge of #13160 - ChayimFriedman2:parse-parenthesized-type-path-with-coloncolon, r=jonas-schievink 2022-09-01 21:00:14 +00:00
paths Auto merge of #12808 - Veykril:check-workspace, r=Veykril 2022-08-04 12:57:04 +00:00
proc-macro-api Bump tracing 2022-10-15 12:52:34 +03:00
proc-macro-srv Don't run proc-macro-srv tests on the rust-analyzer repo 2022-09-24 00:08:28 +02:00
proc-macro-srv-cli Gate and rename binary, use it if it's in the sysroot 2022-07-25 16:22:39 +02:00
proc-macro-test revert nightly rustfmt formatting that accidentally slipped in 2022-07-25 14:18:30 +02:00
profile Bump libc 2022-10-15 12:55:56 +03:00
project-model Handle multiple projects sharing dependency correctly in once strategy 2022-10-23 18:01:35 +02:00
rust-analyzer Pin lsp-types 2022-10-25 15:03:35 +03:00
sourcegen Remove obsolete in-rust-tree feature from sourcegen 2022-09-26 11:34:30 +02:00
stdx Bump libc 2022-10-15 12:55:56 +03:00
syntax Collect generic arguments in associated type bindings 2022-10-27 19:18:59 +09:00
test-utils Revert "feat: Diagnose some incorrect usages of the question mark operator" 2022-10-18 14:18:59 +02:00
text-edit Bump anyhow, arbitrary, itertools, semver, serde 2022-10-15 12:52:34 +03:00
toolchain Bump home 2022-10-15 12:53:26 +03:00
tt Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
vfs Make use of NoHash hashing for FileId and CrateId 2022-08-25 20:41:49 +02:00
vfs-notify Bump notify 2022-10-15 13:03:39 +03:00