Skip to content

Conversation

@bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Jan 9, 2026

Workaround a feature used by fluent_messages! that isn't supported by rust-analyzer. And significantly reduce cascading errors when the translation file fails to parse.

@rustbot
Copy link
Collaborator

rustbot commented Jan 9, 2026

Some changes occurred to the CTFE machinery

cc @RalfJung, @oli-obk, @lcnr

Some changes occurred in exhaustiveness checking

cc @Nadrieril

Some changes occurred in compiler/rustc_codegen_gcc

cc @antoyo, @GuillaumeGomez

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 9, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 9, 2026

r? @mati865

rustbot has assigned @mati865.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

finish(constants, quote! { include_str!(#relative_ftl_path) })
finish(
constants,
quote! { include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", #relative_ftl_path)) },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine with respect to reproducibility, right?

@bjorn3 bjorn3 added A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic and removed A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-attributes Area: Attributes (`#[…]`, `#![…]`) A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) labels Jan 9, 2026
@rust-log-analyzer

This comment has been minimized.

@bjorn3 bjorn3 force-pushed the fluent_no_span_file branch from feeb3da to 2975c7e Compare January 9, 2026 13:00
@rustbot
Copy link
Collaborator

rustbot commented Jan 9, 2026

compiletest directives have been modified. Please add or update docs for the
new or modified directive in src/doc/rustc-dev-guide/.

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-testsuite Area: The testsuite used to check the correctness of rustc T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Jan 9, 2026
bjorn3 added 2 commits January 9, 2026 13:06
Rust-analyzer doesn't implement this yet, causing it to show an error
for pretty much every lib.rs file you have open due to the fluent macro
panicking.
This avoids cascading errors as much as possible.
@bjorn3 bjorn3 force-pushed the fluent_no_span_file branch from 2975c7e to 90c42f0 Compare January 9, 2026 13:06
@rust-log-analyzer
Copy link
Collaborator

The job aarch64-gnu-llvm-20-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
- LL |     rustc_fluent_macro::fluent_messages! { "./missing-crate-name.ftl" }
-    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
-    |
-    = help: replace any '-'s with '_'s
+ LL |     rustc_fluent_macro::fluent_messages! { "./valid.ftl" }
+    |                                            ^^^^^^^^^^^^^
57 
- error: name `with-hyphens` does not start with the crate name
+ error: could not open Fluent resource: os-specific message
59   --> $DIR/test.rs:60:44
---
+ error[E0432]: unresolved import `super::fluent_generated::no_crate_key`
+   --> $DIR/test.rs:55:21
111    |
-    = help: see additional errors emitted
+ LL |         use super::{fluent_generated::no_crate_key, DEFAULT_LOCALE_RESOURCE};
+    |                     ^^^^^^^^^^^^^^^^^^------------
+    |                     |                 |
+    |                     |                 help: a similar name exists in the module: `no_crate`
+    |                     no `no_crate_key` in `valid::fluent_generated`
113 
---
-   |
+ error[E0432]: unresolved imports `super::fluent_generated::no_crate_foo`, `super::fluent_generated::with_hyphens`
+   --> $DIR/test.rs:67:32
+    |
+ LL |             fluent_generated::{no_crate_foo, with_hyphens},
+    |                                ^^^^^^^^^^^^  ^^^^^^^^^^^^ no `with_hyphens` in `missing_crate_name::fluent_generated`
+    |                                |
+    |                                no `no_crate_foo` in `missing_crate_name::fluent_generated`
+    |                                help: a similar name exists in the module: `no_crate`
120 
- error: aborting due to 14 previous errors
---
+ error: could not open Fluent resource: os-specific message
+ error: could not open Fluent resource: os-specific message
+ error: could not open Fluent resource: os-specific message
+   --> $DIR/test.rs:52:44
+ LL |     rustc_fluent_macro::fluent_messages! { "./valid.ftl" }
+    |                                            ^^^^^^^^^^^^^
+ error: could not open Fluent resource: os-specific message
+ error: could not open Fluent resource: os-specific message
+ error: could not open Fluent resource: os-specific message
+ error: could not open Fluent resource: os-specific message
+ 
+ error[E0432]: unresolved import `super::fluent_generated::no_crate_key`
+   --> $DIR/test.rs:55:21
+ LL |         use super::{fluent_generated::no_crate_key, DEFAULT_LOCALE_RESOURCE};
+    |                     ^^^^^^^^^^^^^^^^^^------------
+    |                     |                 |
+    |                     |                 help: a similar name exists in the module: `no_crate`
+    |                     no `no_crate_key` in `valid::fluent_generated`
+ error[E0432]: unresolved imports `super::fluent_generated::no_crate_foo`, `super::fluent_generated::with_hyphens`
+   --> $DIR/test.rs:67:32
+    |
+ LL |             fluent_generated::{no_crate_foo, with_hyphens},
+    |                                ^^^^^^^^^^^^  ^^^^^^^^^^^^ no `with_hyphens` in `missing_crate_name::fluent_generated`
+    |                                |
+    |                                no `no_crate_foo` in `missing_crate_name::fluent_generated`
+    |                                help: a similar name exists in the module: `no_crate`
+ error: aborting due to 13 previous errors
+ For more information about this error, try `rustc --explain E0432`.
---
To only update this specific test, also pass `--test-args fluent-messages/test.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR CARGO_MANIFEST_DIR="/checkout/obj/tests/ui-fulldeps/fluent-messages" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui-fulldeps/fluent-messages/test.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui-fulldeps/fluent-messages/test" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error: could not open Fluent resource: No such file or directory (os error 2)
##[error]  --> /checkout/tests/ui-fulldeps/fluent-messages/test.rs:22:44
   |
---

error: could not open Fluent resource: No such file or directory (os error 2)
##[error]  --> /checkout/tests/ui-fulldeps/fluent-messages/test.rs:52:44
   |
LL |     rustc_fluent_macro::fluent_messages! { "./valid.ftl" }
   |                                            ^^^^^^^^^^^^^

error: could not open Fluent resource: No such file or directory (os error 2)
##[error]  --> /checkout/tests/ui-fulldeps/fluent-messages/test.rs:60:44
   |
---

error[E0432]: unresolved imports `super::fluent_generated::no_crate_foo`, `super::fluent_generated::with_hyphens`
##[error]  --> /checkout/tests/ui-fulldeps/fluent-messages/test.rs:67:32
   |
LL |             fluent_generated::{no_crate_foo, with_hyphens},
   |                                ^^^^^^^^^^^^  ^^^^^^^^^^^^ no `with_hyphens` in `missing_crate_name::fluent_generated`
   |                                |
   |                                no `no_crate_foo` in `missing_crate_name::fluent_generated`
   |                                help: a similar name exists in the module: `no_crate`

error: aborting due to 13 previous errors
---
-   --> $DIR/diagnostics.rs:43:31
+ error: proc macro panicked
+   --> $DIR/diagnostics.rs:23:1
3    |
- LL |         Diag::new(dcx, level, "untranslatable diagnostic")
-    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ LL | rustc_fluent_macro::fluent_messages! { "./diagnostics.ftl" }
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
- note: the lint level is defined here
-   --> $DIR/diagnostics.rs:7:9
+    = help: message: called `Result::unwrap()` on an `Err` value: NotPresent
---
+   --> $DIR/diagnostics.rs:52:38
21    |
- LL |         diag.note("untranslatable diagnostic");
-    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ LL |         Diag::new(dcx, level, crate::fluent_generated::no_crate_example)
+    |                                      ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
+    |
+ help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
+    |
+ LL + extern crate fluent_generated;
+    |
24 
- error: diagnostics should only be created in `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls
-   --> $DIR/diagnostics.rs:97:21
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
+   --> $DIR/diagnostics.rs:75:26
27    |
+ LL |         diag.note(crate::fluent_generated::no_crate_note);
---
-    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ LL + extern crate fluent_generated;
+    |
36 
- error: diagnostics should only be created in `Diagnostic`/`Subdiagnostic`/`LintDiagnostic` impls
-   --> $DIR/diagnostics.rs:100:21
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
+   --> $DIR/diagnostics.rs:117:14
39    |
- LL |     let _diag = dcx.struct_err("untranslatable diagnostic");
---
-   --> $DIR/diagnostics.rs:120:50
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
+   --> $DIR/diagnostics.rs:120:14
57    |
58 LL |     f(crate::fluent_generated::no_crate_example, "untranslatable diagnostic");
-    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- 
- error: diagnostics should be created using translatable messages
-   --> $DIR/diagnostics.rs:122:7
+    |              ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
---
-   --> /checkout/tests/ui-fulldeps/internal-lints/diagnostics.rs:118:43
-   --> /checkout/tests/ui-fulldeps/internal-lints/diagnostics.rs:120:14
+ error: proc macro panicked
+   --> $DIR/diagnostics.rs:23:1
+ LL | rustc_fluent_macro::fluent_messages! { "./diagnostics.ftl" }
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    = help: message: called `Result::unwrap()` on an `Err` value: NotPresent
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
+   --> $DIR/diagnostics.rs:25:10
---
+ LL + extern crate fluent_generated;
+    |
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
+   --> $DIR/diagnostics.rs:52:38
+ LL |         Diag::new(dcx, level, crate::fluent_generated::no_crate_example)
+    |                                      ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
+    |
+ help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
+    |
+ LL + extern crate fluent_generated;
+    |
---
To only update this specific test, also pass `--test-args internal-lints/diagnostics.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui-fulldeps/internal-lints/diagnostics.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui-fulldeps/internal-lints/diagnostics" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Z" "unstable-options"
stdout: none
--- stderr -------------------------------
error: proc macro panicked
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/diagnostics.rs:23:1
   |
LL | rustc_fluent_macro::fluent_messages! { "./diagnostics.ftl" }
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: called `Result::unwrap()` on an `Err` value: NotPresent

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/diagnostics.rs:52:38
   |
LL |         Diag::new(dcx, level, crate::fluent_generated::no_crate_example)
   |                                      ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |
---

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/internal-lints/diagnostics.rs:120:14
   |
LL |     f(crate::fluent_generated::no_crate_example, "untranslatable diagnostic");
   |              ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |
---

+ error: proc macro panicked
+   --> $DIR/diagnostic-derive-doc-comment-field.rs:26:1
+    |
+ LL | rustc_fluent_macro::fluent_messages! { "./example.ftl" }
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    |
+    = help: message: called `Result::unwrap()` on an `Err` value: NotPresent
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
-   --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive-doc-comment-field.rs:40:10
+ error: proc macro panicked
+   --> $DIR/diagnostic-derive-doc-comment-field.rs:26:1
+    |
+ LL | rustc_fluent_macro::fluent_messages! { "./example.ftl" }
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    |
+    = help: message: called `Result::unwrap()` on an `Err` value: NotPresent
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
To only update this specific test, also pass `--test-args session-diagnostic/diagnostic-derive-doc-comment-field.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive-doc-comment-field.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui-fulldeps/session-diagnostic/diagnostic-derive-doc-comment-field" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error: proc macro panicked
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive-doc-comment-field.rs:26:1
   |
LL | rustc_fluent_macro::fluent_messages! { "./example.ftl" }
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: called `Result::unwrap()` on an `Err` value: NotPresent

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
             Box<(dyn std::error::Error + 'static)>
             CString
             Cow<'a, str>
           and 53 others
note: required by a bound in `Diag::<'a, G>::arg`
  --> /rustc/FAKE_PREFIX/compiler/rustc_errors/src/diagnostic.rs:526:8
  ::: /rustc/FAKE_PREFIX/compiler/rustc_errors/src/diagnostic.rs:1303:7
   |
   = note: in this macro invocation
   = note: this error originates in the macro `with_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
---
             Box<(dyn std::error::Error + 'static)>
             CString
             Cow<'a, str>
           and 53 others
note: required by a bound in `Diag::<'a, G>::arg`
  --> /rustc/FAKE_PREFIX/compiler/rustc_errors/src/diagnostic.rs:526:8
  ::: /rustc/FAKE_PREFIX/compiler/rustc_errors/src/diagnostic.rs:1303:7
   |
   = note: in this macro invocation
   = note: this error originates in the macro `with_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
---
---- [ui] tests/ui-fulldeps/session-diagnostic/invalid-variable.rs stdout ----

error: test compilation failed although it shouldn't!
status: exit status: 1
command: env -u RUSTC_LOG_COLOR CARGO_MANIFEST_DIR="/checkout/obj/tests/ui-fulldeps/session-diagnostic" RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui-fulldeps/session-diagnostic/invalid-variable/a" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "--test"
stdout: none
--- stderr -------------------------------
error: could not open Fluent resource: No such file or directory (os error 2)
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs:17:40
   |
LL | rustc_fluent_macro::fluent_messages! { "./example.ftl" }
   |                                        ^^^^^^^^^^^^^^^

error[E0425]: cannot find value `no_crate_bad_reference` in module `crate::fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/invalid-variable.rs:20:8
   |
---

+ error: proc macro panicked
+   --> $DIR/subdiagnostic-derive.rs:24:1
+    |
+ LL | rustc_fluent_macro::fluent_messages! { "./example.ftl" }
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    |
+    = help: message: called `Result::unwrap()` on an `Err` value: NotPresent
+ 
1 error: derive(Diagnostic): label without `#[primary_span]` field
2   --> $DIR/subdiagnostic-derive.rs:51:1
3    |

553 LL |     #[bar("...")]
554    |       ^^^
555 
- error[E0425]: cannot find value `slug` in module `crate::fluent_generated`
-   --> $DIR/subdiagnostic-derive.rs:126:9
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
+   --> $DIR/subdiagnostic-derive.rs:26:10
558    |
- LL | #[label(slug)]
-    |         ^^^^ not found in `crate::fluent_generated`
+ LL | #[derive(Subdiagnostic)]
+    |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
+    |
+    = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
---
+    |
+ LL | #[derive(Subdiagnostic)]
+    |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
+    |
+    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
+    = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
+ help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
+    |
+ LL + extern crate fluent_generated;
+    |
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
+    |
+ LL | #[derive(Subdiagnostic)]
+    |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
+    |
+    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
+    = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
+ help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
+    |
+ LL + extern crate fluent_generated;
+    |
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
+    |
+ LL | #[derive(Subdiagnostic)]
+    |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
+    |
+    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
+    = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
+ help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
+    |
+ LL + extern crate fluent_generated;
+    |
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
+    |
+ LL + extern crate fluent_generated;
+    |
+ 
562 error[E0425]: cannot find value `__code_29` in this scope
563   --> $DIR/subdiagnostic-derive.rs:714:10
564    |

567    |
568    = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
---
-   --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:821:10
+ error: proc macro panicked
+   --> $DIR/subdiagnostic-derive.rs:24:1
+    |
+ LL | rustc_fluent_macro::fluent_messages! { "./example.ftl" }
+    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    |
+    = help: message: called `Result::unwrap()` on an `Err` value: NotPresent
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
+    |
+ LL | #[derive(Subdiagnostic)]
+    |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
+    |
+    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
+    = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
+ help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
+    |
+ LL + extern crate fluent_generated;
+    |
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
+    |
+ LL | #[derive(Subdiagnostic)]
+    |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
+    |
+    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
+    = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
+ help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
+    |
+ LL + extern crate fluent_generated;
+    |
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
+    |
+ LL | #[derive(Subdiagnostic)]
+    |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
+    |
+    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
+    = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
+ help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
+    |
+ LL + extern crate fluent_generated;
+    |
+ 
+ error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
To only update this specific test, also pass `--test-args session-diagnostic/subdiagnostic-derive.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui-fulldeps/session-diagnostic/subdiagnostic-derive" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
error: proc macro panicked
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:24:1
   |
LL | rustc_fluent_macro::fluent_messages! { "./example.ftl" }
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: called `Result::unwrap()` on an `Err` value: NotPresent

error: derive(Diagnostic): label without `#[primary_span]` field
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:51:1
   |
LL | #[label(no_crate_example)]
   | ^

error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:58:1
   |
LL | #[label]
   | ^

error: derive(Diagnostic): `#[foo]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:67:1
   |
LL | #[foo]
   | ^

error: derive(Diagnostic): `#[label = ...]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:77:1
   |
LL | #[label = "..."]
   | ^

error: derive(Diagnostic): only `no_span` is a valid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:86:9
   |
LL | #[label(bug = "...")]
   |         ^^^

error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:86:1
   |
LL | #[label(bug = "...")]
   | ^

error: derive(Diagnostic): only `no_span` is a valid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:106:9
   |
LL | #[label(slug = 4)]
   |         ^^^^

error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:106:1
   |
LL | #[label(slug = 4)]
   | ^

error: derive(Diagnostic): only `no_span` is a valid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:116:9
   |
LL | #[label(slug("..."))]
   |         ^^^^

error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:116:1
   |
LL | #[label(slug("..."))]
   | ^

error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:136:1
   |
LL | #[label()]
   | ^

error: derive(Diagnostic): only `no_span` is a valid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:145:27
   |
LL | #[label(no_crate_example, code = "...")]
   |                           ^^^^

error: derive(Diagnostic): only `no_span` is a valid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:154:27
   |
LL | #[label(no_crate_example, applicability = "machine-applicable")]
   |                           ^^^^^^^^^^^^^

error: derive(Diagnostic): unsupported type attribute for subdiagnostic enum
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:163:1
   |
LL | #[foo]
   | ^

error: derive(Diagnostic): `#[bar]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:177:5
   |
LL |     #[bar]
   |     ^

error: derive(Diagnostic): `#[bar = ...]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:189:5
   |
LL |     #[bar = "..."]
   |     ^

error: derive(Diagnostic): `#[bar = ...]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:201:5
   |
LL |     #[bar = 4]
   |     ^

error: derive(Diagnostic): `#[bar(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:213:5
   |
LL |     #[bar("...")]
   |     ^

error: derive(Diagnostic): only `no_span` is a valid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:225:13
   |
LL |     #[label(code = "...")]
   |             ^^^^

error: derive(Diagnostic): diagnostic slug must be first argument of a `#[label(...)]` attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:225:5
   |
LL |     #[label(code = "...")]
   |     ^

error: derive(Diagnostic): the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:254:5
   |
LL |     #[primary_span]
   |     ^

error: derive(Diagnostic): label without `#[primary_span]` field
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:251:1
   |
LL | #[label(no_crate_example)]
   | ^

error: derive(Diagnostic): `#[applicability]` is only valid on suggestions
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:264:5
   |
LL |     #[applicability]
   |     ^

error: derive(Diagnostic): `#[bar]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:274:5
   |
LL |     #[bar]
   |     ^
   |
   = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes

error: derive(Diagnostic): `#[bar = ...]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:285:5
   |
LL |     #[bar = "..."]
   |     ^

error: derive(Diagnostic): `#[bar(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:296:5
   |
LL |     #[bar("...")]
   |     ^
   |
   = help: only `primary_span`, `applicability` and `skip_arg` are valid field attributes

error: derive(Diagnostic): a diagnostic slug must be the first argument to the attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:328:44
   |
LL | #[label(no_crate_example, no_crate::example)]
   |                                            ^

error: derive(Diagnostic): attribute specified multiple times
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:341:5
   |
LL |     #[primary_span]
   |     ^
   |
note: previously specified here
  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:338:5
   |
LL |     #[primary_span]
   |     ^

error: derive(Diagnostic): subdiagnostic kind not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:347:8
   |
LL | struct AG {
   |        ^^

error: derive(Diagnostic): attribute specified multiple times
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:384:46
   |
LL | #[suggestion(no_crate_example, code = "...", code = "...")]
   |                                              ^^^^
   |
note: previously specified here
  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:384:32
   |
LL | #[suggestion(no_crate_example, code = "...", code = "...")]
   |                                ^^^^

error: derive(Diagnostic): attribute specified multiple times
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:402:5
   |
---
   |
LL |     #[applicability]
   |     ^

error: derive(Diagnostic): the `#[applicability]` attribute can only be applied to fields of type `Applicability`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:412:5
   |
LL |     #[applicability]
   |     ^

error: derive(Diagnostic): suggestion without `code = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:425:1
   |
LL | #[suggestion(no_crate_example)]
   | ^

error: derive(Diagnostic): invalid applicability
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:435:62
   |
LL | #[suggestion(no_crate_example, code = "...", applicability = "foo")]
   |                                                              ^^^^^

error: derive(Diagnostic): suggestion without `#[primary_span]` field
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:453:1
   |
LL | #[suggestion(no_crate_example, code = "...")]
   | ^

error: derive(Diagnostic): unsupported type attribute for subdiagnostic enum
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:467:1
   |
LL | #[label]
   | ^

error: derive(Diagnostic): `var` doesn't refer to a field on this type
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:487:39
   |
LL | #[suggestion(no_crate_example, code = "{var}", applicability = "machine-applicable")]
   |                                       ^^^^^^^

error: derive(Diagnostic): `var` doesn't refer to a field on this type
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:506:43
   |
LL |     #[suggestion(no_crate_example, code = "{var}", applicability = "machine-applicable")]
   |                                           ^^^^^^^

error: derive(Diagnostic): `#[suggestion_part]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:529:5
   |
LL |     #[suggestion_part]
   |     ^
   |
   = help: `#[suggestion_part(...)]` is only valid in multipart suggestions, use `#[primary_span]` instead

error: derive(Diagnostic): `#[suggestion_part(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:532:5
   |
LL |     #[suggestion_part(code = "...")]
   |     ^
   |
   = help: `#[suggestion_part(...)]` is only valid in multipart suggestions

error: derive(Diagnostic): suggestion without `#[primary_span]` field
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:526:1
   |
LL | #[suggestion(no_crate_example, code = "...")]
   | ^

error: derive(Diagnostic): invalid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:541:42
   |
LL | #[multipart_suggestion(no_crate_example, code = "...", applicability = "machine-applicable")]
   |                                          ^^^^
   |
   = help: only `no_span`, `style` and `applicability` are valid nested attributes

error: derive(Diagnostic): multipart suggestion without any `#[suggestion_part(...)]` fields
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:541:1
   |
LL | #[multipart_suggestion(no_crate_example, code = "...", applicability = "machine-applicable")]
   | ^

error: derive(Diagnostic): `#[suggestion_part(...)]` attribute without `code = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:551:5
   |
LL |     #[suggestion_part]
   |     ^

error: derive(Diagnostic): `#[suggestion_part(...)]` attribute without `code = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:559:5
   |
LL |     #[suggestion_part()]
   |     ^

error: derive(Diagnostic): `#[primary_span]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:568:5
   |
LL |     #[primary_span]
   |     ^
   |
   = help: multipart suggestions use one or more `#[suggestion_part]`s rather than one `#[primary_span]`

error: derive(Diagnostic): multipart suggestion without any `#[suggestion_part(...)]` fields
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:565:1
   |
LL | #[multipart_suggestion(no_crate_example)]
   | ^

error: derive(Diagnostic): `#[suggestion_part(...)]` attribute without `code = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:576:5
   |
LL |     #[suggestion_part]
   |     ^

error: derive(Diagnostic): `#[suggestion_part(...)]` attribute without `code = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:579:5
   |
LL |     #[suggestion_part()]
   |     ^

error: derive(Diagnostic): `code` is the only valid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:582:23
   |
LL |     #[suggestion_part(foo = "bar")]
   |                       ^^^

error: derive(Diagnostic): the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:587:5
   |
LL |     #[suggestion_part(code = "...")]
   |     ^

error: derive(Diagnostic): the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:590:5
   |
LL |     #[suggestion_part()]
   |     ^

error: derive(Diagnostic): attribute specified multiple times
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:598:37
   |
LL |     #[suggestion_part(code = "...", code = ",,,")]
   |                                     ^^^^
   |
note: previously specified here
  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:598:23
   |
LL |     #[suggestion_part(code = "...", code = ",,,")]
   |                       ^^^^

error: derive(Diagnostic): `#[applicability]` has no effect if all `#[suggestion]`/`#[multipart_suggestion]` attributes have a static `applicability = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:627:5
   |
LL |     #[applicability]
   |     ^

error: derive(Diagnostic): expected exactly one string literal for `code = ...`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:675:34
   |
LL |     #[suggestion_part(code("foo"))]
   |                                  ^

error: derive(Diagnostic): expected exactly one string literal for `code = ...`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:686:41
   |
LL |     #[suggestion_part(code("foo", "bar"))]
   |                                         ^

error: derive(Diagnostic): expected exactly one string literal for `code = ...`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:697:30
   |
---

error: derive(Diagnostic): attribute specified multiple times
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:763:1
   |
LL | #[suggestion(no_crate_example, code = "", style = "hidden", style = "normal")]
   | ^
   |
note: previously specified here
  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:763:1
   |
LL | #[suggestion(no_crate_example, code = "", style = "hidden", style = "normal")]
   | ^

error: derive(Diagnostic): `#[suggestion_hidden(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:772:1
   |
LL | #[suggestion_hidden(no_crate_example, code = "")]
   | ^
   |
   = help: Use `#[suggestion(..., style = "hidden")]` instead

error: derive(Diagnostic): `#[suggestion_hidden(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:780:1
   |
LL | #[suggestion_hidden(no_crate_example, code = "", style = "normal")]
   | ^
   |
   = help: Use `#[suggestion(..., style = "hidden")]` instead

error: derive(Diagnostic): invalid suggestion style
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:788:51
   |
LL | #[suggestion(no_crate_example, code = "", style = "foo")]
   |                                                   ^^^^^
   |
   = help: valid styles are `normal`, `short`, `hidden`, `verbose` and `tool-only`

error: derive(Diagnostic): expected `= "xxx"`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:796:49
   |
LL | #[suggestion(no_crate_example, code = "", style = 42)]
   |                                                 ^

error: derive(Diagnostic): a diagnostic slug must be the first argument to the attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:804:48
   |
LL | #[suggestion(no_crate_example, code = "", style)]
   |                                                ^

error: derive(Diagnostic): expected `= "xxx"`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:812:48
   |
LL | #[suggestion(no_crate_example, code = "", style("foo"))]
   |                                                ^

error: derive(Diagnostic): `#[primary_span]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:825:5
   |
LL |     #[primary_span]
   |     ^
   |
   = note: there must be exactly one primary span
   = help: to create a suggestion with multiple spans, use `#[multipart_suggestion]` instead

error: derive(Diagnostic): suggestion without `#[primary_span]` field
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:822:1
   |
LL | #[suggestion(no_crate_example, code = "")]
   | ^

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:96:9
   |
LL | #[label("...")]
   |         ^^^^^ you might be missing crate `core`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:312:1
   |
LL | union AC {
   | ^^^^^ you might be missing crate `core`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:582:27
   |
LL |     #[suggestion_part(foo = "bar")]
   |                           ^ you might be missing crate `core`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:675:28
   |
LL |     #[suggestion_part(code("foo"))]
   |                            ^^^^^ you might be missing crate `core`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:686:28
   |
LL |     #[suggestion_part(code("foo", "bar"))]
   |                            ^^^^^ you might be missing crate `core`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:697:28
   |
LL |     #[suggestion_part(code(3))]
   |                            ^ you might be missing crate `core`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:720:30
   |
LL |     #[suggestion_part(code = 3)]
   |                              ^ you might be missing crate `core`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:812:48
   |
LL | #[suggestion(no_crate_example, code = "", style("foo"))]
   |                                                ^ you might be missing crate `core`

error: cannot find attribute `foo` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:67:3
   |
LL | #[foo]
---

error: cannot find attribute `bar` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:213:7
   |
LL |     #[bar("...")]
   |       ^^^

error: cannot find attribute `bar` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:274:7
   |
---

error: cannot find attribute `bar` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:296:7
   |
LL |     #[bar("...")]
   |       ^^^

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:26:10
   |
---
   |
LL | #[derive(Subdiagnostic)]
   |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Subdiagnostic)]
   |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Subdiagnostic)]
   |          ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Subdiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL + extern crate fluent_generated;
   |

error[E0425]: cannot find value `__code_29` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs:714:10
   |
LL | #[derive(Subdiagnostic)]
   |          ^^^^^^^^^^^^^ not found in this scope
   |
---
---- [ui] tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs stdout ----

error: compiler output got truncated, cannot compare with reference file
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui-fulldeps/session-diagnostic/diagnostic-derive" "-A" "unused" "-W" "unused_attributes" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
<<<<<< TRUNCATED, SHOWING THE FIRST 524543 BYTES >>>>>>

error: proc macro panicked
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:32:1
   |
LL | rustc_fluent_macro::fluent_messages! { "./example.ftl" }
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: called `Result::unwrap()` on an `Err` value: NotPresent

error: derive(Diagnostic): unsupported type attribute for diagnostic derive enum
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:47:1
   |
LL | #[diag(no_crate_example, code = E0123)]
   | ^

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:50:5
   |
LL |     Foo,
   |     ^^^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:52:5
   |
LL |     Bar,
   |     ^^^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): `#[nonsense(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:63:1
   |
LL | #[nonsense(no_crate_example, code = E0123)]
   | ^

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:63:1
   |
LL | #[nonsense(no_crate_example, code = E0123)]
   | ^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:70:1
   |
LL | #[diag(code = E0123)]
   | ^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): diagnostic slug must be the first argument
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:80:16
   |
LL | #[diag(nonsense("foo"), code = E0123, slug = "foo")]
   |                ^

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:80:1
   |
LL | #[diag(nonsense("foo"), code = E0123, slug = "foo")]
   | ^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): unknown argument
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:86:8
   |
LL | #[diag(nonsense = "...", code = E0123, slug = "foo")]
   |        ^^^^^^^^
   |
   = note: only the `code` parameter is valid after the slug

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:86:1
   |
LL | #[diag(nonsense = "...", code = E0123, slug = "foo")]
   | ^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): unknown argument
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:92:8
   |
LL | #[diag(nonsense = 4, code = E0123, slug = "foo")]
   |        ^^^^^^^^
   |
   = note: only the `code` parameter is valid after the slug

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:92:1
   |
LL | #[diag(nonsense = 4, code = E0123, slug = "foo")]
   | ^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): unknown argument
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:98:40
   |
LL | #[diag(no_crate_example, code = E0123, slug = "foo")]
   |                                        ^^^^
   |
   = note: only the `code` parameter is valid after the slug

error: derive(Diagnostic): `#[suggestion = ...]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:105:5
   |
LL |     #[suggestion = "bar"]
   |     ^

---

error: derive(Diagnostic): attribute specified multiple times
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:118:40
   |
LL | #[diag(no_crate_example, code = E0123, code = E0456)]
   |                                        ^^^^
   |
note: previously specified here
  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:118:26
   |
LL | #[diag(no_crate_example, code = E0123, code = E0456)]
   |                          ^^^^

error: derive(Diagnostic): diagnostic slug must be the first argument
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:123:43
   |
LL | #[diag(no_crate_example, no_crate::example, code = E0123)]
   |                                           ^

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:128:1
   |
LL | struct KindNotProvided {} //~ ERROR diagnostic slug not specified
   | ^^^^^^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:131:1
   |
LL | #[diag(code = E0123)]
   | ^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:142:5
   |
LL |     #[primary_span]
   |     ^

error: derive(Diagnostic): `#[nonsense]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:150:5
   |
LL |     #[nonsense]
   |     ^

error: derive(Diagnostic): the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:167:5
   |
LL |     #[label(no_crate_label)]
   |     ^

error: derive(Diagnostic): `name` doesn't refer to a field on this type
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:175:46
   |
LL |     #[suggestion(no_crate_suggestion, code = "{name}")]
   |                                              ^^^^^^^^

error: invalid format string: expected `}` but string was terminated
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:180:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ expected `}` in format string
   |
   = note: if you intended to print `{`, you can escape it using `{{`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)

error: invalid format string: unmatched `}` found
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:190:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ unmatched `}` in format string
   |
   = note: if you intended to print `}`, you can escape it using `}}`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive(Diagnostic): the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:210:5
   |
LL |     #[label(no_crate_label)]
   |     ^

error: derive(Diagnostic): suggestion without `code = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:229:5
   |
