Support associated types in must_root lint (#34163)

* Support associated types in must_root lint

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* fix

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* fixups

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* fixup

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* Fix crown violations

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* fix eng

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

* make new test use RUSTC_BOOTSTRAP=1

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Samson 2024-11-06 19:48:57 +01:00 committed by GitHub
parent 2d3b46670f
commit 6c2b840e37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 144 additions and 21 deletions

View file

@ -15,6 +15,7 @@ pub trait WebGLExtension: Sized
where
Self::Extension: DomObject + JSTraceable,
{
#[crown::unrooted_must_root_lint::must_root]
type Extension;
/// Creates the DOM object of the WebGL extension.