From bbcd3566de57741481372e9ed13cc0f499d6f808 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 11 Feb 2019 19:05:58 +0300 Subject: remove useless hash --- crates/ra_hir/src/macros.rs | 2 +- crates/ra_hir/src/module_tree.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/ra_hir/src/macros.rs b/crates/ra_hir/src/macros.rs index 95925159f..a8070637e 100644 --- a/crates/ra_hir/src/macros.rs +++ b/crates/ra_hir/src/macros.rs @@ -17,7 +17,7 @@ use ra_syntax::{ use crate::{MacroCallId, PersistentHirDatabase}; // Hard-coded defs for now :-( -#[derive(Debug, Clone, PartialEq, Eq, Hash)] +#[derive(Debug, Clone, PartialEq, Eq)] pub enum MacroDef { Vec, QueryGroup, diff --git a/crates/ra_hir/src/module_tree.rs b/crates/ra_hir/src/module_tree.rs index 1f19ee191..99c2115e1 100644 --- a/crates/ra_hir/src/module_tree.rs +++ b/crates/ra_hir/src/module_tree.rs @@ -115,7 +115,7 @@ pub struct ModuleTree { links: Arena, } -#[derive(Debug, PartialEq, Eq, Hash)] +#[derive(Debug, PartialEq, Eq)] pub struct ModuleData { file_id: HirFileId, /// Points to `ast::Module`, `None` for the whole file. -- cgit v1.2.3 From dc951098f6a981b36d5559dc12d7c96b18ac411b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 11 Feb 2019 19:07:49 +0300 Subject: typo --- crates/ra_mbe/src/lib.rs | 2 +- crates/ra_mbe/src/mbe_expander.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/ra_mbe/src/lib.rs b/crates/ra_mbe/src/lib.rs index b09837831..87782e5b9 100644 --- a/crates/ra_mbe/src/lib.rs +++ b/crates/ra_mbe/src/lib.rs @@ -26,7 +26,7 @@ pub use tt::{Delimiter, Punct}; 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 /// `tt::TokenTree`, but there's a crucial difference: in macro rules, `$ident` /// and `$()*` have special meaning (see `Var` and `Repeat` data structures) diff --git a/crates/ra_mbe/src/mbe_expander.rs b/crates/ra_mbe/src/mbe_expander.rs index 31531f4c9..eec713d9c 100644 --- a/crates/ra_mbe/src/mbe_expander.rs +++ b/crates/ra_mbe/src/mbe_expander.rs @@ -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` for the result of the expansion. use rustc_hash::FxHashMap; -- cgit v1.2.3