LL |     #[suggestion(no_crate_suggestion)]
   |     ^

---
   |                  ^^^^^^^^
   |
   = help: only `no_span`, `style`, `code` and `applicability` are valid nested attributes

error: derive(Diagnostic): suggestion without `code = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:237:5
   |
LL |     #[suggestion(nonsense = "bar")]
   |     ^

error: derive(Diagnostic): invalid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:246:18
   |
LL |     #[suggestion(msg = "bar")]
   |                  ^^^
   |
   = help: only `no_span`, `style`, `code` and `applicability` are valid nested attributes

error: derive(Diagnostic): suggestion without `code = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:246:5
   |
LL |     #[suggestion(msg = "bar")]
   |     ^

error: derive(Diagnostic): wrong field type for suggestion
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:269:5
   |
LL |     #[suggestion(no_crate_suggestion, code = "This is suggested code")]
   |     ^
   |
   = help: `#[suggestion(...)]` should be applied to fields of type `Span` or `(Span, Applicability)`

error: derive(Diagnostic): attribute specified multiple times
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:285:24
   |
LL |     suggestion: (Span, Span, Applicability),
---
   |
LL |     suggestion: (Applicability, Applicability, Span),
   |                  ^^^^^^^^^^^^^

error: derive(Diagnostic): `#[label = ...]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:300:5
   |
LL |     #[label = "bar"]
   |     ^

error: derive(Diagnostic): attribute specified multiple times
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:451:5
   |
LL |     #[suggestion(no_crate_suggestion, code = "...", applicability = "maybe-incorrect")]
   |     ^
   |
note: previously specified here
  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:453:24
   |
LL |     suggestion: (Span, Applicability),
   |                        ^^^^^^^^^^^^^

error: derive(Diagnostic): invalid applicability
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:459:69
   |
LL |     #[suggestion(no_crate_suggestion, code = "...", applicability = "batman")]
   |                                                                     ^^^^^^^^

error: derive(Diagnostic): the `#[help(...)]` attribute can only be applied to fields of type `Span`, `MultiSpan`, `bool` or `()`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:526:5
   |
