mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
auto merge of #6097 : Blei/rust/fix-rand, r=pnkfelix
`self` has type `&@Rand`, so `*self` will be of type `@Rand` which causes this same impl to be called again. Fixes #6061
This commit is contained in:
+1
-1
@@ -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() }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user