argv-minus-one

Results 26 comments of argv-minus-one

> [@jrose-signal] If you add the constraint `where 'local: 'new_local` You mean add that constraint to `JNIEnv::with_local_frame{,_returning_local}`? *Where* would that constraint go? This isn't syntactically valid: ```rust pub fn with_local_frame(&mut...

Reopening this since we seem to still be discussing it.

Ah, I *thought* I had looked into this before. Thanks for the reminder. @jrose-signal, how do you feel about this? If we connect the outer and inner lifetimes, then we...

This, however, doesn't work: ```rust fn with_local_frame_access_outer_ref, int_class: &JClass, ) -> Result> { 245 | env.alloc_object(int_class) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'local` required ``` The compiler isn't happy unless `env` and `int_class`...

I'm not sure what you mean by `'outer` and `'inner`. There are no lifetimes with those names in this snippet. If you're referring to local reference frames, this function doesn't...

From the label you've added, I take it we're going to leave this alone for now and think about it later?