File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -359,6 +359,9 @@ pub trait Visitor<'v>: Sized {
359
359
/// All types are treated as ambiguous types for the purposes of hir visiting in
360
360
/// order to ensure that visitors can handle infer vars without it being too error-prone.
361
361
///
362
+ /// See the doc comments on [`Ty`] for an explanation of what it means for a type to be
363
+ /// ambiguous.
364
+ ///
362
365
/// The [`Visitor::visit_infer`] method should be overriden in order to handle infer vars.
363
366
fn visit_ty ( & mut self , t : & ' v Ty < ' v , AmbigArg > ) -> Self :: Result {
364
367
walk_ty ( self , t)
@@ -367,6 +370,9 @@ pub trait Visitor<'v>: Sized {
367
370
/// All consts are treated as ambiguous consts for the purposes of hir visiting in
368
371
/// order to ensure that visitors can handle infer vars without it being too error-prone.
369
372
///
373
+ /// See the doc comments on [`ConstArg`] for an explanation of what it means for a const to be
374
+ /// ambiguous.
375
+ ///
370
376
/// The [`Visitor::visit_infer`] method should be overriden in order to handle infer vars.
371
377
fn visit_const_arg ( & mut self , c : & ' v ConstArg < ' v , AmbigArg > ) -> Self :: Result {
372
378
walk_ambig_const_arg ( self , c)
You can’t perform that action at this time.
0 commit comments