rust/crates
bors cecbed98d8 Auto merge of #15360 - lowr:fix/mbe-transcribe-path-of-different-types, r=HKalbasi
Fixup path fragments upon MBE transcription

Fixes #14367

There are roughly two types of paths: paths in expression context, where a separator `::` between an identifier and its following generic argument list is mandatory, and paths in type context, where `::` can be omitted.

Unlike rustc, we need to transform the parsed fragments back into tokens during transcription. When the matched path fragment is a type-context path and is transcribed as an expression-context path, verbatim transcription would cause a syntax error.

This PR fixes up path fragments by inserting `::` to make sure they are syntactically correct in all contexts. Note that this works because expression-context paths are a strict superset of type-context paths.
2023-07-30 17:29:36 +00:00
..
base-db implement type_name intrinsic 2023-07-14 16:52:36 +03:30
cfg Replace x with it 2023-07-06 17:33:17 +03:30
flycheck Bump more deps 2023-06-22 11:44:10 +02:00
hir Auto merge of #15320 - lowr:fix/incorrect-name-case-for-inner-items, r=HKalbasi 2023-07-21 06:41:30 +00:00
hir-def Auto merge of #15360 - lowr:fix/mbe-transcribe-path-of-different-types, r=HKalbasi 2023-07-30 17:29:36 +00:00
hir-expand fix: Do not create fn macro calls with non-fn expanders 2023-07-30 12:18:19 +02:00
hir-ty Auto merge of #15353 - HKalbasi:mir, r=HKalbasi 2023-07-28 16:02:13 +00:00
ide Add comments for why skip highlighting for invalid char/byte literals 2023-07-23 04:24:35 +08:00
ide-assists Show TyKind::FnDef as a fn pointer in source code 2023-07-28 19:09:38 +09:00
ide-completion Replace x with it 2023-07-06 17:33:17 +03:30
ide-db Fix the eager token maps by re-mapping the textranges between the input and input expansion 2023-07-13 09:22:38 +02:00
ide-diagnostics Report incorrect case for inner items within all bodies 2023-07-21 15:07:55 +09:00
ide-ssr Use anonymous lifetime where possible 2023-06-29 23:27:28 +09:00
intern Bump more deps 2023-06-22 11:44:10 +02:00
limit
load-cargo Fix publishing of load-cargo crate 2023-07-10 13:40:37 +03:00
mbe Fixup path fragments upon MBE transcription 2023-07-30 23:36:42 +09:00
parser Remove crate visibility modifier 2023-07-16 00:01:11 +09:00
paths internal: use consistent style for error handling 2023-06-19 13:01:47 +01:00
proc-macro-api Support reading uncompressed proc macro metadata 2023-07-17 13:30:19 +00:00
proc-macro-srv Merge remote-tracking branch 'upstream/master' into sync-from-rust 2023-07-17 16:09:39 +03:00
proc-macro-srv-cli
proc-macro-test
profile Use anonymous lifetime where possible 2023-06-29 23:27:28 +09:00
project-model Optimize DepKindInfo -> DepKind conversion 2023-07-21 17:10:42 +09:00
rust-analyzer Write proc-macro server spawn errors to the status text 2023-07-30 14:38:25 +02:00
sourcegen Format let-else 2023-07-03 20:34:09 +02:00
stdx Bump more deps 2023-06-22 11:44:10 +02:00
syntax Fix unescaping of C string literals 2023-07-18 18:52:34 +08:00
test-utils Give real discriminant_type to chalk 2023-07-14 20:15:18 +03:30
text-edit
toolchain
tt Fixup path fragments upon MBE transcription 2023-07-30 23:36:42 +09:00
vfs Upgrade to indexmap v2 2023-06-24 17:35:20 -07:00
vfs-notify Downgrade some deps to get rif of windows-sys duplication 2023-06-22 11:44:10 +02:00