Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
maurobalbi committed Feb 18, 2024
1 parent 148b1d0 commit 2ebb464
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion crates/ide/src/def/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ impl BodyLowerCtx {
}
ast::Expr::TupleIndex(tup) => {
let container = self.lower_expr_opt(tup.base());
tracing::info!("TUP {:#?} {:#?}", tup, tup.index());
let Some(index) = tup
.index()
.and_then(|i| i.text())
Expand Down
1 change: 0 additions & 1 deletion crates/ide/src/def/lower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ impl LowerCtx {
let start = self.next_field_idx();
if let Some(fields) = constructor.field_list() {
for field in fields.fields() {
tracing::info!("FIELD {:#?}", field);
if let Some(type_ref) = module::typeref_from_ast_opt(field.type_()) {
let label = field.label().and_then(|t| t.text());
self.alloc_field(FieldData {
Expand Down
2 changes: 0 additions & 2 deletions crates/ide/src/ide/references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pub(crate) fn references(db: &dyn TyDatabase, fpos: FilePos) -> Option<Vec<FileR

let def = semantics::classify_node(&sema, &tok.parent()?)?;

tracing::info!("DEFINITION {:?} {:?}",def, def.name(sema.db.upcast()));
def.clone()
.usages(&sema)
.in_scope(&SearchScope::package_graph(db.upcast()))
Expand Down Expand Up @@ -47,7 +46,6 @@ mod tests {

let mut file_set: IndexMap<FileId, Vec<TextRange>> = IndexMap::new();

tracing::info!("Refs {:?}", refs);
for refs in refs.into_iter() {
file_set
.entry(refs.file_id)
Expand Down
2 changes: 1 addition & 1 deletion crates/ide/src/ide/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub(crate) fn prepare_rename(
.is_local(sema.db.upcast());

if !is_local {
return Err("Cannot rename a definition from a dependency".to_owned())
return Err("Cannot rename a definition from an external dependency".to_owned())
}

let name = match def {
Expand Down

0 comments on commit 2ebb464

Please sign in to comment.