LL |     #[help(no_crate_help)]
   |     ^

error: derive(Diagnostic): a diagnostic slug must be the first argument to the attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:535:32
   |
LL |     #[label(no_crate_label, foo)]
   |                                ^

error: derive(Diagnostic): only `no_span` is a valid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:543:29
   |
LL |     #[label(no_crate_label, foo = "...")]
   |                             ^^^

error: derive(Diagnostic): only `no_span` is a valid nested attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:551:29
   |
LL |     #[label(no_crate_label, foo("..."))]
   |                             ^^^

error: derive(Diagnostic): `#[primary_span]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:563:5
   |
LL |     #[primary_span]
   |     ^
   |
   = help: the `primary_span` field attribute is not valid for lint diagnostics

error: derive(Diagnostic): `#[error(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:583:1
   |
LL | #[error(no_crate_example, code = E0123)]
   | ^

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:583:1
   |
LL | #[error(no_crate_example, code = E0123)]
   | ^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): `#[warn_(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:590:1
   |
LL | #[warn_(no_crate_example, code = E0123)]
   | ^

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:590:1
   |
LL | #[warn_(no_crate_example, code = E0123)]
   | ^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): `#[lint(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:597:1
   |
LL | #[lint(no_crate_example, code = E0123)]
   | ^

