rust/compiler/rustc_builtin_macros/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
..
deriving fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
format_foreign
asm.rs Make rustc_parse_format compile on stable 2022-05-03 11:26:58 +02:00
assert.rs
cfg_accessible.rs
cfg_eval.rs Spellchecking some comments 2022-03-30 01:39:38 -04:00
cfg.rs
cmdline_attrs.rs
compile_error.rs check_doc_keyword: don't alloc string for emptiness check 2022-04-08 11:45:57 +03:00
concat_bytes.rs
concat_idents.rs
concat.rs
derive.rs Save colon span to suggest bounds. 2022-04-30 13:55:17 +02:00
edition_panic.rs Spellchecking some comments 2022-03-30 01:39:38 -04:00
env.rs check_doc_keyword: don't alloc string for emptiness check 2022-04-08 11:45:57 +03:00
format_foreign.rs
format.rs Make rustc_parse_format compile on stable 2022-05-03 11:26:58 +02:00
global_allocator.rs
lib.rs Stabilize bool::then_some 2022-05-04 13:22:08 +02:00
log_syntax.rs
proc_macro_harness.rs
source_util.rs Add support for a new attribute #[debugger_visualizer] to support embedding debugger visualizers into a generated PDB. 2022-05-03 10:53:54 -07:00
standard_library_imports.rs Create 2024 edition 2022-04-02 02:45:49 -04:00
test_harness.rs fix most compiler/ doctests 2022-05-02 17:40:30 -07:00
test.rs Downgrade #[test] on macro call to warning 2022-03-04 20:34:10 +00:00
trace_macros.rs
util.rs