]> git.lizzy.rs Git - rust.git/commitdiff
Pacify the merciless nrc.
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 11 Feb 2015 21:55:22 +0000 (16:55 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 12 Feb 2015 18:29:52 +0000 (13:29 -0500)
src/librustc/metadata/csearch.rs
src/librustc/metadata/decoder.rs
src/librustc_typeck/collect.rs

index 245b9ef66ad3ac5b84591a81143e43d0c4949abb..7eeb0589118fbf8dbfd1cc47df80f92a576083b2 100644 (file)
@@ -234,7 +234,7 @@ pub fn get_trait_def<'tcx>(tcx: &ty::ctxt<'tcx>, def: ast::DefId) -> ty::TraitDe
 }
 
 pub fn get_predicates<'tcx>(tcx: &ty::ctxt<'tcx>, def: ast::DefId)
-                                  -> ty::GenericPredicates<'tcx>
+                            -> ty::GenericPredicates<'tcx>
 {
     let cstore = &tcx.sess.cstore;
     let cdata = cstore.get_crate_data(def.krate);
index 4924ebc576742b93a881e2e773b2ce33e8e39260..e5576de6e842442c0de92fc94f2b2c630b08eaca 100644 (file)
@@ -418,9 +418,9 @@ pub fn get_trait_def<'tcx>(cdata: Cmd,
 }
 
 pub fn get_predicates<'tcx>(cdata: Cmd,
-                                  item_id: ast::NodeId,
-                                  tcx: &ty::ctxt<'tcx>)
-                                  -> ty::GenericPredicates<'tcx>
+                            item_id: ast::NodeId,
+                            tcx: &ty::ctxt<'tcx>)
+                            -> ty::GenericPredicates<'tcx>
 {
     let item_doc = lookup_item(item_id, cdata.data());
     doc_predicates(item_doc, tcx, cdata, tag_item_generics)
index 3ee3eb87b95a70313001764d8027e8b91e28316e..8a1945c16a6aa37c31326d41df123ef7fe37b952 100644 (file)
@@ -44,7 +44,7 @@
 
 So as you can see, in general translating types requires knowing the
 trait hierarchy. But this gets a bit tricky because translating the
-trait hierarchy requires convering the types that appear in trait
+trait hierarchy requires converting the types that appear in trait
 references. One potential saving grace is that in general knowing the
 trait hierarchy is only necessary for shorthands like `T::X` or
 handling omitted lifetime bounds on object types. Therefore, if we are
@@ -1778,12 +1778,12 @@ fn check_method_self_type<'a, 'tcx, RS:RegionScope>(
                 &ty::liberate_late_bound_regions(
                     tcx, body_scope, &ty::Binder(base_type)));
 
-        //debug!("required_type={} required_type_free={} \
-                //base_type={} base_type_free={}",
-               //required_type.repr(tcx),
-               //required_type_free.repr(tcx),
-               //base_type.repr(tcx),
-               //base_type_free.repr(tcx));
+        debug!("required_type={} required_type_free={} \
+                base_type={} base_type_free={}",
+               required_type.repr(tcx),
+               required_type_free.repr(tcx),
+               base_type.repr(tcx),
+               base_type_free.repr(tcx));
 
         let infcx = infer::new_infer_ctxt(tcx);
         drop(::require_same_types(tcx,