Skip to content

Commit 06c0893

Browse files
jroeschJared Roesch
authored andcommitted
---
yaml --- r: 235841 b: refs/heads/stable c: 7716541 h: refs/heads/master i: 235839: 5963f11 v: v3
1 parent 50eed75 commit 06c0893

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 99a12933fb83b1df7975257c323eb414abeb0b16
32+
refs/heads/stable: 77165415b7b4aecff6b5959647f675ddf34c222a
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc/middle/ty.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5453,7 +5453,8 @@ impl<'tcx> ctxt<'tcx> {
54535453
expected.ty,
54545454
found.ty));
54555455

5456-
match (expected.def_id.krate == ast::LOCAL_CRATE, self.map.opt_span(expected.def_id.node)) {
5456+
match (expected.def_id.krate == ast::LOCAL_CRATE,
5457+
self.map.opt_span(expected.def_id.node)) {
54575458
(true, Some(span)) => {
54585459
self.sess.span_note(span,
54595460
&format!("a default was defined here..."));
@@ -5464,15 +5465,17 @@ impl<'tcx> ctxt<'tcx> {
54645465
.map(|p| p.to_string())
54655466
.collect::<Vec<_>>();
54665467
self.sess.note(
5467-
&format!("a default is defined on `{}`",
5468+
&format!("a default is defined on `{}`",
54685469
elems.join("::")));
54695470
}
54705471
}
54715472

5472-
self.sess.span_note(expected.origin_span,
5473-
&format!("...that was applied to an unconstrained type variable here"));
5473+
self.sess.span_note(
5474+
expected.origin_span,
5475+
&format!("...that was applied to an unconstrained type variable here"));
54745476

5475-
match (found.def_id.krate == ast::LOCAL_CRATE, self.map.opt_span(found.def_id.node)) {
5477+
match (found.def_id.krate == ast::LOCAL_CRATE,
5478+
self.map.opt_span(found.def_id.node)) {
54765479
(true, Some(span)) => {
54775480
self.sess.span_note(span,
54785481
&format!("a second default was defined here..."));
@@ -5488,8 +5491,9 @@ impl<'tcx> ctxt<'tcx> {
54885491
}
54895492
}
54905493

5491-
self.sess.span_note(found.origin_span,
5492-
&format!("...that also applies to the same type variable here"));
5494+
self.sess.span_note(
5495+
found.origin_span,
5496+
&format!("...that also applies to the same type variable here"));
54935497
}
54945498
_ => {}
54955499
}

branches/stable/src/librustc_typeck/check/method/confirm.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ impl<'a,'tcx> ConfirmContext<'a,'tcx> {
349349
} else if num_supplied_types != num_method_types {
350350
span_err!(self.tcx().sess, self.span, E0036,
351351
"incorrect number of type parameters given for this method");
352-
final_substs.types.replace(subst::FnSpace, vec![self.tcx().types.err; num_method_types]);
352+
final_substs.types.replace(
353+
subst::FnSpace,
354+
vec![self.tcx().types.err; num_method_types]);
353355
} else {
354356
final_substs.types.replace(subst::FnSpace, supplied_method_types);
355357
}

branches/stable/src/librustc_typeck/check/method/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub fn lookup_in_trait_adjusted<'a, 'tcx>(fcx: &FnCtxt<'a, 'tcx>,
190190
type_parameter_defs);
191191
}
192192
}
193-
193+
194194
let trait_ref = ty::TraitRef::new(trait_def_id, fcx.tcx().mk_substs(substs));
195195

196196
// Construct an obligation

0 commit comments

Comments
 (0)