Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: better println for Quoted (#5896)
# Description ## Problem Resolves #5899 For debugging purposes, when you `println` a quoted value, some token values aren't expanded, making it a bit harder to understand what's going on. ## Summary Now interned expressions are shown in `Quoted` values. This program: ```rust fn main() { comptime { let n = quote { [1, 2, 3] }.as_expr().unwrap(); let q = quote { $n }; println(q); } } ``` Used to print: ``` quote { (expr) } ``` Now it prints: ``` quote { [1, 2, 3] } ``` ## Additional Context None. ## Documentation Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information