From e8c449dfbd2687eedf4a850b7e4e22460163c1ea Mon Sep 17 00:00:00 2001 From: Lukas Bergdoll Date: Mon, 19 Jan 2026 10:33:40 +0100 Subject: [PATCH] Move assert_matches to planned stable path --- clippy_utils/src/ty/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clippy_utils/src/ty/mod.rs b/clippy_utils/src/ty/mod.rs index a90d64e972c1..53ad6675ab07 100644 --- a/clippy_utils/src/ty/mod.rs +++ b/clippy_utils/src/ty/mod.rs @@ -29,7 +29,10 @@ use rustc_trait_selection::traits::query::evaluate_obligation::InferCtxtExt as _; use rustc_trait_selection::traits::query::normalize::QueryNormalizeExt; use rustc_trait_selection::traits::{Obligation, ObligationCause}; +#[cfg(bootstrap)] use std::assert_matches::debug_assert_matches; +#[cfg(not(bootstrap))] +use std::debug_assert_matches; use std::collections::hash_map::Entry; use std::{iter, mem};