]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/traits/project.rs
Merge pull request #20674 from jbcrail/fix-misspelled-comments
[rust.git] / src / librustc / middle / traits / project.rs
index 165976ef7a322e54ad7356bc69f87133fdebe602..3e16e2965a665acbf019f3b461ecfb6804c4f0d6 100644 (file)
@@ -490,7 +490,7 @@ fn assemble_candidates_from_object_type<'cx,'tcx>(
             selcx.tcx().sess.span_bug(
                 obligation.cause.span,
                 format!("assemble_candidates_from_object_type called with non-object: {}",
-                        object_ty.repr(selcx.tcx()))[]);
+                        object_ty.repr(selcx.tcx())).as_slice());
         }
     };
     let projection_bounds = data.projection_bounds_with_self_ty(selcx.tcx(), object_ty);