rust/crates
bors 2120c913c2 Auto merge of #14872 - lowr:fix/ref-pat-with-type-var, r=HKalbasi
fix: introduce new type var when expectation for ref pat is not ref

Fixes #14840

When we infer the type of ref patterns, its expected type may not be reference type: 1) expected type is an unresolved inference variable, or 2) expected type is erroneously other kind of type. In either case, we should produce a reference type with a new type variable rather than an error type so that we can continue inferring the inner patterns without further errors because of the (possible) type mismatch of this pattern.
2023-05-22 19:53:39 +00:00
..
base-db fix: Fix body lowering not using block def maps 2023-05-04 20:46:05 +02:00
cfg
flycheck Bump Cargo.lock 2023-03-25 15:12:39 +01:00
hir Auto merge of #14857 - Veykril:perf, r=Veykril 2023-05-20 10:00:43 +00:00
hir-def handle match scrutinee in closure captures 2023-05-19 12:04:12 +03:30
hir-expand internal: Shrink ProcMacroExpander from 8 to 4 bytes 2023-05-20 11:31:28 +02:00
hir-ty fix: introduce new type var when expectation for ref pat is not ref 2023-05-22 23:13:41 +09:00
ide Consider block impls in lookup_impl_assoc_item_for_trait_ref 2023-05-20 01:11:17 +03:30
ide-assists fix: consider all tokens in macro expr when analyzing locals 2023-05-21 20:07:36 +09:00
ide-completion Process macro_use prelude in semantic scope resolver 2023-05-17 17:45:44 +09:00
ide-db Update crates/ide-db/src/syntax_helpers/node_ext.rs 2023-05-19 09:33:57 +02:00
ide-diagnostics handle match scrutinee in closure captures 2023-05-19 12:04:12 +03:30
ide-ssr Depend on nohash-hasher individually 2023-05-06 00:49:23 -07:00
intern Use triomphe Arc 2023-05-02 20:02:43 +03:00
limit Move Expander and LowerCtx into separate modules 2023-04-17 20:44:06 +02:00
mbe Use boxed slices instead ovecs in decl macros 2023-05-02 17:04:53 +02:00
parser Support c string literals 2023-05-18 11:06:05 +02:00
paths Add AbsPath::absolutize 2023-05-13 11:51:28 +02:00
proc-macro-api Use triomphe Arc 2023-05-02 20:02:43 +03:00
proc-macro-srv Encode closing delimiter span in FlatTrees 2023-04-14 10:34:41 +02:00
proc-macro-srv-cli Remove proc-macro server command from the rust-analyzer binary 2023-04-26 08:19:28 +02:00
proc-macro-test
profile internal: Add some additional status ouput 2023-04-22 09:34:47 +02:00
project-model Add AbsPath::absolutize 2023-05-13 11:51:28 +02:00
rust-analyzer Fix layout for hir_ty::Ty and friends 2023-05-18 11:29:03 +03:30
sourcegen Use retain_mut in CommentBlock::extract 2023-03-31 17:41:40 -04:00
stdx Depend on nohash-hasher individually 2023-05-06 00:49:23 -07:00
syntax Support c string literals 2023-05-18 11:06:05 +02:00
test-utils Add moved-out-of-ref diagnostic 2023-05-18 19:17:06 +03:30
text-edit Make text-size a workspace dep 2023-05-06 00:49:23 -07:00
toolchain ⬆️ rust-analyzer 2023-03-13 10:42:24 +02:00
tt Emit function bodies in expanding builtin derives 2023-05-03 14:14:47 +03:30
vfs Depend on nohash-hasher individually 2023-05-06 00:49:23 -07:00
vfs-notify