diff --git a/Cargo.lock b/Cargo.lock index ba30fe2f4d..b4e24f95e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -821,9 +821,9 @@ checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" [[package]] name = "linux-raw-sys" -version = "0.4.10" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" +checksum = "09fc20d2ca12cb9f044c93e3bd6d32d523e6e2ec3db4f7b2939cd99026ecd3f0" [[package]] name = "lock_api" @@ -1177,9 +1177,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.19" +version = "0.38.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "745ecfa778e66b2b63c88a61cb36e0eea109e803b0b86bf9879fbc77c70e86ed" +checksum = "0a962918ea88d644592894bc6dc55acc6c0956488adcebbfb6e273506b7fd6e5" dependencies = [ "bitflags 2.4.0", "errno", diff --git a/crates/flux-fhir-analysis/src/wf/mod.rs b/crates/flux-fhir-analysis/src/wf/mod.rs index c40ae4ad30..050f5ae50c 100644 --- a/crates/flux-fhir-analysis/src/wf/mod.rs +++ b/crates/flux-fhir-analysis/src/wf/mod.rs @@ -417,7 +417,7 @@ impl<'a, 'tcx> Wf<'a, 'tcx> { if let fhir::GenericArg::Type(ty) = arg { self.check_ty_is_base(ty)?; } else { - bug!("expected type argument got `{arg:?}`") + bug!("expected type argument got `{arg:?}`"); } } } @@ -498,7 +498,7 @@ impl<'a, 'tcx> Wf<'a, 'tcx> { } let snapshot = self.xi.snapshot(); - if let fhir::Res::Def(_kind, did) = &path.res /*&& !matches!(_kind, DefKind::TyParam) */ && path.args.len() > 0 { + if let fhir::Res::Def(_kind, did) = &path.res /*&& !matches!(_kind, DefKind::TyParam) */ && !path.args.is_empty() { self.check_generic_args(infcx, *did, &path.args)?; } let bindings = self.check_type_bindings(infcx, &path.bindings);