{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":115039706,"defaultBranch":"master","name":"rust-analyzer","ownerLogin":"rust-lang","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-12-21T19:24:42.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/5430905?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1714375770.0","currentOid":""},"activityList":{"items":[{"before":"a666fe1e2c2b92b0e8c9d0f0906f6f46ca0b1005","after":"2a985fc965159060757d71c11d614eaecb0b7606","ref":"refs/heads/gh-pages","pushedAt":"2024-05-03T17:39:54.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: 1a5bb27c018c947dab01ab70ffe1d267b0481a17","shortMessageHtmlLink":"deploy: 1a5bb27"}},{"before":"c80006af57d7ad265184cd63504245e756b690d6","after":"1a5bb27c018c947dab01ab70ffe1d267b0481a17","ref":"refs/heads/master","pushedAt":"2024-05-03T17:38:48.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17180 - lnicola:bump-gh-pages, r=lnicola\n\nminor: bump `peaceiris/actions-gh-pages`","shortMessageHtmlLink":"Auto merge of #17180 - lnicola:bump-gh-pages, r=lnicola"}},{"before":"c80006af57d7ad265184cd63504245e756b690d6","after":"1a5bb27c018c947dab01ab70ffe1d267b0481a17","ref":"refs/heads/auto","pushedAt":"2024-05-03T17:26:35.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17180 - lnicola:bump-gh-pages, r=lnicola\n\nminor: bump `peaceiris/actions-gh-pages`","shortMessageHtmlLink":"Auto merge of #17180 - lnicola:bump-gh-pages, r=lnicola"}},{"before":"663c9c8d2d90b72b361d324cec4920b81a6c3e43","after":"a666fe1e2c2b92b0e8c9d0f0906f6f46ca0b1005","ref":"refs/heads/gh-pages","pushedAt":"2024-05-03T07:32:11.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: c80006af57d7ad265184cd63504245e756b690d6","shortMessageHtmlLink":"deploy: c80006a"}},{"before":"25f59be62f6b915b44a4c2ec2defca56a5f766c1","after":"c80006af57d7ad265184cd63504245e756b690d6","ref":"refs/heads/master","pushedAt":"2024-05-03T07:30:59.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17177 - hermannm:fix-run-lens-config, r=Veykril\n\nFix Run lens showing when lenses are disabled\n\nI have disabled Rust Analyzer lenses in my VSCode settings, but noticed that the `Run` lens still showed. This surprised me, as the docs for `lens.run.enable` [state that it only applies when `lens.enable` is set](https://github.com/rust-lang/rust-analyzer/blob/25f59be62f6b915b44a4c2ec2defca56a5f766c1/crates/rust-analyzer/src/config.rs#L353-L355). I then found that where we set `LensConfig::run`, we don't check `lens_enable` like for the other settings. [We did this previously](https://github.com/rust-lang/rust-analyzer/blob/eab385e1f64f8e3b861effe91432785f8030191b/crates/rust-analyzer/src/config.rs#L1649), so this seems like a regression from refactoring. This PR tries to fix that.","shortMessageHtmlLink":"Auto merge of #17177 - hermannm:fix-run-lens-config, r=Veykril"}},{"before":"25f59be62f6b915b44a4c2ec2defca56a5f766c1","after":"c80006af57d7ad265184cd63504245e756b690d6","ref":"refs/heads/auto","pushedAt":"2024-05-03T07:18:05.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17177 - hermannm:fix-run-lens-config, r=Veykril\n\nFix Run lens showing when lenses are disabled\n\nI have disabled Rust Analyzer lenses in my VSCode settings, but noticed that the `Run` lens still showed. This surprised me, as the docs for `lens.run.enable` [state that it only applies when `lens.enable` is set](https://github.com/rust-lang/rust-analyzer/blob/25f59be62f6b915b44a4c2ec2defca56a5f766c1/crates/rust-analyzer/src/config.rs#L353-L355). I then found that where we set `LensConfig::run`, we don't check `lens_enable` like for the other settings. [We did this previously](https://github.com/rust-lang/rust-analyzer/blob/eab385e1f64f8e3b861effe91432785f8030191b/crates/rust-analyzer/src/config.rs#L1649), so this seems like a regression from refactoring. This PR tries to fix that.","shortMessageHtmlLink":"Auto merge of #17177 - hermannm:fix-run-lens-config, r=Veykril"}},{"before":"aa903ecc0367f1067e6c21f3c7bc90f32149518b","after":"663c9c8d2d90b72b361d324cec4920b81a6c3e43","ref":"refs/heads/gh-pages","pushedAt":"2024-05-02T12:19:00.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: 25f59be62f6b915b44a4c2ec2defca56a5f766c1","shortMessageHtmlLink":"deploy: 25f59be"}},{"before":"ecba59d69ce88038bc63b70fab3bc5ca888e5b3f","after":"25f59be62f6b915b44a4c2ec2defca56a5f766c1","ref":"refs/heads/master","pushedAt":"2024-05-02T12:17:31.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17176 - Veykril:fix-implicit-ty-args, r=Veykril\n\nFix impl trait params not being counted properly\n\nFixes the other thing in https://github.com/rust-lang/rust-analyzer/issues/17173, this just rolls back a change from https://github.com/rust-lang/rust-analyzer/pull/17175 and adds a comment as to what it does","shortMessageHtmlLink":"Auto merge of #17176 - Veykril:fix-implicit-ty-args, r=Veykril"}},{"before":"ecba59d69ce88038bc63b70fab3bc5ca888e5b3f","after":"25f59be62f6b915b44a4c2ec2defca56a5f766c1","ref":"refs/heads/auto","pushedAt":"2024-05-02T12:05:26.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17176 - Veykril:fix-implicit-ty-args, r=Veykril\n\nFix impl trait params not being counted properly\n\nFixes the other thing in https://github.com/rust-lang/rust-analyzer/issues/17173, this just rolls back a change from https://github.com/rust-lang/rust-analyzer/pull/17175 and adds a comment as to what it does","shortMessageHtmlLink":"Auto merge of #17176 - Veykril:fix-implicit-ty-args, r=Veykril"}},{"before":"26ef4fc4c7371d7ebeef57348d6351ca88e27ca7","after":"aa903ecc0367f1067e6c21f3c7bc90f32149518b","ref":"refs/heads/gh-pages","pushedAt":"2024-05-02T10:17:14.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: ecba59d69ce88038bc63b70fab3bc5ca888e5b3f","shortMessageHtmlLink":"deploy: ecba59d"}},{"before":"1fb8364488384415a326d4b97cdca0b689915524","after":"ecba59d69ce88038bc63b70fab3bc5ca888e5b3f","ref":"refs/heads/master","pushedAt":"2024-05-02T10:16:15.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17175 - Veykril:fix-implicit-ty-args, r=Veykril\n\nfix: Fix implicit ty args being lowered where they shouldn't\n\nFixes https://github.com/rust-lang/rust-analyzer/issues/17173","shortMessageHtmlLink":"Auto merge of #17175 - Veykril:fix-implicit-ty-args, r=Veykril"}},{"before":"1fb8364488384415a326d4b97cdca0b689915524","after":"ecba59d69ce88038bc63b70fab3bc5ca888e5b3f","ref":"refs/heads/auto","pushedAt":"2024-05-02T10:04:15.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17175 - Veykril:fix-implicit-ty-args, r=Veykril\n\nfix: Fix implicit ty args being lowered where they shouldn't\n\nFixes https://github.com/rust-lang/rust-analyzer/issues/17173","shortMessageHtmlLink":"Auto merge of #17175 - Veykril:fix-implicit-ty-args, r=Veykril"}},{"before":"bb16f6050d39f81c5aa2a2515da0ba9d07bea566","after":"26ef4fc4c7371d7ebeef57348d6351ca88e27ca7","ref":"refs/heads/gh-pages","pushedAt":"2024-05-02T09:09:40.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: 1fb8364488384415a326d4b97cdca0b689915524","shortMessageHtmlLink":"deploy: 1fb8364"}},{"before":"cfce2bb46da62950a8b70ddb0b2a12332da1b1e1","after":"1fb8364488384415a326d4b97cdca0b689915524","ref":"refs/heads/master","pushedAt":"2024-05-02T09:08:32.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17172 - Veykril:prelude, r=Veykril\n\nfix: Correctly handle `no_core`/`no_std` for preludes\n\nFixes https://github.com/rust-lang/rust-analyzer/issues/17169, my previous change missed the fact that the sysroot itself depends on its own crates explicitly","shortMessageHtmlLink":"Auto merge of #17172 - Veykril:prelude, r=Veykril"}},{"before":"784f4adc12bf7061b08b0a174b12aba3d98afc8d","after":"1fb8364488384415a326d4b97cdca0b689915524","ref":"refs/heads/auto","pushedAt":"2024-05-02T08:56:24.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17172 - Veykril:prelude, r=Veykril\n\nfix: Correctly handle `no_core`/`no_std` for preludes\n\nFixes https://github.com/rust-lang/rust-analyzer/issues/17169, my previous change missed the fact that the sysroot itself depends on its own crates explicitly","shortMessageHtmlLink":"Auto merge of #17172 - Veykril:prelude, r=Veykril"}},{"before":"cfce2bb46da62950a8b70ddb0b2a12332da1b1e1","after":"784f4adc12bf7061b08b0a174b12aba3d98afc8d","ref":"refs/heads/auto","pushedAt":"2024-05-02T07:56:33.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17172 - Veykril:prelude, r=Veykril\n\nfix: Correctly handle `no_core`/`no_std` for preludes\n\nFixes https://github.com/rust-lang/rust-analyzer/issues/17169, my previous change missed the fact that the sysroot itself depends on its own crates explicitly","shortMessageHtmlLink":"Auto merge of #17172 - Veykril:prelude, r=Veykril"}},{"before":"089b9b47cec7dbe76b2f6e902f7e479b0657cf33","after":"bb16f6050d39f81c5aa2a2515da0ba9d07bea566","ref":"refs/heads/gh-pages","pushedAt":"2024-05-01T14:24:10.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: cfce2bb46da62950a8b70ddb0b2a12332da1b1e1","shortMessageHtmlLink":"deploy: cfce2bb"}},{"before":"49e502b277a8126a9ad10c802d1aaa3ef1a280ef","after":"cfce2bb46da62950a8b70ddb0b2a12332da1b1e1","ref":"refs/heads/master","pushedAt":"2024-05-01T14:23:10.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17168 - kennykerr:rust-analyzer-windows-sys, r=lnicola\n\nUpdate `rust-analyzer` to use `windows-sys` crate\n\nI noticed that the `rust-analyzer` project already depends on `windows-sys`. This update merely replaces the remaining direct dependencies on the older `winapi` crate with `windows-sys` dependencies.\n\nOriginally posted here: https://github.com/rust-lang/rust/pull/124578","shortMessageHtmlLink":"Auto merge of #17168 - kennykerr:rust-analyzer-windows-sys, r=lnicola"}},{"before":"49e502b277a8126a9ad10c802d1aaa3ef1a280ef","after":"cfce2bb46da62950a8b70ddb0b2a12332da1b1e1","ref":"refs/heads/auto","pushedAt":"2024-05-01T14:10:57.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17168 - kennykerr:rust-analyzer-windows-sys, r=lnicola\n\nUpdate `rust-analyzer` to use `windows-sys` crate\n\nI noticed that the `rust-analyzer` project already depends on `windows-sys`. This update merely replaces the remaining direct dependencies on the older `winapi` crate with `windows-sys` dependencies.\n\nOriginally posted here: https://github.com/rust-lang/rust/pull/124578","shortMessageHtmlLink":"Auto merge of #17168 - kennykerr:rust-analyzer-windows-sys, r=lnicola"}},{"before":"5d995535ff547487ce76a492372ddab91824ebe2","after":"089b9b47cec7dbe76b2f6e902f7e479b0657cf33","ref":"refs/heads/gh-pages","pushedAt":"2024-04-30T18:47:46.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: 49e502b277a8126a9ad10c802d1aaa3ef1a280ef","shortMessageHtmlLink":"deploy: 49e502b"}},{"before":"f660835df7ca9970564ef64e49b94e4e6de5a509","after":"49e502b277a8126a9ad10c802d1aaa3ef1a280ef","ref":"refs/heads/master","pushedAt":"2024-04-30T18:46:41.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17148 - Wilfred:span_names, r=Veykril\n\nfix: Tracing span names should match function names\n\nWhen viewing traces, it's slightly confusing when the span name doesn't match the function name. Ensure the names are consistent.\n\n(It might be worth moving most of these to use `#[tracing::instrument]` so the name can never go stale. `@davidbarsky` suggested that is marginally slower, so I've just done the simple change here.)","shortMessageHtmlLink":"Auto merge of #17148 - Wilfred:span_names, r=Veykril"}},{"before":"8e379a9a79b49787b002b4dd4520bb8c7288c1d9","after":"5d995535ff547487ce76a492372ddab91824ebe2","ref":"refs/heads/gh-pages","pushedAt":"2024-04-30T18:33:25.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: f660835df7ca9970564ef64e49b94e4e6de5a509","shortMessageHtmlLink":"deploy: f660835"}},{"before":"f660835df7ca9970564ef64e49b94e4e6de5a509","after":"49e502b277a8126a9ad10c802d1aaa3ef1a280ef","ref":"refs/heads/auto","pushedAt":"2024-04-30T18:33:18.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17148 - Wilfred:span_names, r=Veykril\n\nfix: Tracing span names should match function names\n\nWhen viewing traces, it's slightly confusing when the span name doesn't match the function name. Ensure the names are consistent.\n\n(It might be worth moving most of these to use `#[tracing::instrument]` so the name can never go stale. `@davidbarsky` suggested that is marginally slower, so I've just done the simple change here.)","shortMessageHtmlLink":"Auto merge of #17148 - Wilfred:span_names, r=Veykril"}},{"before":"1bf1f6e0a1c4cd6421f1491a7abe5d068f26b43d","after":"f660835df7ca9970564ef64e49b94e4e6de5a509","ref":"refs/heads/master","pushedAt":"2024-04-30T18:32:15.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17147 - Wilfred:fix_typo, r=Veykril\n\ndocs: Fix typo in VS Code setting description\n\nReplace 'futureg' with 'future'.","shortMessageHtmlLink":"Auto merge of #17147 - Wilfred:fix_typo, r=Veykril"}},{"before":"1bf1f6e0a1c4cd6421f1491a7abe5d068f26b43d","after":"f660835df7ca9970564ef64e49b94e4e6de5a509","ref":"refs/heads/auto","pushedAt":"2024-04-30T18:19:44.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17147 - Wilfred:fix_typo, r=Veykril\n\ndocs: Fix typo in VS Code setting description\n\nReplace 'futureg' with 'future'.","shortMessageHtmlLink":"Auto merge of #17147 - Wilfred:fix_typo, r=Veykril"}},{"before":"c9276b22f047e14a3c026b8226548e9203b1e279","after":"8e379a9a79b49787b002b4dd4520bb8c7288c1d9","ref":"refs/heads/gh-pages","pushedAt":"2024-04-30T12:36:28.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: 1bf1f6e0a1c4cd6421f1491a7abe5d068f26b43d","shortMessageHtmlLink":"deploy: 1bf1f6e"}},{"before":"84ef3cfa9100539653265c07c5de55c8541cc5fb","after":"1bf1f6e0a1c4cd6421f1491a7abe5d068f26b43d","ref":"refs/heads/master","pushedAt":"2024-04-30T12:35:30.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17160 - dfireBird:fix_impl_trait, r=Veykril\n\nImplement creating generics for impl traits in associated types\n\nHopefully fix #17017","shortMessageHtmlLink":"Auto merge of #17160 - dfireBird:fix_impl_trait, r=Veykril"}},{"before":"8b4ddc0e2e33dfa0e2414d4b02debf04852accfe","after":"c9276b22f047e14a3c026b8226548e9203b1e279","ref":"refs/heads/gh-pages","pushedAt":"2024-04-30T12:23:25.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"deploy: 84ef3cfa9100539653265c07c5de55c8541cc5fb","shortMessageHtmlLink":"deploy: 84ef3cf"}},{"before":"84ef3cfa9100539653265c07c5de55c8541cc5fb","after":"1bf1f6e0a1c4cd6421f1491a7abe5d068f26b43d","ref":"refs/heads/auto","pushedAt":"2024-04-30T12:23:24.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17160 - dfireBird:fix_impl_trait, r=Veykril\n\nImplement creating generics for impl traits in associated types\n\nHopefully fix #17017","shortMessageHtmlLink":"Auto merge of #17160 - dfireBird:fix_impl_trait, r=Veykril"}},{"before":"374ce0816cf05b0e41879279a541f2155fedd579","after":"84ef3cfa9100539653265c07c5de55c8541cc5fb","ref":"refs/heads/master","pushedAt":"2024-04-30T12:22:20.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"bors","name":"bors","path":"/bors","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3372342?s=80&v=4"},"commit":{"message":"Auto merge of #17138 - Kohei316:generate-function-assist-for-new, r=Veykril\n\nfeature: Make generate function assist generate a function as a constructor if the generated function has the name \"new\" and is an asscociated function.\n\nclose #17050\nThis PR makes `generate function assist` generate a function as a constructor if the generated function has the name \"new\" and is an asscociated function.\nIf the asscociate type is a record struct, it generates the constructor like this.\n```rust\nimpl Foo {\n fn new() -> Self {\n Self { field_1: todo!(), field_2: todo!() }\n }\n}\n```\nIf the asscociate type is a tuple struct, it generates the constructor like this.\n```rust\nimpl Foo {\n fn new() -> Self {\n Self(todo!(), todo!())\n }\n}\n```\nIf the asscociate type is a unit struct, it generates the constructor like this.\n```rust\nimpl Foo {\n fn new() -> Self {\n Self\n }\n}\n```\nIf the asscociate type is another adt, it generates the constructor like this.\n```rust\nimpl Foo {\n fn new() -> Self {\n todo!()\n }\n}\n```","shortMessageHtmlLink":"Auto merge of #17138 - Kohei316:generate-function-assist-for-new, r=V…"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEQPxQVAA","startCursor":null,"endCursor":null}},"title":"Activity · rust-lang/rust-analyzer"}