rust/compiler/rustc_resolve/src
bors 574830f573 Auto merge of #96094 - Elliot-Roberts:fix_doctests, r=compiler-errors
Begin fixing all the broken doctests in `compiler/`

Begins to fix #95994.
All of them pass now but 24 of them I've marked with `ignore HELP (<explanation>)` (asking for help) as I'm unsure how to get them to work / if we should leave them as they are.
There are also a few that I marked `ignore` that could maybe be made to work but seem less important.
Each `ignore` has a rough "reason" for ignoring after it parentheses, with

- `(pseudo-rust)` meaning "mostly rust-like but contains foreign syntax"
- `(illustrative)` a somewhat catchall for either a fragment of rust that doesn't stand on its own (like a lone type), or abbreviated rust with ellipses and undeclared types that would get too cluttered if made compile-worthy.
- `(not-rust)` stuff that isn't rust but benefits from the syntax highlighting, like MIR.
- `(internal)` uses `rustc_*` code which would be difficult to make work with the testing setup.

Those reason notes are a bit inconsistently applied and messy though. If that's important I can go through them again and try a more principled approach. When I run `rg '```ignore \(' .` on the repo, there look to be lots of different conventions other people have used for this sort of thing. I could try unifying them all if that would be helpful.

I'm not sure if there was a better existing way to do this but I wrote my own script to help me run all the doctests and wade through the output. If that would be useful to anyone else, I put it here: https://github.com/Elliot-Roberts/rust_doctest_fixing_tool
2022-05-07 06:30:29 +00:00
..
late Auto merge of #96094 - Elliot-Roberts:fix_doctests, r=compiler-errors 2022-05-07 06:30:29 +00:00
access_levels.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
build_reduced_graph.rs Auto merge of #96431 - petrochenkov:parent, r=cjgillot 2022-05-02 14:03:20 +00:00
check_unused.rs span: move MultiSpan 2022-04-05 07:01:00 +01:00
def_collector.rs Visit generics inside visit_fn. 2022-04-17 11:03:33 +02:00
diagnostics.rs Auto merge of #96094 - Elliot-Roberts:fix_doctests, r=compiler-errors 2022-05-07 06:30:29 +00:00
ident.rs Use a yes/no enum instead of a bool. 2022-05-02 15:39:13 +00:00
imports.rs rustc: Panic by default in DefIdTree::parent 2022-05-02 01:56:50 +03:00
late.rs Rollup merge of #96557 - nbdd0121:const, r=oli-obk 2022-05-06 20:05:37 +02:00
lib.rs Stabilize bool::then_some 2022-05-04 13:22:08 +02:00
macros.rs resolve: Merge last_import_segment into Finalize 2022-05-01 18:02:35 +03:00