Skip to content

Commit a25ed22

Browse files
committed
Pacify the merciless nrc.
1 parent eec3b43 commit a25ed22

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/librustc/metadata/csearch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ pub fn get_trait_def<'tcx>(tcx: &ty::ctxt<'tcx>, def: ast::DefId) -> ty::TraitDe
234234
}
235235

236236
pub fn get_predicates<'tcx>(tcx: &ty::ctxt<'tcx>, def: ast::DefId)
237-
-> ty::GenericPredicates<'tcx>
237+
-> ty::GenericPredicates<'tcx>
238238
{
239239
let cstore = &tcx.sess.cstore;
240240
let cdata = cstore.get_crate_data(def.krate);

src/librustc/metadata/decoder.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ pub fn get_trait_def<'tcx>(cdata: Cmd,
418418
}
419419

420420
pub fn get_predicates<'tcx>(cdata: Cmd,
421-
item_id: ast::NodeId,
422-
tcx: &ty::ctxt<'tcx>)
423-
-> ty::GenericPredicates<'tcx>
421+
item_id: ast::NodeId,
422+
tcx: &ty::ctxt<'tcx>)
423+
-> ty::GenericPredicates<'tcx>
424424
{
425425
let item_doc = lookup_item(item_id, cdata.data());
426426
doc_predicates(item_doc, tcx, cdata, tag_item_generics)

src/librustc_typeck/collect.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Converting types can require:
4444
4545
So as you can see, in general translating types requires knowing the
4646
trait hierarchy. But this gets a bit tricky because translating the
47-
trait hierarchy requires convering the types that appear in trait
47+
trait hierarchy requires converting the types that appear in trait
4848
references. One potential saving grace is that in general knowing the
4949
trait hierarchy is only necessary for shorthands like `T::X` or
5050
handling omitted lifetime bounds on object types. Therefore, if we are
@@ -1778,12 +1778,12 @@ fn check_method_self_type<'a, 'tcx, RS:RegionScope>(
17781778
&ty::liberate_late_bound_regions(
17791779
tcx, body_scope, &ty::Binder(base_type)));
17801780

1781-
//debug!("required_type={} required_type_free={} \
1782-
//base_type={} base_type_free={}",
1783-
//required_type.repr(tcx),
1784-
//required_type_free.repr(tcx),
1785-
//base_type.repr(tcx),
1786-
//base_type_free.repr(tcx));
1781+
debug!("required_type={} required_type_free={} \
1782+
base_type={} base_type_free={}",
1783+
required_type.repr(tcx),
1784+
required_type_free.repr(tcx),
1785+
base_type.repr(tcx),
1786+
base_type_free.repr(tcx));
17871787

17881788
let infcx = infer::new_infer_ctxt(tcx);
17891789
drop(::require_same_types(tcx,

0 commit comments

Comments
 (0)