error: derive(Diagnostic): diagnostic slug not specified
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:597:1
   |
LL | #[lint(no_crate_example, code = E0123)]
   | ^
   |
   = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`

error: derive(Diagnostic): `#[lint(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:604:1
   |
LL | #[lint(no_crate_example, code = E0123)]
   | ^

---

error: derive(Diagnostic): attribute specified multiple times
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:613:53
   |
LL |     #[suggestion(no_crate_suggestion, code = "...", code = ",,,")]
   |                                                     ^^^^
   |
note: previously specified here
  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:613:39
   |
LL |     #[suggestion(no_crate_suggestion, code = "...", code = ",,,")]
   |                                       ^^^^

error: derive(Diagnostic): wrong types for suggestion
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:622:24
   |
LL |     suggestion: (Span, usize),
   |                        ^^^^^
   |
   = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`

error: derive(Diagnostic): wrong types for suggestion
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:630:17
   |
LL |     suggestion: (Span,),
   |                 ^^^^^^^
   |
   = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)`

error: derive(Diagnostic): suggestion without `code = "..."`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:637:5
   |
LL |     #[suggestion(no_crate_suggestion)]
   |     ^

error: derive(Diagnostic): `#[multipart_suggestion(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:644:1
   |
LL | #[multipart_suggestion(no_crate_suggestion)]
   | ^
   |
   = help: consider creating a `Subdiagnostic` instead

error: derive(Diagnostic): `#[multipart_suggestion(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:647:1
   |
