Skip to content

Commit 8e5f4a5

Browse files
committed
---
yaml --- r: 187243 b: refs/heads/try c: a194519 h: refs/heads/master i: 187241: 93d9b91 187239: c458c19 v: v3
1 parent a41c8d2 commit 8e5f4a5

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: b4c965ee803a4521d8b4575f634e036f93e408f3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: 3ebdbac2651cd21f2efda8d3b381ed396d7bb725
5+
refs/heads/try: a1945197c32d4e81b9fa30e61f3544a484b5491a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/librustc_typeck/astconv.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,12 +1849,12 @@ pub fn partition_bounds<'a>(tcx: &ty::ctxt,
18491849
&mut builtin_bounds) {
18501850
let segments = &b.trait_ref.path.segments;
18511851
let parameters = &segments[segments.len() - 1].parameters;
1852-
if parameters.is_empty() {
1853-
continue; // success
1852+
if !parameters.is_empty() {
1853+
span_err!(tcx.sess, b.trait_ref.path.span, E0316,
1854+
"builtin bounds do not require arguments, {} given",
1855+
parameters.lifetimes().len() + parameters.types().len());
18541856
}
1855-
span_err!(tcx.sess, b.trait_ref.path.span, E0316,
1856-
"builtin bounds do not require arguments, {} given",
1857-
parameters.types().len());
1857+
continue; // success
18581858
}
18591859
}
18601860
_ => {

branches/try/src/libtest/stats.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ pub fn winsorize<T: Float + FromPrimitive>(samples: &mut [T], pct: T) {
332332

333333
/// Returns a HashMap with the number of occurrences of every element in the
334334
/// sequence that the iterator exposes.
335+
#[cfg(not(stage0))]
335336
pub fn freq_count<T, U>(iter: T) -> hash_map::HashMap<U, uint>
336337
where T: Iterator<Item=U>, U: Eq + Clone + Hash
337338
{

branches/try/src/test/compile-fail/typeck-builtin-bound-type-parameters.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ trait Trait: Copy<Send> {}
1515
//~^ ERROR: builtin bounds do not require arguments, 1 given
1616

1717
struct MyStruct1<T: Copy<T>>;
18-
//~^ ERROR: builtin bounds do not require arguments, 1 given
18+
//~^ ERROR builtin bounds do not require arguments, 1 given
1919

2020
struct MyStruct2<'a, T: Copy<'a>>;
2121
//~^ ERROR: builtin bounds do not require arguments, 1 given
2222

2323
fn foo2<'a, T:Copy<'a, U>, U>(x: T) {}
24-
//~^ ERROR: builtin bounds do not require arguments, 1 given
24+
//~^ ERROR builtin bounds do not require arguments, 2 given
2525

2626
fn main() {
2727
}

0 commit comments

Comments
 (0)