Skip to content

Conversation

@A4-Tacks
Copy link
Member

  • Add make::untyped_param
  • Add some basic make tests

Example

make::unnamed_param(make::ty("Vec<T>")),

Before this PR

After this PR


Assist: Generate a type alias for function with unnamed params

fn foo$0(x: Vec<i32>) {}

Before this PR

type FooFn = fn(Vec);

fn foo(x: Vec<i32>) {}

After this PR

type FooFn = fn(Vec<i32>);

fn foo(x: Vec<i32>) {}

- Add `make::untyped_param`
- Add some basic make tests

Example
---
```rust
make::unnamed_param(make::ty("Vec<T>")),

```

**Before this PR**

```text
[email protected]
  [email protected]
    [email protected]
      [email protected] "Vec"
```

**After this PR**

```text
[email protected]
  [email protected]
    [email protected]
      [email protected]
        [email protected]
          [email protected] "Vec"
        [email protected]
          [email protected] "<"
          [email protected]
            [email protected]
              [email protected]
                [email protected]
                  [email protected]
                    [email protected] "T"
          [email protected] ">"
```

---

Assist: `Generate a type alias for function with unnamed params`

```rust
fn foo$0(x: Vec<i32>) {}
```

**Before this PR**

```rust
type FooFn = fn(Vec);

fn foo(x: Vec<i32>) {}
```

**After this PR**

```rust
type FooFn = fn(Vec<i32>);

fn foo(x: Vec<i32>) {}
```
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 16, 2025
@A4-Tacks
Copy link
Member Author

A4-Tacks commented Dec 8, 2025

r? @ShoyuVanilla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants