From 652b312122139501ae513e9c985d9c31030684b3 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Mon, 20 Aug 2012 16:53:33 -0700 Subject: more sound treatment of fn& regions; change all & to be distinct --- src/libstd/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/sync.rs') diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs index 1438e4ab180..bd0e815d325 100644 --- a/src/libstd/sync.rs +++ b/src/libstd/sync.rs @@ -538,7 +538,7 @@ impl &rwlock { } /// To be called inside of the write_downgrade block. - fn downgrade(+token: rwlock_write_mode) -> rwlock_read_mode { + fn downgrade(+token: rwlock_write_mode/&a) -> rwlock_read_mode/&a { if !ptr::ref_eq(self, token.lock) { fail ~"Can't downgrade() with a different rwlock's write_mode!"; } -- cgit 1.4.1-3-g733a5