diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-04-05 13:48:26 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-04-09 12:12:55 +0200 |
| commit | 291c75d10b734d7b118c7232157eefdc342c4144 (patch) | |
| tree | 78861fc2508fc9d5cec08dc29a5005f416f2c079 /src/optimize/stack2reg.rs | |
| parent | fd3be6d4920a2aef5db17f0e4abc90dcf1e14f2d (diff) | |
Enable the rust_2018_idioms and unused_lifetimes lints and fix all warnings
They are set to deny by default in the rust-lang/rust repo
Diffstat (limited to 'src/optimize/stack2reg.rs')
| -rw-r--r-- | src/optimize/stack2reg.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/optimize/stack2reg.rs b/src/optimize/stack2reg.rs index b21f838111c..7673c085cee 100644 --- a/src/optimize/stack2reg.rs +++ b/src/optimize/stack2reg.rs @@ -24,7 +24,7 @@ use crate::prelude::*; struct OrdStackSlot(StackSlot); impl fmt::Debug for OrdStackSlot { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{:?}", self.0) } } @@ -282,7 +282,7 @@ fn combine_stack_addr_with_load_store(func: &mut Function) { } } -fn remove_unused_stack_addr_and_stack_load(opt_ctx: &mut OptimizeContext) { +fn remove_unused_stack_addr_and_stack_load(opt_ctx: &mut OptimizeContext<'_>) { // FIXME incrementally rebuild on each call? let mut stack_addr_load_insts_users = HashMap::<Inst, HashSet<Inst>>::new(); |
