1
Fork 0

run borrowck tests on BIDs and emit tail-expr-drop-order lints for

potential violations
This commit is contained in:
Ding Xiang Fei 2024-12-05 02:58:59 +08:00 committed by Michael Goulet
parent 6afee111c2
commit 045271cccc
6 changed files with 155 additions and 17 deletions

View file

@ -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,
}