mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
2d3b46670f
commit
6c2b840e37
7 changed files with 144 additions and 21 deletions
|
@ -55,6 +55,7 @@ pub trait Castable: IDLInterface + DomObject + Sized {
|
|||
|
||||
#[allow(missing_docs)]
|
||||
pub trait HasParent {
|
||||
#[crown::unrooted_must_root_lint::must_root]
|
||||
type Parent;
|
||||
fn as_parent(&self) -> &Self::Parent;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue