mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
internal: explain that we don't ref
in style.md
This commit is contained in:
parent
5f3662e01c
commit
12d7f5b56e
8 changed files with 31 additions and 20 deletions
|
@ -133,12 +133,12 @@ pub(crate) fn annotations(
|
|||
}
|
||||
|
||||
pub(crate) fn resolve_annotation(db: &RootDatabase, mut annotation: Annotation) -> Annotation {
|
||||
match annotation.kind {
|
||||
AnnotationKind::HasImpls { position, ref mut data } => {
|
||||
*data = goto_implementation(db, position).map(|range| range.info);
|
||||
match &mut annotation.kind {
|
||||
AnnotationKind::HasImpls { position, data } => {
|
||||
*data = goto_implementation(db, *position).map(|range| range.info);
|
||||
}
|
||||
AnnotationKind::HasReferences { position, ref mut data } => {
|
||||
*data = find_all_refs(&Semantics::new(db), position, None).map(|result| {
|
||||
AnnotationKind::HasReferences { position, data } => {
|
||||
*data = find_all_refs(&Semantics::new(db), *position, None).map(|result| {
|
||||
result
|
||||
.references
|
||||
.into_iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue