rust/tests
bors 8c32e313cc Auto merge of #142487 - estebank:serde-attr-5, r=petrochenkov
Detect missing `derive` on unresolved attribute even when not imported

When encountering unresolved attributes, ensure the proc-macros for every crate in scope are added to the `macro_map` so that typos and missing `derive`s are properly detected.

```
error: cannot find attribute `sede` in this scope
  --> $DIR/missing-derive-3.rs:20:7
   |
LL |     #[sede(untagged)]
   |       ^^^^
   |
help: the derive macros `Deserialize` and `Serialize` accept the similarly named `serde` attribute
   |
LL |     #[serde(untagged)]
   |         +

error: cannot find attribute `serde` in this scope
  --> $DIR/missing-derive-3.rs:14:7
   |
LL |     #[serde(untagged)]
   |       ^^^^^
   |
note: `serde` is imported here, but it is a crate, not an attribute
  --> $DIR/missing-derive-3.rs:4:1
   |
LL | extern crate serde;
   | ^^^^^^^^^^^^^^^^^^^
help: `serde` is an attribute that can be used by the derive macros `Deserialize` and `Serialize`, you might be missing a `derive` attribute
   |
LL + #[derive(Deserialize, Serialize)]
LL | enum B {
   |
```

Follow up to rust-lang/rust#134841. Fix rust-lang/rust#47608.
2025-08-19 11:36:53 +00:00
..
assembly-llvm Rollup merge of #145309 - winstonallo:issue-145271-fix, r=tgross35 2025-08-18 15:31:11 +10:00
auxiliary Set NumRegisterParameters LLVM module flag to N when -Zregparm=N is 2025-08-13 17:37:30 +02:00
codegen-llvm Rollup merge of #144567 - CaiWeiran:transmute-scalar_test, r=nikic 2025-08-19 14:18:19 +10:00
codegen-units Auto merge of #142893 - Mark-Simulacrum:no-const-collect, r=oli-obk 2025-06-27 12:57:05 +00:00
coverage coverage: Remove all unstable support for MC/DC instrumentation 2025-08-06 22:38:52 +10:00
coverage-run-rustdoc
crashes fix: Reject async assoc fns of const traits/impls in ast_passes 2025-08-15 16:31:10 +09:00
debuginfo Revert "Embed GDB pretty printers in rlibs and dylibs" 2025-08-06 18:00:58 +00:00
incremental Bless incremental tests. 2025-07-13 13:50:01 +00:00
mir-opt Remove the no_sanitize attribute in favor of sanitize 2025-08-18 08:45:28 +00:00
pretty Update autodiff tests for the new intrinsics impl 2025-08-14 18:33:43 +00:00
run-make Rollup merge of #145405 - durin42:test-cleanup-tmpdir, r=lqd 2025-08-19 14:18:24 +10:00
rustdoc rustdoc-search: search backend with partitioned suffix tree 2025-08-15 10:26:03 -07:00
rustdoc-gui rustdoc-search: search backend with partitioned suffix tree 2025-08-15 10:26:03 -07:00
rustdoc-js rustdoc-search: search backend with partitioned suffix tree 2025-08-15 10:26:03 -07:00
rustdoc-js-std rustdoc-search: search backend with partitioned suffix tree 2025-08-15 10:26:03 -07:00
rustdoc-json rustdoc-json: Move #[macro_export] from Other to it's own variant 2025-07-30 19:57:32 +00:00
rustdoc-ui Update uitests 2025-08-14 18:18:42 +02:00
ui Auto merge of #142487 - estebank:serde-attr-5, r=petrochenkov 2025-08-19 11:36:53 +00:00
ui-fulldeps Detect missing derive on unresolved attribute even when not imported 2025-08-15 15:56:45 +00:00
COMPILER_TESTS.md