mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Remove unrelated change
This commit is contained in:
parent
1e9095ae8c
commit
a8a606cdc4
1 changed files with 2 additions and 4 deletions
|
@ -540,12 +540,10 @@ fn highlight_element(
|
||||||
|
|
||||||
let expr = prefix_expr.expr()?;
|
let expr = prefix_expr.expr()?;
|
||||||
let ty = sema.type_of_expr(&expr)?;
|
let ty = sema.type_of_expr(&expr)?;
|
||||||
let mut h = HighlightTag::Operator.into();
|
|
||||||
if !ty.is_raw_ptr() {
|
if !ty.is_raw_ptr() {
|
||||||
h
|
return None;
|
||||||
} else {
|
} else {
|
||||||
h |= HighlightModifier::Unsafe;
|
HighlightTag::Operator | HighlightModifier::Unsafe
|
||||||
h
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {
|
T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue