Fix diagnostic and add a test for it
This commit is contained in:
parent
df72e478b0
commit
12ae282987
3 changed files with 15 additions and 1 deletions
|
@ -1089,8 +1089,8 @@ pub(crate) struct ToolWasAlreadyRegistered {
|
|||
#[derive(Diagnostic)]
|
||||
#[diag(resolve_tool_only_accepts_identifiers)]
|
||||
pub(crate) struct ToolOnlyAcceptsIdentifiers {
|
||||
#[label]
|
||||
#[primary_span]
|
||||
#[label]
|
||||
pub(crate) span: Span,
|
||||
pub(crate) tool: Symbol,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue