about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-08-31 14:29:51 +0200
committerGitHub <noreply@github.com>2022-08-31 14:29:51 +0200
commitd60e93035f155e02d1b12b5bab13ebfb4d908891 (patch)
treebaa1ce023c3f6aaa65ddce30c577ca1c597dde56 /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff
parent5e494b424380fdf8d38c3887e1ba7343123ad30e (diff)
parent8c93170965d026962b59052ee579dd436883d195 (diff)
downloadrust-d60e93035f155e02d1b12b5bab13ebfb4d908891.tar.gz
rust-d60e93035f155e02d1b12b5bab13ebfb4d908891.zip
Rollup merge of #100730 - CleanCut:diagnostics-rustc_monomorphize, r=davidtwco
Migrate rustc_monomorphize to use SessionDiagnostic

### Description

- Migrates diagnostics in `rustc_monomorphize` to use `SessionDiagnostic`
- Adds an `impl IntoDiagnosticArg for PathBuf`

### TODO / Help!
- [x] I'm having trouble figuring out how to apply an optional note. 😕  Help!?
  - Resolved. It was bad docs. Fixed in https://github.com/rust-lang/rustc-dev-guide/pull/1437/files
- [x] `errors:RecursionLimit` should be `#[fatal ...]`, but that doesn't exist so it's `#[error ...]` at the moment.
  - Maybe I can switch after this is merged in? --> https://github.com/rust-lang/rust/pull/100694
  - Or maybe I need to manually implement `SessionDiagnostic` instead of deriving it?
- [x] How does one go about converting an error inside of [a call to struct_span_lint_hir](https://github.com/rust-lang/rust/blob/8064a495086c2e63c0ef77e8e82fe3b9b5dc535f/compiler/rustc_monomorphize/src/collector.rs#L917-L927)?
- [x] ~What placeholder do you use in the fluent template to refer to the value in a vector? It seems like [this code](https://github.com/rust-lang/rust/blob/0b79f758c9aa6646606662a6d623a0752286cd17/compiler/rustc_macros/src/diagnostics/diagnostic_builder.rs#L83-L114) ought to have the answer (or something near it)...but I can't figure it out.~ You can't. Punted.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions