mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
kill more reexports
This commit is contained in:
parent
70333c8edf
commit
a44428fc79
2 changed files with 2 additions and 6 deletions
|
@ -72,7 +72,7 @@ fn main() -> Result<()> {
|
||||||
|
|
||||||
fn file() -> Result<File> {
|
fn file() -> Result<File> {
|
||||||
let text = read_stdin()?;
|
let text = read_stdin()?;
|
||||||
Ok(libeditor::parse(&text))
|
Ok(File::parse(&text))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn read_stdin() -> Result<String> {
|
fn read_stdin() -> Result<String> {
|
||||||
|
@ -91,7 +91,7 @@ fn render_test(file: &Path, line: usize) -> Result<(String, String)> {
|
||||||
None => bail!("No test found at line {} at {}", line, file.display()),
|
None => bail!("No test found at line {} at {}", line, file.display()),
|
||||||
Some((_start_line, test)) => test,
|
Some((_start_line, test)) => test,
|
||||||
};
|
};
|
||||||
let file = libeditor::parse(&test.text);
|
let file = File::parse(&test.text);
|
||||||
let tree = syntax_tree(&file);
|
let tree = syntax_tree(&file);
|
||||||
Ok((test.text, tree))
|
Ok((test.text, tree))
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,10 +51,6 @@ pub enum RunnableKind {
|
||||||
Bin,
|
Bin,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn parse(text: &str) -> File {
|
|
||||||
File::parse(text)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn matching_brace(file: &File, offset: TextUnit) -> Option<TextUnit> {
|
pub fn matching_brace(file: &File, offset: TextUnit) -> Option<TextUnit> {
|
||||||
const BRACES: &[SyntaxKind] = &[
|
const BRACES: &[SyntaxKind] = &[
|
||||||
L_CURLY, R_CURLY,
|
L_CURLY, R_CURLY,
|
||||||
|
|
Loading…
Reference in a new issue