Skip to content

Commit 2dbe9fd

Browse files
committed
Remove an out-of-date FIXME comment.
This comment made sense when this crate was called `rustc_typeck`, but makes less sense now that it's called `rustc_hir_analysis`. Especially given that `check_drop_impl` is only called within the crate.
1 parent f453f93 commit 2dbe9fd

File tree

1 file changed

+4
-5
lines changed
  • compiler/rustc_hir_analysis/src/check

1 file changed

+4
-5
lines changed

compiler/rustc_hir_analysis/src/check/dropck.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// FIXME(@lcnr): Move this module out of `rustc_hir_analysis`.
2-
//
3-
// We don't do any drop checking during hir typeck.
4-
51
use rustc_data_structures::fx::FxHashSet;
62
use rustc_errors::codes::*;
73
use rustc_errors::{ErrorGuaranteed, struct_span_code_err};
@@ -32,7 +28,10 @@ use crate::hir::def_id::{DefId, LocalDefId};
3228
/// struct/enum definition for the nominal type itself (i.e.
3329
/// cannot do `struct S<T>; impl<T:Clone> Drop for S<T> { ... }`).
3430
///
35-
pub fn check_drop_impl(tcx: TyCtxt<'_>, drop_impl_did: DefId) -> Result<(), ErrorGuaranteed> {
31+
pub(crate) fn check_drop_impl(
32+
tcx: TyCtxt<'_>,
33+
drop_impl_did: DefId,
34+
) -> Result<(), ErrorGuaranteed> {
3635
match tcx.impl_polarity(drop_impl_did) {
3736
ty::ImplPolarity::Positive => {}
3837
ty::ImplPolarity::Negative => {

0 commit comments

Comments
 (0)