Skip to content

Mark DefineOpaqueTypes::Yes use-sites uncovered by tests as FIXMEs #117369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 36 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
729eb0a
mark first uncovered DefineOpaqueTypes in visit_implementation_of_dis…
lqd Oct 29, 2023
c87df67
mark second uncovered DefineOpaqueTypes in visit_implementation_of_di…
lqd Oct 29, 2023
c794ec3
mark first uncovered DefineOpaqueTypes in coerce_unsized_info
lqd Oct 29, 2023
c5d5bf0
mark first uncovered DefineOpaqueTypes in enforce_context_effects
lqd Oct 29, 2023
408b8c0
mark first uncovered DefineOpaqueTypes in try_find_coercion_lub
lqd Oct 29, 2023
f0b7ac0
mark second uncovered DefineOpaqueTypes in try_find_coercion_lub
lqd Oct 29, 2023
b7fecd2
mark third uncovered DefineOpaqueTypes in try_find_coercion_lub
lqd Oct 29, 2023
d759e2c
mark fourth uncovered DefineOpaqueTypes in try_find_coercion_lub
lqd Oct 29, 2023
1febe8a
mark first uncovered DefineOpaqueTypes in check_expr_struct_fields
lqd Oct 29, 2023
db70758
mark first uncovered DefineOpaqueTypes in instantiate_value_path
lqd Oct 29, 2023
c30d3e2
mark first uncovered DefineOpaqueTypes in check_argument_types
lqd Oct 29, 2023
910446d
mark first uncovered DefineOpaqueTypes in report_arg_errors
lqd Oct 29, 2023
fe2163c
mark first uncovered DefineOpaqueTypes in unify_receivers
lqd Oct 29, 2023
e309049
mark first uncovered DefineOpaqueTypes in matches_return_type
lqd Oct 29, 2023
c27ac58
mark first uncovered DefineOpaqueTypes in candidate_source
lqd Oct 29, 2023
1d9b5a1
mark first uncovered DefineOpaqueTypes in consider_probe
lqd Oct 29, 2023
25e59ab
mark first uncovered DefineOpaqueTypes in can_sub
lqd Oct 29, 2023
cc1bd62
mark first uncovered DefineOpaqueTypes in can_eq
lqd Oct 29, 2023
b5c0845
mark first uncovered DefineOpaqueTypes in subtype_predicate
lqd Oct 29, 2023
a247d09
mark first uncovered DefineOpaqueTypes in evaluate_nested_obligations
lqd Oct 29, 2023
53030de
mark first uncovered DefineOpaqueTypes in compute_inherent_assoc_ty_args
lqd Oct 29, 2023
1e39afd
mark first uncovered DefineOpaqueTypes in confirm_param_env_candidate
lqd Oct 29, 2023
e469012
mark first uncovered DefineOpaqueTypes in confirm_projection_candidate
lqd Oct 29, 2023
bc6de16
mark first uncovered DefineOpaqueTypes in confirm_object_candidate
lqd Oct 29, 2023
ad30b48
mark first uncovered DefineOpaqueTypes in confirm_builtin_unsize_cand…
lqd Oct 29, 2023
d1f9f84
mark second uncovered DefineOpaqueTypes in confirm_builtin_unsize_can…
lqd Oct 29, 2023
d21c0e8
mark third uncovered DefineOpaqueTypes in confirm_builtin_unsize_cand…
lqd Oct 29, 2023
2232f6b
mark fourth uncovered DefineOpaqueTypes in confirm_builtin_unsize_can…
lqd Oct 29, 2023
846be8c
mark first uncovered DefineOpaqueTypes in evaluate_predicate_recursively
lqd Oct 29, 2023
8bb1233
mark second uncovered DefineOpaqueTypes in evaluate_predicate_recursi…
lqd Oct 29, 2023
1f474bf
mark third uncovered DefineOpaqueTypes in evaluate_predicate_recursively
lqd Oct 29, 2023
48c5a06
mark fourth uncovered DefineOpaqueTypes in evaluate_predicate_recursi…
lqd Oct 29, 2023
278ba7a
mark first uncovered DefineOpaqueTypes in match_normalize_trait_ref
lqd Oct 29, 2023
a9b5f66
mark first uncovered DefineOpaqueTypes in match_upcast_principal
lqd Oct 29, 2023
d6fa5d9
mark second uncovered DefineOpaqueTypes in match_upcast_principal
lqd Oct 29, 2023
b82ba57
mark first uncovered DefineOpaqueTypes in fulfill_implication
lqd Oct 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mark first uncovered DefineOpaqueTypes in can_eq
  • Loading branch information
lqd committed Oct 29, 2023
commit cc1bd62d3a60f16330f0a43159ca19c4b9dbef8c
1 change: 1 addition & 0 deletions compiler/rustc_infer/src/infer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ impl<'tcx> InferCtxt<'tcx> {
T: at::ToTrace<'tcx>,
{
let origin = &ObligationCause::dummy();
// FIXME(DefineOpaqueTypes): no test exercizes using `DefineOpaqueTypes::Yes` below.
self.probe(|_| self.at(origin, param_env).eq(DefineOpaqueTypes::No, a, b).is_ok())
}

Expand Down