Auto merge of #10026 - samueltardieu:missing-slash, r=flip1995

Add missing slash to produce function documentation

changelog: none
This commit is contained in:
bors 2022-12-02 16:27:29 +00:00
commit 4c123a06ba

View File

@ -30,7 +30,7 @@ use std::iter;
use crate::{match_def_path, path_res, paths};
// Checks if the given type implements copy.
/// Checks if the given type implements copy.
pub fn is_copy<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) -> bool {
ty.is_copy_modulo_regions(cx.tcx, cx.param_env)
}