mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-26 17:57:19 +00:00
cargo fmt
This commit is contained in:
parent
87f837cec7
commit
7535bb4661
571 changed files with 2210 additions and 2458 deletions
|
|
@ -7,12 +7,13 @@ use rustc_hash::{FxHashMap, FxHashSet};
|
|||
use span::{Edition, SpanAnchor, SpanData, SpanMap};
|
||||
use stdx::{format_to, never};
|
||||
use syntax::{
|
||||
ast::{self, make::tokens::doc_comment},
|
||||
format_smolstr, AstToken, Parse, PreorderWithTokens, SmolStr, SyntaxElement,
|
||||
AstToken, Parse, PreorderWithTokens, SmolStr, SyntaxElement,
|
||||
SyntaxKind::{self, *},
|
||||
SyntaxNode, SyntaxToken, SyntaxTreeBuilder, TextRange, TextSize, WalkEvent, T,
|
||||
SyntaxNode, SyntaxToken, SyntaxTreeBuilder, T, TextRange, TextSize, WalkEvent,
|
||||
ast::{self, make::tokens::doc_comment},
|
||||
format_smolstr,
|
||||
};
|
||||
use tt::{buffer::Cursor, token_to_literal, Punct};
|
||||
use tt::{Punct, buffer::Cursor, token_to_literal};
|
||||
|
||||
pub mod prettify_macro_expansion;
|
||||
mod to_parser_input;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
//! Utilities for formatting macro expanded nodes until we get a proper formatter.
|
||||
use syntax::{
|
||||
ast::make,
|
||||
ted::{self, Position},
|
||||
NodeOrToken,
|
||||
SyntaxKind::{self, *},
|
||||
SyntaxNode, SyntaxToken, WalkEvent, T,
|
||||
SyntaxNode, SyntaxToken, T, WalkEvent,
|
||||
ast::make,
|
||||
ted::{self, Position},
|
||||
};
|
||||
|
||||
/// Renders a [`SyntaxNode`] with whitespace inserted between tokens that require them.
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
use rustc_hash::FxHashMap;
|
||||
use span::Span;
|
||||
use syntax::{ast, AstNode};
|
||||
use syntax::{AstNode, ast};
|
||||
use test_utils::extract_annotations;
|
||||
use tt::{buffer::Cursor, Leaf, Punct, Spacing};
|
||||
use tt::{Leaf, Punct, Spacing, buffer::Cursor};
|
||||
|
||||
use crate::{
|
||||
dummy_test_span_utils::{DummyTestSpanMap, DUMMY},
|
||||
syntax_node_to_token_tree, DocCommentDesugarMode,
|
||||
DocCommentDesugarMode,
|
||||
dummy_test_span_utils::{DUMMY, DummyTestSpanMap},
|
||||
syntax_node_to_token_tree,
|
||||
};
|
||||
|
||||
fn check_punct_spacing(fixture: &str) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue