dtolnay / dtolnay/prettyplease

const impl formatting doesn't work

Open
#127 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
772
Forks
48
PR merge metrics
No merged PRs in 30d

Description

It seems the const impl syntax isn't being pasrsed!

```
thread '' (78880) panicked at ...\index.crates.io-1949cf8c6b5b557f\prettyplease-0.2.37\src\item.rs:364:13:
not implemented: Item::Verbatim `impl const std :: ops :: Deref for cLockableTexture < > { type Target = crate :: bindings :: Hw :: Graphics :: cTexture < > ; fn deref (& self) -> & Self :: Target { & self . base } }`
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the panic with the const impl syntax shown in the issue, then inspect the formatting path around the reported dependency location, src/item.rs:364:13. Confirm that const impl input is parsed and formatted without producing Item::Verbatim or panicking; add a regression test if the repository’s test structure identifies an appropriate location.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.