Skip to content

Commit 26091c5

Browse files
committed
Fighting Git
1 parent 33282c7 commit 26091c5

File tree

5 files changed

+2
-13
lines changed

5 files changed

+2
-13
lines changed

crates/cfg/src/cfg_expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ where
136136
result
137137
}
138138

139-
pub fn next_cfg_expr<S>(it: &mut SliceIter<'_, tt::TokenTree<S>>) -> Option<CfgExpr> {
139+
fn next_cfg_expr<S>(it: &mut SliceIter<'_, tt::TokenTree<S>>) -> Option<CfgExpr> {
140140
let name = match it.next() {
141141
None => return None,
142142
Some(tt::TokenTree::Leaf(tt::Leaf::Ident(ident))) => ident.text.clone(),

crates/cfg/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use std::fmt;
1212
use rustc_hash::FxHashSet;
1313
use tt::SmolStr;
1414

15-
pub use cfg_attr::CfgAttr;
1615
pub use cfg_expr::{CfgAtom, CfgExpr};
1716
pub use dnf::DnfExpr;
1817

crates/hir-expand/src/db.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use syntax::{
1010
ast::{self, HasAttrs},
1111
AstNode, Parse, SyntaxElement, SyntaxError, SyntaxNode, SyntaxToken, T,
1212
};
13-
use tracing::info;
1413
use triomphe::Arc;
1514

1615
use crate::{
@@ -462,14 +461,7 @@ fn macro_arg(
462461
}
463462
}
464463
}
465-
fn censor_cfg_elements(
466-
node: &SyntaxNode,
467-
loc: &MacroCallLoc,
468-
span_map: &SpanMap,
469-
db: &dyn ExpandDatabase,
470-
) -> FxHashSet<SyntaxElement> {
471-
cfg_process::process_cfg_attrs(node, loc, span_map, db).unwrap_or_default()
472-
}
464+
473465
// FIXME: Censoring info should be calculated by the caller! Namely by name resolution
474466
/// Certain macro calls expect some nodes in the input to be preprocessed away, namely:
475467
/// - derives expect all `#[derive(..)]` invocations up to the currently invoked one to be stripped

crates/hir-expand/src/fixup.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ pub(crate) fn fixup_syntax(
5252
) -> SyntaxFixups {
5353
let mut append = FxHashMap::<SyntaxElement, _>::default();
5454
let mut remove = FxHashSet::<SyntaxElement>::default();
55-
let mut remove = FxHashSet::<SyntaxElement>::default();
5655
let mut preorder = node.preorder();
5756
let mut original = Vec::new();
5857
let dummy_range = FIXUP_DUMMY_RANGE;

crates/mbe/src/syntax_bridge.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use syntax::{
99
SyntaxKind::{self, *},
1010
SyntaxNode, SyntaxToken, SyntaxTreeBuilder, TextRange, TextSize, WalkEvent, T,
1111
};
12-
use tracing::info;
1312
use tt::{
1413
buffer::{Cursor, TokenBuffer},
1514
Span,

0 commit comments

Comments
 (0)