fix comment
This commit is contained in:
parent
6a7106cb32
commit
0a17c4c190
1 changed files with 1 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ pub(super) fn type_of(tcx: TyCtxt<'_>, def_id: DefId) -> Ty<'_> {
|
|||
bug!("no arg matching AnonConst in path");
|
||||
});
|
||||
|
||||
// try to use the segment resolution if it is valid, otherwise we
|
||||
// Try to use the segment resolution if it is valid, otherwise we
|
||||
// default to the path resolution.
|
||||
let res = segment.res.filter(|&r| r != Res::Err).unwrap_or(path.res);
|
||||
let generics = match res {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue