File tree Expand file tree Collapse file tree 5 files changed +4
-5
lines changed Expand file tree Collapse file tree 5 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,6 @@ forget_non_drop = "allow"
174174needless_doctest_main = " allow"
175175non_canonical_clone_impl = " allow"
176176non_canonical_partial_ord_impl = " allow"
177- self_named_constructors = " allow"
178177too_many_arguments = " allow"
179178type_complexity = " allow"
180179wrong_self_convention = " allow"
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ fn parse_comma_sep<S>(subtree: &tt::Subtree<S>) -> Vec<SmolStr> {
317317}
318318
319319impl AttrsWithOwner {
320- pub fn attrs_with_owner ( db : & dyn DefDatabase , owner : AttrDefId ) -> Self {
320+ pub fn new ( db : & dyn DefDatabase , owner : AttrDefId ) -> Self {
321321 Self { attrs : db. attrs ( owner) , owner }
322322 }
323323
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ impl PartialEq for AstIdMap {
155155impl Eq for AstIdMap { }
156156
157157impl AstIdMap {
158- pub ( crate ) fn ast_id_map (
158+ pub ( crate ) fn new (
159159 db : & dyn ExpandDatabase ,
160160 file_id : span:: HirFileId ,
161161 ) -> triomphe:: Arc < AstIdMap > {
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ pub trait ExpandDatabase: SourceDatabase {
6161 #[ salsa:: input]
6262 fn proc_macros ( & self ) -> Arc < ProcMacros > ;
6363
64- #[ salsa:: invoke( AstIdMap :: ast_id_map ) ]
64+ #[ salsa:: invoke( AstIdMap :: new ) ]
6565 fn ast_id_map ( & self , file_id : HirFileId ) -> Arc < AstIdMap > ;
6666
6767 /// Main public API -- parses a hir file, not caring whether it's a real
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ macro_rules! impl_has_attrs {
3030 impl HasAttrs for $def {
3131 fn attrs( self , db: & dyn HirDatabase ) -> AttrsWithOwner {
3232 let def = AttrDefId :: $def_id( self . into( ) ) ;
33- AttrsWithOwner :: attrs_with_owner ( db. upcast( ) , def)
33+ AttrsWithOwner :: new ( db. upcast( ) , def)
3434 }
3535 fn attr_id( self ) -> AttrDefId {
3636 AttrDefId :: $def_id( self . into( ) )
You can’t perform that action at this time.
0 commit comments