Skip to content

Commit 2cf6670

Browse files
committed
---
yaml --- r: 192995 b: refs/heads/beta c: a194519 h: refs/heads/master i: 192993: 16d61aa 192991: 5a1d9bc v: v3
1 parent 37ed80e commit 2cf6670

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
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 3ebdbac2651cd21f2efda8d3b381ed396d7bb725
34+
refs/heads/beta: a1945197c32d4e81b9fa30e61f3544a484b5491a
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/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/beta/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/beta/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)