remove outdated comment from is_user_visible_dep docs

This commit is contained in:
Michael Howell 2023-05-08 14:34:17 -07:00
parent 5a7fffee71
commit 1c14b0ac0a

View file

@ -862,10 +862,6 @@ impl<'tcx> TyCtxt<'tcx> {
/// dependency, or a [direct] private dependency. This is used to decide whether the crate can /// dependency, or a [direct] private dependency. This is used to decide whether the crate can
/// be shown in `impl` suggestions. /// be shown in `impl` suggestions.
/// ///
/// # Panics
///
/// This function assumes `key` exists.
///
/// [public]: TyCtxt::is_private_dep /// [public]: TyCtxt::is_private_dep
/// [direct]: rustc_session::cstore::ExternCrate::is_direct /// [direct]: rustc_session::cstore::ExternCrate::is_direct
pub fn is_user_visible_dep(self, key: CrateNum) -> bool { pub fn is_user_visible_dep(self, key: CrateNum) -> bool {