LL | #[multipart_suggestion()]
   | ^
   |
   = help: consider creating a `Subdiagnostic` instead

error: derive(Diagnostic): `#[multipart_suggestion(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:651:5
   |
LL |     #[multipart_suggestion(no_crate_suggestion)]
   |     ^
   |
   = help: consider creating a `Subdiagnostic` instead

error: derive(Diagnostic): `#[suggestion(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:659:1
   |
LL | #[suggestion(no_crate_suggestion, code = "...")]
   | ^
   |
   = help: `#[label]` and `#[suggestion]` can only be applied to fields

error: derive(Diagnostic): `#[label]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:668:1
   |
LL | #[label]
   | ^
   |
   = help: `#[label]` and `#[suggestion]` can only be applied to fields

error: derive(Diagnostic): `#[subdiagnostic(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:702:5
   |
LL |     #[subdiagnostic(bad)]
   |     ^

error: derive(Diagnostic): `#[subdiagnostic = ...]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:710:5
   |
LL |     #[subdiagnostic = "bad"]
   |     ^

error: derive(Diagnostic): `#[subdiagnostic(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:718:5
   |
LL |     #[subdiagnostic(bad, bad)]
   |     ^

error: derive(Diagnostic): `#[subdiagnostic(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:726:5
   |
LL |     #[subdiagnostic("bad")]
   |     ^

