run borrowck tests on BIDs and emit tail-expr-drop-order lints for
potential violations
This commit is contained in:
parent
6afee111c2
commit
045271cccc
6 changed files with 155 additions and 17 deletions
|
@ -480,3 +480,10 @@ pub(crate) struct SimdIntrinsicArgConst {
|
|||
pub arg: usize,
|
||||
pub intrinsic: String,
|
||||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(borrowck_tail_expr_drop_order)]
|
||||
pub(crate) struct TailExprDropOrder {
|
||||
#[label]
|
||||
pub borrowed: Span,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue