mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Keep the span for Attr::Literal
This commit is contained in:
parent
6d1071962f
commit
928d847cc2
7 changed files with 44 additions and 36 deletions
|
@ -2008,8 +2008,7 @@ impl Function {
|
|||
}
|
||||
let data = db.function_data(self.id);
|
||||
|
||||
data.name.to_smol_str() == "main"
|
||||
|| data.attrs.export_name().map(core::ops::Deref::deref) == Some("main")
|
||||
data.name.to_smol_str() == "main" || data.attrs.export_name() == Some("main")
|
||||
}
|
||||
|
||||
/// Does this function have the ignore attribute?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue