Skip to content

Commit e2c935b

Browse files
Rollup merge of rust-lang#157362 - fallible-algebra:typos/arg-in-wf, r=petrochenkov
Fix trivial wf module argument/doc comment name mismatches Some instances of `arg` in the `wf` module got renamed to `term` a while back, but the doc comments were not updated. This PR updates to `term`.
2 parents f764d7c + c611d64 commit e2c935b

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
@@ -21,9 +21,9 @@ use tracing::{debug, instrument, trace};
2121
use crate::infer::InferCtxt;
2222
use crate::traits;
2323

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

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

0 commit comments

Comments
 (0)