You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users/daniel/Projects/rust/nanomsg.rs/src/lib.rs:1:1: 1:1 error: internal compiler error: Type parameter out of range when substituting in region 'a (root type='amut Socket<'a>) (space=FnSpace, index=1)
/Users/daniel/Projects/rust/nanomsg.rs/src/lib.rs:1 #![crate_type = "lib"]
^
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:116
I have a struct S that takes lifetime 'a. Because the lifetime is associated with an unsafe pointer (technically, the implementation hides this). I added a ContravariantLifetime<'a> marker type.
ICE:
I have a struct
S
that takes lifetime'a
. Because the lifetime is associated with an unsafe pointer (technically, the implementation hides this). I added aContravariantLifetime<'a>
marker type.Now,
Socket
has a method calledbind
that creates a newEndpoint
That is, I want a new lifetime
'b
that is shorter than the lifetime of'a
.Having the lifetime of
'a
of&mut self
results in the ICE, without it works fine./cc @aturon @nikomatsakis
The text was updated successfully, but these errors were encountered: