10377: fix: fix proc macro crash on nightly r=jonas-schievink a=jonas-schievink

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10235

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
This commit is contained in:
bors[bot] 2021-09-27 17:43:32 +00:00 committed by GitHub
commit afa9e31b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -653,10 +653,12 @@ fn source_file(&mut self, _span: Self::Span) -> Self::SourceFile {
unimplemented!()
}
fn save_span(&mut self, _span: Self::Span) -> usize {
unimplemented!()
// FIXME stub
0
}
fn recover_proc_macro_span(&mut self, _id: usize) -> Self::Span {
unimplemented!()
// FIXME stub
tt::TokenId::unspecified()
}
/// Recent feature, not yet in the proc_macro
///