mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
dead code
This commit is contained in:
parent
bfc263f1f9
commit
660cf34d8c
8 changed files with 9 additions and 70 deletions
|
@ -80,12 +80,12 @@ fn parse_inline_err() {
|
|||
fn parse(text: &str) -> (String, bool) {
|
||||
let lexed = LexedStr::new(text);
|
||||
let input = lexed.to_input();
|
||||
let output = crate::parse_source_file(&input);
|
||||
let output = crate::TopEntryPoint::SourceFile.parse(&input);
|
||||
|
||||
let mut buf = String::new();
|
||||
let mut errors = Vec::new();
|
||||
let mut indent = String::new();
|
||||
lexed.intersperse_trivia(&output, false, &mut |step| match step {
|
||||
lexed.intersperse_trivia(&output, &mut |step| match step {
|
||||
crate::StrStep::Token { kind, text } => {
|
||||
write!(buf, "{}", indent).unwrap();
|
||||
write!(buf, "{:?} {:?}\n", kind, text).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue