diff --git a/.gitmodules b/.gitmodules index 8617643a12029..58320664c1627 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,7 +4,7 @@ shallow = true [submodule "src/tools/cargo"] path = src/tools/cargo - url = https://github.com/rust-lang/cargo.git + url = https://github.com/lqd/cargo.git shallow = true [submodule "src/doc/reference"] path = src/doc/reference diff --git a/compiler/rustc_const_eval/src/interpret/intern.rs b/compiler/rustc_const_eval/src/interpret/intern.rs index 5d510a9835264..258aac416a9b6 100644 --- a/compiler/rustc_const_eval/src/interpret/intern.rs +++ b/compiler/rustc_const_eval/src/interpret/intern.rs @@ -106,7 +106,7 @@ fn intern_shallow<'tcx, M: CompileTimeMachine<'tcx>>( alloc_id: AllocId, mutability: Mutability, disambiguator: Option<&mut DisambiguatorState>, -) -> Result + 'tcx, InternError> { +) -> Result + 'tcx + use<'tcx, M>, InternError> { trace!("intern_shallow {:?}", alloc_id); // remove allocation // FIXME(#120456) - is `swap_remove` correct? diff --git a/compiler/rustc_expand/src/expand.rs b/compiler/rustc_expand/src/expand.rs index 276490bc0c9d5..d69933b574b55 100644 --- a/compiler/rustc_expand/src/expand.rs +++ b/compiler/rustc_expand/src/expand.rs @@ -1954,7 +1954,7 @@ fn build_single_delegations<'a, Node: InvocationCollectorNode>( suffixes: &'a [(Ident, Option)], item_span: Span, from_glob: bool, -) -> impl Iterator> + 'a { +) -> impl Iterator> + 'a + use<'a, Node> { if suffixes.is_empty() { // Report an error for now, to avoid keeping stem for resolution and // stability checks. diff --git a/compiler/rustc_infer/src/infer/outlives/for_liveness.rs b/compiler/rustc_infer/src/infer/outlives/for_liveness.rs index 2a4b9776f68cb..0baafd4cc5eba 100644 --- a/compiler/rustc_infer/src/infer/outlives/for_liveness.rs +++ b/compiler/rustc_infer/src/infer/outlives/for_liveness.rs @@ -85,11 +85,11 @@ where // alias. if outlives_bounds.contains(&tcx.lifetimes.re_static) { // no - } else if let Some(r) = outlives_bounds.first() - && outlives_bounds[1..].iter().all(|other_r| other_r == r) - { - assert!(r.type_flags().intersects(ty::TypeFlags::HAS_FREE_REGIONS)); - r.visit_with(self); + // } else if let Some(r) = outlives_bounds.first() + // && outlives_bounds[1..].iter().all(|other_r| other_r == r) + // { + // assert!(r.type_flags().intersects(ty::TypeFlags::HAS_FREE_REGIONS)); + // r.visit_with(self); } else { // Skip lifetime parameters that are not captured, since they do // not need to be live. diff --git a/src/tools/cargo b/src/tools/cargo index 367fd9f213750..0c861c39adcc8 160000 --- a/src/tools/cargo +++ b/src/tools/cargo @@ -1 +1 @@ -Subproject commit 367fd9f213750cd40317803dd0a5a3ce3f0c676d +Subproject commit 0c861c39adcc824fa0cd7ce8c8797501b2266441 diff --git a/src/tools/rust-analyzer/crates/ide-assists/src/handlers/extract_function.rs b/src/tools/rust-analyzer/crates/ide-assists/src/handlers/extract_function.rs index 9a9adf26a6df2..8be03483c3804 100644 --- a/src/tools/rust-analyzer/crates/ide-assists/src/handlers/extract_function.rs +++ b/src/tools/rust-analyzer/crates/ide-assists/src/handlers/extract_function.rs @@ -1001,7 +1001,7 @@ impl FunctionBody { &self, ctx: &'a AssistContext<'_>, parent: &SyntaxNode, - ) -> impl Iterator + 'a { + ) -> impl Iterator + 'a + use<'a> { let parent = parent.clone(); let range = self.text_range(); locals_defined_in_body(&ctx.sema, self)