about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2025-07-02 15:56:59 +0200
committerFolkert de Vries <folkert@folkertdev.nl>2025-07-03 10:22:40 +0200
commit8512e397695fc6a64862ff37c0940ef9c936b24d (patch)
treec5da3a6961977eb4027b1e071676211ca9c35255 /src
parentf46ce66fcc3d6058f90ac5bf0930f940f1e7b0ca (diff)
minicore: use core's `diagnostic::on_unimplemented` messages
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc-dev-guide/src/tests/minicore.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/tests/minicore.md b/src/doc/rustc-dev-guide/src/tests/minicore.md
index def9aaf8733..23b77279011 100644
--- a/src/doc/rustc-dev-guide/src/tests/minicore.md
+++ b/src/doc/rustc-dev-guide/src/tests/minicore.md
@@ -39,6 +39,12 @@ If you find a `core` item to be missing from the [`minicore`] stub, consider
 adding it to the test auxiliary if it's likely to be used or is already needed
 by more than one test.
 
+## Staying in sync with `core`
+
+The `minicore` items must be kept up to date with `core`. For consistent
+diagnostic output between using `core` and `minicore`, any `diagnostic`
+attributes (e.g. `on_unimplemented`) should be replicated exactly in `minicore`.
+
 ## Example codegen test that uses `minicore`
 
 ```rust,no_run