error: derive(Diagnostic): `#[subdiagnostic(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:734:5
   |
LL |     #[subdiagnostic(eager)]
   |     ^

error: derive(Diagnostic): `#[subdiagnostic(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:742:5
   |
LL |     #[subdiagnostic(eager)]
   |     ^

error: derive(Diagnostic): `#[subdiagnostic(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:763:5
   |
LL |     #[subdiagnostic(eager)]
   |     ^

error: derive(Diagnostic): expected at least one string literal for `code(...)`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:794:23
   |
LL |     #[suggestion(code())]
   |                       ^

error: derive(Diagnostic): `code(...)` must contain only string literals
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:802:23
   |
LL |     #[suggestion(code(foo))]
   |                       ^^^

error: derive(Diagnostic): `#[suggestion(...)]` is not a valid attribute
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:826:5
   |
LL |     #[suggestion(no_crate_suggestion, code = "")]
   |     ^
   |
   = note: `#[suggestion(...)]` applied to `Vec` field is ambiguous
   = help: to show a suggestion consisting of multiple parts, use a `Subdiagnostic` annotated with `#[multipart_suggestion(...)]`
   = help: to show a variable set of suggestions, use a `Vec` of `Subdiagnostic`s annotated with `#[suggestion(...)]`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:58:8
   |
