Skip to content

Conversation

nikomatsakis
Copy link
Contributor

Fix issue #3148, which is that the lifetimes of borrowed pointers are sometimes inferred to be too small. Also fix the borrow checker's treatment of vec patterns, which was completely absent.

Finally, add an option to tidy so you can leave "// WARN" comments in your code that will be printed out. This is useful for putting notes to yourself of things that are not done.

r? @catamorphism

contents of other borrowed pointers to the lifetimes of the
borrowed value.  Fixes rust-lang#3148.
The tail portion of the pattern effectively borrows a vector,
but the borrow checker knew nothing about this.
for notating FIXME-style-situations that you want to be reminded
of before you commit.
@catamorphism
Copy link
Contributor

r+ but I pointed out a few places in the comments in 01bf87e where they could be clearer. I appreciate all the comments, and want to make sure they're as useful as possible!

@nikomatsakis
Copy link
Contributor Author

ok, thanks for the suggestions tim.

@nikomatsakis
Copy link
Contributor Author

Pushed.

RalfJung added a commit to RalfJung/rust that referenced this pull request Oct 15, 2025
native-lib: support all types with Scalar layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants