Skip to content

Commit b0209dc

Browse files
committed
valtree construction: keep track of which type was valtree-incompatible
1 parent c1c945a commit b0209dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/non_copy_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ impl<'tcx> NonCopyConst<'tcx> {
235235

236236
fn is_value_unfrozen_raw(
237237
cx: &LateContext<'tcx>,
238-
result: Result<Option<ty::ValTree<'tcx>>, ErrorHandled>,
238+
result: Result<Result<ty::ValTree<'tcx>, Ty<'tcx>>, ErrorHandled>,
239239
ty: Ty<'tcx>,
240240
) -> bool {
241241
result.map_or_else(

0 commit comments

Comments
 (0)