mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Keep SyntaxNodePtr::range private
This commit is contained in:
parent
66cea8cbaa
commit
fb0ab9f745
4 changed files with 17 additions and 9 deletions
|
@ -267,7 +267,7 @@ impl fmt::Display for CaseType {
|
|||
#[derive(Debug)]
|
||||
pub struct IncorrectCase {
|
||||
pub file: HirFileId,
|
||||
pub ident: SyntaxNodePtr,
|
||||
pub ident: AstPtr<ast::Name>,
|
||||
pub expected_case: CaseType,
|
||||
pub ident_type: String,
|
||||
pub ident_text: String,
|
||||
|
@ -290,7 +290,7 @@ impl Diagnostic for IncorrectCase {
|
|||
}
|
||||
|
||||
fn display_source(&self) -> InFile<SyntaxNodePtr> {
|
||||
InFile::new(self.file, self.ident.clone())
|
||||
InFile::new(self.file, self.ident.clone().into())
|
||||
}
|
||||
|
||||
fn as_any(&self) -> &(dyn Any + Send + 'static) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue