Constify KnownName's

This commit is contained in:
Muhammad Mominul Huque
2019-07-08 03:29:38 +06:00
parent 1b38ca3b87
commit 012fec54dc
11 changed files with 75 additions and 157 deletions

View File

@@ -13,7 +13,7 @@ use ra_syntax::{
};
use crate::{
name::AsName,
name::{AsName, SELF_PARAM},
type_ref::{Mutability, TypeRef},
DefWithBody, Either, HasSource, HirDatabase, HirFileId, MacroCallLoc, MacroFileKind, Name,
Path, Resolver,
@@ -981,7 +981,7 @@ where
let ptr = AstPtr::new(self_param);
let param_pat = self.alloc_pat(
Pat::Bind {
name: Name::self_param(),
name: SELF_PARAM,
mode: BindingAnnotation::Unannotated,
subpat: None,
},