Restrict #[rustc_box]
to Box::new
calls
This commit is contained in:
parent
c4e0cd9660
commit
d845769557
9 changed files with 115 additions and 29 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue