about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-08-01 17:37:33 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-08-06 21:33:10 +0800
commit0aa105740c1f9341a816e7f34ec94a4855f6158a (patch)
tree8361ebf6b91600b02fef79c0e8c909f8af64f129 /tests/rustdoc-js-std/parser-errors.js
parentd976ef8ae494cc8fd6672d43c49377e43c2876b5 (diff)
downloadrust-0aa105740c1f9341a816e7f34ec94a4855f6158a.tar.gz
rust-0aa105740c1f9341a816e7f34ec94a4855f6158a.zip
Add remove simple dbg stmt for remove_dbg
Remove only contain literals dbg statement

```rust
fn foo() {
    let n = 2;
    $0dbg!(3);
    dbg!(2.6);
    dbg!(1, 2.5);
    dbg!('x');
    dbg!(&n);
    dbg!(n);
    // needless comment
    dbg!("foo");$0
}
```
->
```rust
fn foo() {
    // needless comment
}
```
Old:
```rust
fn foo() {
    3;
    2.6;
    (1, 2.5);
    'x';
    &n;
    n;
    // needless comment
    "foo";
}
```
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions