]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #85375 - SkiFire13:fix-85347, r=jackh726
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 20 May 2021 15:56:56 +0000 (17:56 +0200)
committerGitHub <noreply@github.com>
Thu, 20 May 2021 15:56:56 +0000 (17:56 +0200)
commit67d5435695fa2a62d7a075c50b42ea83a5d19f0d
treeb23b712ad59d53a4bb510a6cfbaf5e1e556e5485
parentddc376c03d13931bbba5550d6e8436e6ee8173cb
parent363eacd8d336e273f234d320dba26e67f7399616
Rollup merge of #85375 - SkiFire13:fix-85347, r=jackh726

Fix missing lifetimes diagnostics after #83759

In #83759 while rebasing I didn't realize there was a new function for suggesting to add lifetime arguments. It relied on some invariants, namely that if a generic type/trait has angle brackets then it must have some generic argument, which is now no longer true. This PR updates that function to handle the new invariants.

This also adds a new regression test but I'm not sure if that's the correct place for it.

Fixes #85347