Skip to content

librustc: Forbid & pointers (other than &'static) inside @ boxes. - #7894

Closed
pcwalton wants to merge 3 commits into
rust-lang:masterfrom
pcwalton:and-pointers-in-at-boxes
Closed

librustc: Forbid & pointers (other than &'static) inside @ boxes.#7894
pcwalton wants to merge 3 commits into
rust-lang:masterfrom
pcwalton:and-pointers-in-at-boxes

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

This will be needed to add `'static` bounds to `@`.
This makes custom borrowing implementations for custom smart pointers
sound.
@borsbors closed this Jul 20, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 23, 2021
…effen
Extend author lint
changelog: none
* Print float and int suffixes
* Print labels
* Struct field checks
* Repeat length expression check
* Destructure method calls
* Destructure closures
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
7894: generate_function assist: convert arg names to lower snake case r=Veykril a=JoshMcguigan
This PR fixes one of the points listed by @TimoFreiberg in rust-lang#3639. Specifically that all generated argument names should be converted to lower snake case. ```rust
struct BazBaz;
fn foo() {
bar$0(BazBaz);
// ^ when triggering the assist here, you get the output below
}
// BEFORE
fn bar(BazBaz: BazBaz) ${0:-> ()} {
todo!()
}
// AFTER
fn bar(baz_baz: BazBaz) ${0:-> ()} {
todo!()
}
```
Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>
Sign up for freeto 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.

4 participants

@pcwalton@graydon@brson@bors