Skip to content

Commit aa9cf4c

Browse files
committed
auto merge of #11701 : FeGs/rust/stray-debug-in-metadata, r=alexcrichton
When there is `println!` macro in the code, compiling is never end. ```rust // print.rs fn main() { println!("Hello!"); } ``` ```bash $ RUST_LOG=rustc rustc print.rs ``` And this is a part of output from stderr. ```bash # ... Looking up syntax::ast::DefId{crate: 1u32, node: 176234u32} looking up syntax::ast::DefId{crate: 1u32, node: 176235u32} : extra::ebml::Doc<>{data: &[168u8, 16u8, 0u8, 0u8, 16u8, 51u8, 101u8, 53u8, 97u8, 101u8, 98u8, 56u8, 51u8, 55u8, 97u8, 101u8, 49u8, 54u8, 50u8 # ... # vector which has infinite length. ``` * note : rust 0.9, 0.10-pre
2 parents 19e0cbe + 86b0564 commit aa9cf4c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustc/metadata/csearch.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -211,17 +211,14 @@ pub fn get_field_type(tcx: ty::ctxt, class_id: ast::DefId,
211211
let cstore = tcx.cstore;
212212
let cdata = cstore.get_crate_data(class_id.crate);
213213
let all_items = reader::get_doc(reader::Doc(cdata.data()), tag_items);
214-
debug!("Looking up {:?}", class_id);
215214
let class_doc = expect(tcx.diag,
216215
decoder::maybe_find_item(class_id.node, all_items),
217216
|| format!("get_field_type: class ID {:?} not found",
218217
class_id) );
219-
debug!("looking up {:?} : {:?}", def, class_doc);
220218
let the_field = expect(tcx.diag,
221219
decoder::maybe_find_item(def.node, class_doc),
222220
|| format!("get_field_type: in class {:?}, field ID {:?} not found",
223221
class_id, def) );
224-
debug!("got field data {:?}", the_field);
225222
let ty = decoder::item_type(def, the_field, tcx, cdata);
226223
ty::ty_param_bounds_and_ty {
227224
generics: ty::Generics {type_param_defs: @~[],

0 commit comments

Comments
 (0)