diff options
| author | bors <bors@rust-lang.org> | 2018-07-30 10:19:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-30 10:19:38 +0000 |
| commit | e4378412ecfc2a4ff5dfd65fef53fa6be691f689 (patch) | |
| tree | 2da55959070dea0d160b61dc09c276593434b767 /src/librustc_save_analysis | |
| parent | 5ed2b5120bd875a7eb9fd8545d86eb1de1e41bce (diff) | |
| parent | 18d5f821480803811f3f7ef866ef0ef8ae9bf9c1 (diff) | |
| download | rust-e4378412ecfc2a4ff5dfd65fef53fa6be691f689.tar.gz rust-e4378412ecfc2a4ff5dfd65fef53fa6be691f689.zip | |
Auto merge of #52830 - matthewjasper:bootstrap-prep, r=matthewjasper
[NLL] Fix some things for bootstrap Some changes that are required when bootstrapping rustc with NLL enabled. * Remove a bunch of unused `mut`s that aren't needed, but the existing lint doesn't catch. * Rewrite a function call to satisfy NLL borrowck. Note that the borrow is two-phase, but gets activated immediately by an unsizing coercion. cc #51823
Diffstat (limited to 'src/librustc_save_analysis')
| -rw-r--r-- | src/librustc_save_analysis/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_save_analysis/lib.rs b/src/librustc_save_analysis/lib.rs index a250d4a3598..761521c8807 100644 --- a/src/librustc_save_analysis/lib.rs +++ b/src/librustc_save_analysis/lib.rs @@ -423,7 +423,7 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> { let mut qualname = String::from("<"); qualname.push_str(&self.tcx.hir.node_to_pretty_string(ty.id)); - let mut trait_id = self.tcx.trait_id_of_impl(impl_id); + let trait_id = self.tcx.trait_id_of_impl(impl_id); let mut decl_id = None; let mut docs = String::new(); let mut attrs = vec![]; |
