Skip to content

Commit 2949160

Browse files
committed
Fix nits
1 parent b3a13fd commit 2949160

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/librustc/infer/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use crate::ty::{self, Ty, Const, TyCtxt, TypeFoldable, InferConst, TypeFlags};
44
use crate::ty::fold::{TypeFolder, TypeVisitor};
55

66
///////////////////////////////////////////////////////////////////////////
7-
// OPPORTUNISTIC KIND RESOLVER
7+
// OPPORTUNISTIC VAR RESOLVER
88

9-
/// The opportunistic kind resolver can be used at any time. It simply replaces
9+
/// The opportunistic resolver can be used at any time. It simply replaces
1010
/// type/const variables that have been unified with the things they have
1111
/// been unified with (similar to `shallow_resolve`, but deep). This is
1212
/// useful for printing messages etc but also required at various

src/librustc/ty/relate.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,8 @@ pub fn super_relate_tys<'a, 'gcx, 'tcx, R>(relation: &mut R,
475475
match relation.relate(&sz_a, &sz_b) {
476476
Ok(sz) => Ok(tcx.mk_ty(ty::Array(t, sz))),
477477
Err(err) => {
478-
// Check whether the lengths are both `usize`s,
479-
// but differ in value, for better diagnostics.
480-
// FIXME(eddyb) get the right param_env.
478+
// Check whether the lengths are both concrete/known values,
479+
// but are unequal, for better diagnostics.
481480
match (sz_a.assert_usize(tcx), sz_b.assert_usize(tcx)) {
482481
(Some(sz_a_val), Some(sz_b_val)) => {
483482
Err(TypeError::FixedArraySize(

0 commit comments

Comments
 (0)