mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +00:00
When renaming a parameter to self, change callers to use method call syntax
This commit is contained in:
parent
68e7ec90bf
commit
74ecb1e788
11 changed files with 186 additions and 25 deletions
|
|
@ -206,6 +206,7 @@ impl EditionedFileId {
|
|||
|
||||
#[salsa_macros::input(debug)]
|
||||
pub struct FileText {
|
||||
#[returns(ref)]
|
||||
pub text: Arc<str>,
|
||||
pub file_id: vfs::FileId,
|
||||
}
|
||||
|
|
@ -357,7 +358,7 @@ fn parse(db: &dyn RootQueryDb, file_id: EditionedFileId) -> Parse<ast::SourceFil
|
|||
let _p = tracing::info_span!("parse", ?file_id).entered();
|
||||
let (file_id, edition) = file_id.unpack(db.as_dyn_database());
|
||||
let text = db.file_text(file_id).text(db);
|
||||
ast::SourceFile::parse(&text, edition)
|
||||
ast::SourceFile::parse(text, edition)
|
||||
}
|
||||
|
||||
fn parse_errors(db: &dyn RootQueryDb, file_id: EditionedFileId) -> Option<&[SyntaxError]> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue