From 5731ca3078318a66a13208133d8839a9f9f92629 Mon Sep 17 00:00:00 2001 From: Erik Price Date: Mon, 9 Dec 2013 23:16:18 -0800 Subject: Make 'self lifetime illegal. Also remove all instances of 'self within the codebase. This fixes #10889. --- src/libstd/rt/comm.rs | 8 ++++---- src/libstd/rt/crate_map.rs | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/libstd/rt') diff --git a/src/libstd/rt/comm.rs b/src/libstd/rt/comm.rs index 2b1e7865a73..2fa34994292 100644 --- a/src/libstd/rt/comm.rs +++ b/src/libstd/rt/comm.rs @@ -510,7 +510,7 @@ impl Peekable for Port { // of them, but a &Port should also be selectable so you can select2 on it // alongside a PortOne without passing the port by value in recv_ready. -impl<'self, T: Send> SelectInner for &'self Port { +impl<'a, T: Send> SelectInner for &'a Port { #[inline] fn optimistic_check(&mut self) -> bool { self.next.with_mut(|pone| { pone.get_mut_ref().optimistic_check() }) @@ -528,7 +528,7 @@ impl<'self, T: Send> SelectInner for &'self Port { } } -impl<'self, T: Send> Select for &'self Port { } +impl<'a, T: Send> Select for &'a Port { } impl SelectInner for Port { #[inline] @@ -549,7 +549,7 @@ impl SelectInner for Port { impl Select for Port { } -impl<'self, T: Send> SelectPortInner for &'self Port { +impl<'a, T: Send> SelectPortInner for &'a Port { fn recv_ready(self) -> Option { let mut b = self.next.borrow_mut(); match b.get().take_unwrap().recv_ready() { @@ -562,7 +562,7 @@ impl<'self, T: Send> SelectPortInner for &'self Port { } } -impl<'self, T: Send> SelectPort for &'self Port { } +impl<'a, T: Send> SelectPort for &'a Port { } pub struct SharedChan { // Just like Chan, but a shared AtomicOption diff --git a/src/libstd/rt/crate_map.rs b/src/libstd/rt/crate_map.rs index 6dcbd4a129e..22fc3f0ab56 100644 --- a/src/libstd/rt/crate_map.rs +++ b/src/libstd/rt/crate_map.rs @@ -21,15 +21,15 @@ use rt::rtio::EventLoop; #[link_args = "-Wl,-U,__rust_crate_map_toplevel"] extern {} -pub struct ModEntry<'self> { - name: &'self str, +pub struct ModEntry<'a> { + name: &'a str, log_level: *mut u32 } -pub struct CrateMap<'self> { +pub struct CrateMap<'a> { version: i32, - entries: &'self [ModEntry<'self>], - children: &'self [&'self CrateMap<'self>], + entries: &'a [ModEntry<'a>], + children: &'a [&'a CrateMap<'a>], event_loop_factory: Option ~EventLoop>, } -- cgit 1.4.1-3-g733a5