Skip to content

Commit 38bcc26

Browse files
committed
Add TODO for const stability MSRV checking
Also, update error marker for consistency.
1 parent 32ef5e0 commit 38bcc26

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clippy_lints/src/incompatible_msrv.rs

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ impl IncompatibleMsrv {
168168

169169
impl<'tcx> LateLintPass<'tcx> for IncompatibleMsrv {
170170
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) {
171+
// TODO: check for const stability when in const context
171172
match expr.kind {
172173
ExprKind::MethodCall(_, _, _, span) => {
173174
if let Some(method_did) = cx.typeck_results().type_dependent_def_id(expr.hir_id) {

tests/ui/incompatible_msrv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn lang_items() {
7474
#[clippy::msrv = "1.80.0"]
7575
fn issue14212() {
7676
let _ = std::iter::repeat_n((), 5);
77-
//~^ ERROR: is `1.80.0` but this item is stable since `1.82.0`
77+
//~^ incompatible_msrv
7878
}
7979

8080
fn local_msrv_change_suggestion() {

0 commit comments

Comments
 (0)