about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-06 21:30:30 +0000
committerbors <bors@rust-lang.org>2023-06-06 21:30:30 +0000
commit058e2d2bdd06b63a137f0f7931d5725e530f17e4 (patch)
tree85dfc8adbdaf50f250f29033e88a1ba82aea8902 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff
parentf3145dc1f1a6c62e7bb6c5e0fa3caf98e3f45842 (diff)
parenteef716d5f2a0536a77f59ee7ec1150b811682f7a (diff)
downloadrust-058e2d2bdd06b63a137f0f7931d5725e530f17e4.tar.gz
rust-058e2d2bdd06b63a137f0f7931d5725e530f17e4.zip
Auto merge of #14925 - viktorlott:inline-const-expr-as-static-str, r=HKalbasi
feat: inline const as literal

Assist: inline_const_as_literal

Evaluate and inline const variable as literal.

```rust
const STRING: &str = "Hello, World!";

fn something() -> &'static str {
    STR$0ING
}
```
->
```rust
const STRING: &str = "Hello, World!";

fn something() -> &'static str {
    "Hello, World!"
}
```
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions