Require source implementations for Diagnostic

This commit is contained in:
Kirill Bulatov 2020-07-28 10:24:59 +03:00
parent 21184a1b2a
commit cfbbd91a88
3 changed files with 15 additions and 12 deletions

View file

@ -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) {