mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Merge #11595
11595: fix: lower string literals with actual value instead of default r=lnicola a=tysg Fixes #11582. Some questions below in the code review section. Co-authored-by: Tianyi Song <42670338+tysg@users.noreply.github.com>
This commit is contained in:
commit
908c17bfa6
2 changed files with 25 additions and 1 deletions
|
@ -3508,6 +3508,27 @@ const FOO$0: usize = 1 << 100;
|
|||
|
||||
---
|
||||
|
||||
This is a doc
|
||||
"#]],
|
||||
);
|
||||
check(
|
||||
r#"
|
||||
/// This is a doc
|
||||
const FOO$0: &str = "bar";
|
||||
"#,
|
||||
expect![[r#"
|
||||
*FOO*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
const FOO: &str = "bar"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
This is a doc
|
||||
"#]],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue