From 38518c44b0325398ba07c2e23e502a0c2f5d1ef5 Mon Sep 17 00:00:00 2001 From: John Kåre Alsaker Date: Mon, 11 Mar 2024 17:02:12 +0100 Subject: Print the crates not available as static --- compiler/rustc_metadata/src/errors.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'compiler/rustc_metadata/src/errors.rs') diff --git a/compiler/rustc_metadata/src/errors.rs b/compiler/rustc_metadata/src/errors.rs index 8bf6b665de8..b50ae057709 100644 --- a/compiler/rustc_metadata/src/errors.rs +++ b/compiler/rustc_metadata/src/errors.rs @@ -38,6 +38,14 @@ pub struct RustcLibRequired<'a> { #[help] pub struct CrateDepMultiple { pub crate_name: Symbol, + #[subdiagnostic] + pub non_static_deps: Vec, +} + +#[derive(Subdiagnostic)] +#[note(metadata_crate_dep_not_static)] +pub struct NonStaticCrateDep { + pub crate_name: Symbol, } #[derive(Diagnostic)] -- cgit 1.4.1-3-g733a5