about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-06-17 14:26:27 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-06-22 07:36:57 +1000
commit88388f45d625efb58faddde5766c224d3b9bcf4f (patch)
tree03ef42a9b50ec24c1a74ace9890a0687971db88c /compiler/rustc_resolve/src
parent9a597743efefc0f912990931cde402047e7861dd (diff)
downloadrust-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