rust-analyzer/crates/hir-def/src
bors b569bbbacc Auto merge of #12942 - lowr:fix/concat-with-char, r=Veykril
fix: make `concat!` work with char

Fixes #12921

- I avoided making `unquote_str()` take char literals as well because it's depended on by another function `parse_string()` that's only supposed to take strings.
- Even with this patch, we don't output `\0` as `\u{0}` which #12921 pointed out ~~, but we're not actually responsible for serializing it but rowan is~~. They are functionally equivalent and I don't think it'd cause any confusion, but we *could* try escaping them before serialization (for reference, `rustc -Zunpretty=expanded`, which `cargo expand` uses under the hood, [makes use of `str::escape_default()`](3830ecaa8d/compiler/rustc_ast/src/util/literal.rs (L161)).
2022-08-08 11:28:42 +00:00
..
body Add info whether it's assignee expr to relevant HIR Expr variants 2022-07-24 22:40:00 +09:00
item_tree remove inherit_visibility test case in item_tree 2022-06-14 23:24:48 +08:00
macro_expansion_tests minor: align with rustc on escaping characters in macro expansion 2022-08-05 22:01:09 +09:00
nameres Give variables more descriptive names 2022-07-31 19:27:34 +02:00
path Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
adt.rs internal: Use itemtree for variant and field attribute collection 2022-07-21 08:48:13 +02:00
attr.rs fix: Fix ast-id up when merging raw attributes 2022-07-30 09:43:30 +02:00
body.rs Remove AstIdMap from Expander as it is seldom needed 2022-07-21 02:01:07 +02:00
builtin_attr.rs internal: Update inert attribute list 2022-07-05 11:54:46 +02:00
builtin_type.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
child_by_source.rs internal: Record all macro definitions in ItemScope 2022-07-05 11:28:47 +02:00
data.rs Allow name querying for derive helpers 2022-07-26 09:27:22 +02:00
db.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
dyn_map.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
expr.rs Add info whether it's assignee expr to relevant HIR Expr variants 2022-07-24 22:40:00 +09:00
find_path.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
generics.rs Returns the old value for la_arena::ArenaMap::insert 2022-08-07 04:53:23 +08:00
import_map.rs revert nightly rustfmt formatting that accidentally slipped in 2022-07-25 14:18:30 +02:00
intern.rs internal: Update dashmap and freeze its version 2022-06-10 16:19:52 +02:00
item_scope.rs fix: Order ItemScope::entries results 2022-07-28 19:28:56 +02:00
item_tree.rs Fix r-a spelling in some places 2022-08-01 13:47:09 +02:00
keys.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
lang_item.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
lib.rs Record derive helper attributes, resolve them in IDE layer 2022-07-26 09:26:51 +02:00
macro_expansion_tests.rs Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
nameres.rs Allow name querying for derive helpers 2022-07-26 09:27:22 +02:00
path.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
per_ns.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
resolver.rs Record derive helper attributes, resolve them in IDE layer 2022-07-26 09:26:51 +02:00
src.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
test_db.rs Run cargo fix --edition-idioms 2022-07-20 15:02:08 +02:00
trace.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
type_ref.rs Auto merge of #12827 - Veykril:be-lazy, r=Veykril 2022-07-21 00:11:18 +00:00
visibility.rs Returns the old value for la_arena::ArenaMap::insert 2022-08-07 04:53:23 +08:00