mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
borrow_deref_ref
This commit is contained in:
parent
c4688343de
commit
dd9f27b8d3
3 changed files with 3 additions and 4 deletions
|
@ -167,7 +167,6 @@ new_ret_no_self = "allow"
|
||||||
|
|
||||||
## Following lints should be tackled at some point
|
## Following lints should be tackled at some point
|
||||||
borrowed_box = "allow"
|
borrowed_box = "allow"
|
||||||
borrow_deref_ref = "allow"
|
|
||||||
derived_hash_with_manual_eq = "allow"
|
derived_hash_with_manual_eq = "allow"
|
||||||
field_reassign_with_default = "allow"
|
field_reassign_with_default = "allow"
|
||||||
forget_non_drop = "allow"
|
forget_non_drop = "allow"
|
||||||
|
|
|
@ -1924,7 +1924,7 @@ impl ModCollector<'_, '_> {
|
||||||
item_tree: self.item_tree,
|
item_tree: self.item_tree,
|
||||||
mod_dir,
|
mod_dir,
|
||||||
}
|
}
|
||||||
.collect_in_top_module(&*items);
|
.collect_in_top_module(items);
|
||||||
if is_macro_use {
|
if is_macro_use {
|
||||||
self.import_all_legacy_macros(module_id);
|
self.import_all_legacy_macros(module_id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,13 +41,13 @@ impl Default for TestDB {
|
||||||
|
|
||||||
impl Upcast<dyn ExpandDatabase> for TestDB {
|
impl Upcast<dyn ExpandDatabase> for TestDB {
|
||||||
fn upcast(&self) -> &(dyn ExpandDatabase + 'static) {
|
fn upcast(&self) -> &(dyn ExpandDatabase + 'static) {
|
||||||
&*self
|
self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Upcast<dyn DefDatabase> for TestDB {
|
impl Upcast<dyn DefDatabase> for TestDB {
|
||||||
fn upcast(&self) -> &(dyn DefDatabase + 'static) {
|
fn upcast(&self) -> &(dyn DefDatabase + 'static) {
|
||||||
&*self
|
self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue