rust/compiler/rustc_borrowck/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
..
constraints Make the lifetime accurate which is used in the region constraints part 2022-04-22 20:05:39 +08:00
diagnostics Auto merge of #96094 - Elliot-Roberts:fix_doctests, r=compiler-errors 2022-05-07 06:30:29 +00:00
region_infer fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
type_check fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
borrow_set.rs Remove mutable_borrow_reservation_conflict lint 2022-04-20 22:10:46 -04:00
borrowck_errors.rs
constraint_generation.rs
consumers.rs
dataflow.rs Add new Deinit statement kind 2022-04-11 08:55:03 -04:00
def_use.rs Add new MutatatingUseContexts for deinit and SetDiscriminant 2022-04-11 09:26:26 -04:00
facts.rs
invalidation.rs Add new Deinit statement kind 2022-04-11 08:55:03 -04:00
lib.rs Auto merge of #96268 - jackh726:remove-mutable_borrow_reservation_conflict-lint, r=nikomatsakis 2022-05-06 12:32:44 +00:00
location.rs
member_constraints.rs fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
nll.rs Report opaque type mismatches directly during borrowck of the function instead of within the type_of query. 2022-04-07 13:39:52 +00:00
path_utils.rs
place_ext.rs
places_conflict.rs
prefixes.rs
renumber.rs
universal_regions.rs fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
used_muts.rs