789: remove useless hash r=matklad a=matklad



Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2019-02-11 16:10:34 +00:00
commit a180674986
4 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ use ra_syntax::{
use crate::{MacroCallId, PersistentHirDatabase}; use crate::{MacroCallId, PersistentHirDatabase};
// Hard-coded defs for now :-( // Hard-coded defs for now :-(
#[derive(Debug, Clone, PartialEq, Eq, Hash)] #[derive(Debug, Clone, PartialEq, Eq)]
pub enum MacroDef { pub enum MacroDef {
Vec, Vec,
QueryGroup, QueryGroup,

View file

@ -115,7 +115,7 @@ pub struct ModuleTree {
links: Arena<LinkId, LinkData>, links: Arena<LinkId, LinkData>,
} }
#[derive(Debug, PartialEq, Eq, Hash)] #[derive(Debug, PartialEq, Eq)]
pub struct ModuleData { pub struct ModuleData {
file_id: HirFileId, file_id: HirFileId,
/// Points to `ast::Module`, `None` for the whole file. /// Points to `ast::Module`, `None` for the whole file.

View file

@ -26,7 +26,7 @@ pub use tt::{Delimiter, Punct};
pub use crate::syntax_bridge::ast_to_token_tree; pub use crate::syntax_bridge::ast_to_token_tree;
/// This struct contains AST for a single `macro_rules` defenition. What might /// This struct contains AST for a single `macro_rules` definition. What might
/// be very confusing is that AST has almost exactly the same shape as /// be very confusing is that AST has almost exactly the same shape as
/// `tt::TokenTree`, but there's a crucial difference: in macro rules, `$ident` /// `tt::TokenTree`, but there's a crucial difference: in macro rules, `$ident`
/// and `$()*` have special meaning (see `Var` and `Repeat` data structures) /// and `$()*` have special meaning (see `Var` and `Repeat` data structures)

View file

@ -1,4 +1,4 @@
/// This module takes a (parsed) defenition of `macro_rules` invocation, a /// This module takes a (parsed) definition of `macro_rules` invocation, a
/// `tt::TokenTree` representing an argument of macro invocation, and produces a /// `tt::TokenTree` representing an argument of macro invocation, and produces a
/// `tt::TokenTree` for the result of the expansion. /// `tt::TokenTree` for the result of the expansion.
use rustc_hash::FxHashMap; use rustc_hash::FxHashMap;