LL | #[diag = "E0123"]
   |        ^ you might be missing crate `core`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:802:23
   |
LL |     #[suggestion(code(foo))]
   |                       ^^^ you might be missing crate `core`

error[E0433]: failed to resolve: you might be missing crate `core`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:811:25
   |
LL |     #[suggestion(code = 3)]
   |                         ^ you might be missing crate `core`

error: cannot find attribute `nonsense` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:63:3
   |
LL | #[nonsense(no_crate_example, code = E0123)]
   |   ^^^^^^^^

error: cannot find attribute `nonsense` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:150:7
   |
LL |     #[nonsense]
   |       ^^^^^^^^

error: cannot find attribute `error` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:583:3
   |
LL | #[error(no_crate_example, code = E0123)]
   |   ^^^^^
   |
help: `error` is an attribute that can be used by the derive macro `Error`, you might be missing a `derive` attribute
   |
LL + #[derive(Error)]
LL | struct ErrorAttribute {}
   |

error: cannot find attribute `warn_` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:590:3
   |
LL | #[warn_(no_crate_example, code = E0123)]
   |   ^^^^^
   |
help: a built-in attribute with a similar name exists
   |
LL - #[warn_(no_crate_example, code = E0123)]
LL + #[warn(no_crate_example, code = E0123)]
   |

