Skip to content

Commit 085a8d0

Browse files
committed
syntax: Remove DummyResolver
1 parent 679000c commit 085a8d0

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/libsyntax/ext/base.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -725,31 +725,6 @@ impl Determinacy {
725725
}
726726
}
727727

728-
pub struct DummyResolver;
729-
730-
impl Resolver for DummyResolver {
731-
fn next_node_id(&mut self) -> ast::NodeId { ast::DUMMY_NODE_ID }
732-
733-
fn get_module_scope(&mut self, _id: ast::NodeId) -> Mark { Mark::root() }
734-
735-
fn resolve_dollar_crates(&mut self, _fragment: &AstFragment) {}
736-
fn visit_ast_fragment_with_placeholders(&mut self, _invoc: Mark, _fragment: &AstFragment,
737-
_derives: &[Mark]) {}
738-
fn add_builtin(&mut self, _ident: ast::Ident, _ext: Lrc<SyntaxExtension>) {}
739-
740-
fn resolve_imports(&mut self) {}
741-
fn resolve_macro_invocation(&mut self, _invoc: &Invocation, _invoc_id: Mark, _force: bool)
742-
-> Result<Option<Lrc<SyntaxExtension>>, Determinacy> {
743-
Err(Determinacy::Determined)
744-
}
745-
fn resolve_macro_path(&mut self, _path: &ast::Path, _kind: MacroKind, _invoc_id: Mark,
746-
_derives_in_scope: Vec<ast::Path>, _force: bool)
747-
-> Result<Lrc<SyntaxExtension>, Determinacy> {
748-
Err(Determinacy::Determined)
749-
}
750-
fn check_unused_macros(&self) {}
751-
}
752-
753728
#[derive(Clone)]
754729
pub struct ModuleData {
755730
pub mod_path: Vec<ast::Ident>,

0 commit comments

Comments
 (0)