Suggest expressions that look like const generic arguments should be enclosed in brackets
Co-Authored-By: Esteban Kuber <github@kuber.com.ar>
This commit is contained in:
parent
1d2726726f
commit
ac1454001c
19 changed files with 782 additions and 35 deletions
|
@ -490,7 +490,7 @@ pub fn super_relate_consts<R: TypeRelation<'tcx>>(
|
|||
let eagerly_eval = |x: &'tcx ty::Const<'tcx>| x.eval(tcx, relation.param_env()).val;
|
||||
|
||||
// FIXME(eddyb) doesn't look like everything below checks that `a.ty == b.ty`.
|
||||
// We could probably always assert it early, as `const` generic parameters
|
||||
// We could probably always assert it early, as const generic parameters
|
||||
// are not allowed to depend on other generic parameters, i.e. are concrete.
|
||||
// (although there could be normalization differences)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue