We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d45ef8 commit 2634b4bCopy full SHA for 2634b4b
compiler/rustc_trait_selection/src/traits/coherence.rs
@@ -792,11 +792,8 @@ pub fn orphan_check_trait_ref<'tcx, E: Debug>(
792
in_crate: InCrate,
793
lazily_normalize_ty: impl FnMut(Ty<'tcx>) -> Result<Ty<'tcx>, E>,
794
) -> Result<Result<(), OrphanCheckErr<'tcx, Ty<'tcx>>>, E> {
795
- if trait_ref.has_infer() && trait_ref.has_param() {
796
- bug!(
797
- "can't orphan check a trait ref with both params and inference variables {:?}",
798
- trait_ref
799
- );
+ if trait_ref.has_param() {
+ bug!("orphan check only expects inference variables: {trait_ref:?}");
800
}
801
802
let mut checker = OrphanChecker::new(in_crate, lazily_normalize_ty);
0 commit comments