rust/src/test
Guillaume Gomez 4d830b7775
Rollup merge of #101434 - JhonnyBillM:replace-session-for-handler-in-into-diagnostic, r=davidtwco
Update `SessionDiagnostic::into_diagnostic` to take `Handler` instead of `ParseSess`

Suggested by the team in [this Zulip Topic](https://rust-lang.zulipchat.com/#narrow/stream/336883-i18n/topic/.23100717.20SessionDiagnostic.20on.20Handler).

`Handler` already has almost all the capabilities of `ParseSess` when it comes to diagnostic emission, in this migration we only needed to add the ability to access `source_map` from the emitter in order to get a `Snippet` and the `start_point`. Not sure if adding these two methods [`span_to_snippet_from_emitter` and  `span_start_point_from_emitter`] is the best way to address this gap.

P.S. If this goes in the right direction, then we probably may want to move `SessionDiagnostic` to `rustc_errors` and rename it to `DiagnosticHandler` or something similar.

r? `@davidtwco`
r? `@compiler-errors`
2022-09-06 17:00:26 +02:00
..
assembly Rollup merge of #100556 - Alex-Velez:patch-1, r=scottmcm 2022-08-21 16:54:01 +02:00
auxiliary
codegen Auto merge of #100707 - dzvon:fix-typo, r=davidtwco 2022-09-01 05:39:58 +00:00
codegen-units Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
debuginfo Rollup merge of #98301 - ortem:pretty-printers-nonzero, r=wesleywiser 2022-08-28 09:35:12 +02:00
incremental Auto merge of #100966 - compiler-errors:revert-remove-deferred-sized-checks, r=pnkfelix 2022-09-03 00:02:41 +00:00
mir-opt Simplify MIR opt tests 2022-09-01 23:01:53 -07:00
pretty Add pp-exact test involving where T: 2022-06-16 17:03:47 -07:00
run-make Fix a bunch of typo 2022-08-31 18:24:55 +08:00
run-make-fulldeps Fix a bunch of typo 2022-08-31 18:24:55 +08:00
run-pass-valgrind Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
rustdoc Rollup merge of #101279 - GuillaumeGomez:doc_auto_cfg_nested_impl, r=notriddle 2022-09-01 21:37:20 +02:00
rustdoc-gui Remove duplicated test (superseeded by search-form-elements.goml) 2022-09-04 15:16:55 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json Rustdoc-Json: Add enum discriminant 2022-09-03 22:15:26 +01:00
rustdoc-ui Fix a bunch of typo 2022-08-31 18:24:55 +08:00
ui Rollup merge of #101357 - compiler-errors:variant-sugg-tweak, r=oli-obk 2022-09-06 17:00:25 +02:00
ui-fulldeps FIX - broken translatable diagnostics tests 2022-09-05 12:59:56 -04:00
COMPILER_TESTS.md