mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
make Parse fields private
this is in preparation for the new rowan API
This commit is contained in:
parent
2e466bb365
commit
deab4caa7b
31 changed files with 109 additions and 99 deletions
|
@ -102,7 +102,7 @@ fn main() -> Result<()> {
|
|||
|
||||
fn file() -> Result<TreeArc<SourceFile>> {
|
||||
let text = read_stdin()?;
|
||||
Ok(SourceFile::parse(&text).tree)
|
||||
Ok(SourceFile::parse(&text).tree().to_owned())
|
||||
}
|
||||
|
||||
fn read_stdin() -> Result<String> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue