diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-29 16:15:44 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-29 17:50:26 +1100 |
| commit | 58f45059a5e39135ac5e26a662821dc13c0e4e56 (patch) | |
| tree | 11d8c2434c1133c0962cabc8128999ea759495e1 /compiler/rustc_errors/src/json.rs | |
| parent | 9ff4487999ccd02065ec56fdc8cee665feae9680 (diff) | |
| download | rust-58f45059a5e39135ac5e26a662821dc13c0e4e56.tar.gz rust-58f45059a5e39135ac5e26a662821dc13c0e4e56.zip | |
Add a useful comment.
It took me a while to work this out.
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
| -rw-r--r-- | compiler/rustc_errors/src/json.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/json.rs b/compiler/rustc_errors/src/json.rs index 3166768e9e2..77e4f9a0767 100644 --- a/compiler/rustc_errors/src/json.rs +++ b/compiler/rustc_errors/src/json.rs @@ -279,6 +279,7 @@ struct UnusedExterns<'a> { } impl Diagnostic { + /// Converts from `rustc_errors::DiagInner` to `Diagnostic`. fn from_errors_diagnostic(diag: crate::DiagInner, je: &JsonEmitter) -> Diagnostic { let args = to_fluent_args(diag.args.iter()); let sugg = diag.suggestions.iter().flatten().map(|sugg| { |
