remove sub_relations from the InferCtxt
#119989
Merged
sub_relations from the InferCtxt
#119989