Skip to content

Commit c611d64

Browse files
Fix some wf module argument/doc comment name mismatches
1 parent 4530eac commit c611d64

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • compiler/rustc_trait_selection/src/traits

compiler/rustc_trait_selection/src/traits/wf.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ use tracing::{debug, instrument, trace};
2222
use crate::infer::InferCtxt;
2323
use crate::traits;
2424

25-
/// Returns the set of obligations needed to make `arg` well-formed.
26-
/// If `arg` contains unresolved inference variables, this may include
27-
/// further WF obligations. However, if `arg` IS an unresolved
25+
/// Returns the set of obligations needed to make `term` well-formed.
26+
/// If `term` contains unresolved inference variables, this may include
27+
/// further WF obligations. However, if `term` IS an unresolved
2828
/// inference variable, returns `None`, because we are not able to
2929
/// make any progress at all. This is to prevent cycles where we
3030
/// say "?0 is WF if ?0 is WF".
@@ -100,7 +100,7 @@ pub fn unnormalized_obligations<'tcx>(
100100
) -> Option<PredicateObligations<'tcx>> {
101101
debug_assert_eq!(term, infcx.resolve_vars_if_possible(term));
102102

103-
// However, if `arg` IS an unresolved inference variable, returns `None`,
103+
// However, if `term` IS an unresolved inference variable, returns `None`,
104104
// because we are not able to make any progress at all. This is to prevent
105105
// cycles where we say "?0 is WF if ?0 is WF".
106106
if term.is_infer() {

0 commit comments

Comments
 (0)