1
Fork 0

Restrict #[rustc_box] to Box::new calls

This commit is contained in:
clubby789 2023-02-27 01:32:07 +00:00
parent c4e0cd9660
commit d845769557
9 changed files with 115 additions and 29 deletions

View file

@ -87,13 +87,6 @@ pub struct MisplacedAssocTyBinding<'a> {
pub position: DiagnosticArgFromDisplay<'a>,
}
#[derive(Diagnostic, Clone, Copy)]
#[diag(ast_lowering_rustc_box_attribute_error)]
pub struct RustcBoxAttributeError {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic, Clone, Copy)]
#[diag(ast_lowering_underscore_expr_lhs_assign)]
pub struct UnderscoreExprLhsAssign {