Unverified Commit e95dc95a authored by bors[bot]'s avatar bors[bot] Committed by GitHub
Browse files

Merge #110



110: fix: avoid rust-analyzer snake case warning r=almindor a=sethp

It seems that rust-analyzer needs to operate over the expanded text of the proc macro (in order to e.g. support completion in the function body, see #11014 for way more details), so it "sees" the non-snake-case name emitted by riscv-rt's `entry` here.

Without this change, rust-analyzer will show a "weak warning" on invocations of `#[entry]` with the text:

```
Function `__risc_v_rt__main` should have snake_case name, e.g. `__risc_v_rt_main`
```

Co-authored-by: default avatarsethp <seth@codecopse.net>
parents 4929c52d c1b88da5
Pipeline #763 failed with stages
in 0 seconds
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment