mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Require source implementations for Diagnostic
This commit is contained in:
parent
21184a1b2a
commit
cfbbd91a88
3 changed files with 15 additions and 12 deletions
|
@ -18,7 +18,7 @@ impl Diagnostic for UnresolvedModule {
|
|||
fn message(&self) -> String {
|
||||
"unresolved module".to_string()
|
||||
}
|
||||
fn fix_source(&self) -> InFile<SyntaxNodePtr> {
|
||||
fn source(&self) -> InFile<SyntaxNodePtr> {
|
||||
InFile::new(self.file, self.decl.clone().into())
|
||||
}
|
||||
fn as_any(&self) -> &(dyn Any + Send + 'static) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue