comprehensive-rust icon indicating copy to clipboard operation
comprehensive-rust copied to clipboard

Typo

Open Arthur-Milchior opened this issue 2 years ago • 1 comments

Not sure of the intended meaning. At least the sentence is true and gramattically correct here

Arthur-Milchior avatar Dec 25 '22 04:12 Arthur-Milchior

Oh my... That looks super weird indeed.

I wanted to write "Rust assumes that...".

mgeisler avatar Dec 25 '22 10:12 mgeisler

I don't think it's about lifetimes per se, it's more of a general lint. "If you're doing something on the level of pointers, you have to opt in to being Send and/or Sync." (E.g. there's a good chance you're doing something FFI related.)

In fact I think mentioning lifetimes is confusing. Raw pointers have no lifetime parameter. Perhaps, "Rust assumes raw pointers may have special concurrency considerations."

QuineDot avatar Dec 26 '22 22:12 QuineDot

Rust assumes raw pointers may have special concurrency considerations.

Thanks, I like this phrasing! Let's go with that for now :smile:

mgeisler avatar Dec 27 '22 16:12 mgeisler