Rollup merge of #110255 - clubby789:proc-macro-test-help, r=jackh726

Suggest using integration tests for test crate using own proc-macro

cc #110247
This commit is contained in:
Matthias Krüger 2023-04-24 07:53:23 +02:00 committed by GitHub
commit 0f271619e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 5 deletions

View file

@ -508,3 +508,12 @@ pub(crate) struct RemoveSurroundingDerive {
pub(crate) struct AddAsNonDerive<'a> {
pub(crate) macro_path: &'a str,
}
#[derive(Diagnostic)]
#[diag(resolve_proc_macro_same_crate)]
pub(crate) struct ProcMacroSameCrate {
#[primary_span]
pub(crate) span: Span,
#[help]
pub(crate) is_test: bool,
}