Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/racer/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Emitter for DummyEmitter {
fn fluent_bundle(&self) -> Option<&Lrc<rustc_errors::FluentBundle>> {
None
}
fn fallback_fluent_bundle(&self) -> &Lrc<rustc_errors::FluentBundle> {
fn fallback_fluent_bundle(&self) -> &rustc_errors::FluentBundle {
unimplemented!("diagnostic translations are unimplemented in racer");
}
}
Expand Down Expand Up @@ -229,7 +229,7 @@ pub struct FnArgVisitor {
impl<'ast> visit::Visitor<'ast> for FnArgVisitor {
fn visit_fn(&mut self, fk: visit::FnKind<'_>, _: source_map::Span, _: ast::NodeId) {
let fd = match fk {
visit::FnKind::Fn(_, _, ref fn_sig, _, _) => &*fn_sig.decl,
visit::FnKind::Fn(_, _, ref fn_sig, _, _, _) => &*fn_sig.decl,
visit::FnKind::Closure(ref fn_decl, _) => fn_decl,
};
debug!("[FnArgVisitor::visit_fn] inputs: {:?}", fd.inputs);
Expand Down Expand Up @@ -1258,7 +1258,7 @@ impl FnOutputVisitor {
impl<'ast> visit::Visitor<'ast> for FnOutputVisitor {
fn visit_fn(&mut self, kind: visit::FnKind<'_>, _: source_map::Span, _: ast::NodeId) {
let fd = match kind {
visit::FnKind::Fn(_, _, ref fn_sig, _, _) => &*fn_sig.decl,
visit::FnKind::Fn(_, _, ref fn_sig, _, _, _) => &*fn_sig.decl,
visit::FnKind::Closure(ref fn_decl, _) => fn_decl,
};
self.is_async = kind
Expand Down