error: cannot find attribute `lint` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:597:3
   |
LL | #[lint(no_crate_example, code = E0123)]
   |   ^^^^
   |
help: a built-in attribute with a similar name exists
   |
LL - #[lint(no_crate_example, code = E0123)]
LL + #[link(no_crate_example, code = E0123)]
   |

error: cannot find attribute `lint` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:604:3
   |
LL | #[lint(no_crate_example, code = E0123)]
   |   ^^^^
   |
help: a built-in attribute with a similar name exists
   |
LL - #[lint(no_crate_example, code = E0123)]
LL + #[link(no_crate_example, code = E0123)]
   |

error: cannot find attribute `multipart_suggestion` in this scope
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:644:3
   |
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:215:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:215:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:215:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:215:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:305:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:314:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:314:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:497:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
##[error]  --> /checkout/tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs:508:10
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`
---
   |
LL | #[derive(Diagnostic)]
   |          ^^^^^^^^^^ use of unresolved module or unlinked crate `fluent_generated`
   |
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
   = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
help: you might be missing a crate named `fluent_generated`, add it to your project and import it in your code
   |
LL + extern crate fluent_generated;
   |

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fluent_generated`

@bjorn3
Copy link
Member Author

bjorn3 commented Jan 9, 2026

rust-lang/compiler-team#959 would obsolete this PR if it gets accepted.

@bjorn3 bjorn3 added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributes Area: Attributes (`#[…]`, `#![…]`) A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-testsuite Area: The testsuite used to check the correctness of rustc A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants