diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2022-05-20 19:51:09 -0400 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2022-05-20 20:04:54 -0400 |
| commit | 49c82f31a85f04a709810de4ccfb8ba765c1377b (patch) | |
| tree | dbcbf74a4c0cef46af19b4b24f04dd2e79e3ea23 /compiler/rustc_mir_build/src/lints.rs | |
| parent | 536020c5f97883aa9f2a90897a5adb520486d2e1 (diff) | |
| download | rust-49c82f31a85f04a709810de4ccfb8ba765c1377b.tar.gz rust-49c82f31a85f04a709810de4ccfb8ba765c1377b.zip | |
Remove `crate` visibility usage in compiler
Diffstat (limited to 'compiler/rustc_mir_build/src/lints.rs')
| -rw-r--r-- | compiler/rustc_mir_build/src/lints.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/lints.rs b/compiler/rustc_mir_build/src/lints.rs index bccff379873..5470cc1262e 100644 --- a/compiler/rustc_mir_build/src/lints.rs +++ b/compiler/rustc_mir_build/src/lints.rs @@ -9,7 +9,7 @@ use rustc_session::lint::builtin::UNCONDITIONAL_RECURSION; use rustc_span::Span; use std::ops::ControlFlow; -crate fn check<'tcx>(tcx: TyCtxt<'tcx>, body: &Body<'tcx>) { +pub(crate) fn check<'tcx>(tcx: TyCtxt<'tcx>, body: &Body<'tcx>) { let def_id = body.source.def_id().expect_local(); if let Some(fn_kind) = tcx.hir().get_by_def_id(def_id).fn_kind() { |
