We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fd7d85 commit 3b92b97Copy full SHA for 3b92b97
src/librustc/ty/context.rs
@@ -226,8 +226,7 @@ pub struct LocalTableInContext<'a, V: 'a> {
226
fn validate_hir_id_for_typeck_tables(local_id_root: Option<DefId>,
227
hir_id: hir::HirId,
228
mut_access: bool) {
229
- #[cfg(debug_assertions)]
230
- {
+ if cfg!(debug_assertions) {
231
if let Some(local_id_root) = local_id_root {
232
if hir_id.owner != local_id_root.index {
233
ty::tls::with(|tcx| {
0 commit comments