mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-28 04:45:05 +00:00
op_ref
This commit is contained in:
parent
0df30499d0
commit
4858a3784d
4 changed files with 3 additions and 6 deletions
|
@ -179,7 +179,6 @@ needless_doctest_main = "allow"
|
||||||
new_without_default = "allow"
|
new_without_default = "allow"
|
||||||
non_canonical_clone_impl = "allow"
|
non_canonical_clone_impl = "allow"
|
||||||
non_canonical_partial_ord_impl = "allow"
|
non_canonical_partial_ord_impl = "allow"
|
||||||
op_ref = "allow"
|
|
||||||
option_map_unit_fn = "allow"
|
option_map_unit_fn = "allow"
|
||||||
partialeq_to_none = "allow"
|
partialeq_to_none = "allow"
|
||||||
ptr_arg = "allow"
|
ptr_arg = "allow"
|
||||||
|
|
|
@ -733,9 +733,7 @@ pub struct InTypeConstLoc {
|
||||||
|
|
||||||
impl PartialEq for InTypeConstLoc {
|
impl PartialEq for InTypeConstLoc {
|
||||||
fn eq(&self, other: &Self) -> bool {
|
fn eq(&self, other: &Self) -> bool {
|
||||||
self.id == other.id
|
self.id == other.id && self.owner == other.owner && *self.expected_ty == *other.expected_ty
|
||||||
&& self.owner == other.owner
|
|
||||||
&& &*self.expected_ty == &*other.expected_ty
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -358,7 +358,7 @@ fn expander_to_proc_macro(
|
||||||
proc_macro_api::ProcMacroKind::Attr => ProcMacroKind::Attr,
|
proc_macro_api::ProcMacroKind::Attr => ProcMacroKind::Attr,
|
||||||
};
|
};
|
||||||
let expander: sync::Arc<dyn ProcMacroExpander> =
|
let expander: sync::Arc<dyn ProcMacroExpander> =
|
||||||
if dummy_replace.iter().any(|replace| &**replace == name) {
|
if dummy_replace.iter().any(|replace| **replace == name) {
|
||||||
match kind {
|
match kind {
|
||||||
ProcMacroKind::Attr => sync::Arc::new(IdentityExpander),
|
ProcMacroKind::Attr => sync::Arc::new(IdentityExpander),
|
||||||
_ => sync::Arc::new(EmptyExpander),
|
_ => sync::Arc::new(EmptyExpander),
|
||||||
|
|
|
@ -368,7 +368,7 @@ impl CargoWorkspace {
|
||||||
name,
|
name,
|
||||||
root: AbsPathBuf::assert(src_path.into()),
|
root: AbsPathBuf::assert(src_path.into()),
|
||||||
kind: TargetKind::new(&kind),
|
kind: TargetKind::new(&kind),
|
||||||
is_proc_macro: &*kind == ["proc-macro"],
|
is_proc_macro: *kind == ["proc-macro"],
|
||||||
required_features,
|
required_features,
|
||||||
});
|
});
|
||||||
pkg_data.targets.push(tgt);
|
pkg_data.targets.push(tgt);
|
||||||
|
|
Loading…
Reference in a new issue