Skip to content

Commit

Permalink
auto merge of #6097 : Blei/rust/fix-rand, r=pnkfelix
Browse files Browse the repository at this point in the history
`self` has type `&@Rand`, so `*self` will be of type `@Rand` which causes
this same impl to be called again.

Fixes #6061
  • Loading branch information
bors committed Apr 28, 2013
2 parents 5f7947a + 8627fc9 commit cdd342b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/rand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ pub fn task_rng() -> @IsaacRng {

// Allow direct chaining with `task_rng`
impl<R: Rng> Rng for @R {
fn next(&self) -> u32 { (*self).next() }
fn next(&self) -> u32 { (**self).next() }
}

/**
Expand Down

0 comments on commit cdd342b

Please sign in to comment.