Merge pull request #6644 from roc-lang/rust-1-76-0-upgrade

Rust 1.76.0 upgrade
This commit is contained in:
Anton-4 2024-05-03 07:25:19 +02:00 committed by GitHub
commit f7011c8e33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 266 additions and 188 deletions

View file

@ -978,7 +978,7 @@ pub(crate) fn canonicalize_defs<'a>(
// there are opaques that implement an ability using a value symbol). But, value symbols might
// shadow symbols defined in a local ability def.
for (_, either_index) in loc_defs.tags.iter().enumerate() {
for either_index in loc_defs.tags.iter() {
if let Ok(type_index) = either_index.split() {
let type_def = &loc_defs.type_defs[type_index.index()];
let pending_type_def = to_pending_type_def(env, type_def, scope, pattern_type);