diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-06-17 14:26:27 +1000 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-06-22 07:36:57 +1000 | 
| commit | 88388f45d625efb58faddde5766c224d3b9bcf4f (patch) | |
| tree | 03ef42a9b50ec24c1a74ace9890a0687971db88c /compiler/rustc_resolve/src | |
| parent | 9a597743efefc0f912990931cde402047e7861dd (diff) | |
| download | rust-88388f45d625efb58faddde5766c224d3b9bcf4f.tar.gz rust-88388f45d625efb58faddde5766c224d3b9bcf4f.zip | |
Use `FromClean` more.
The `FromClean` trait is used a lot for converting to rustdoc-json format. But it's not used universally; there are still some ad hoc functions and methods for converting. This commit fixes this inconsistency by using `FromClean` more. The commit also introduces `FromClean` for `Box` and `Option`. This lets a lot of `as_ref` and `map` calls be removed in favour of simple `into_json` calls.
Diffstat (limited to 'compiler/rustc_resolve/src')
0 files changed, 0 insertions, 0 deletions
