diff options
| author | Jeremy Stucki <jeremy@myelin.ch> | 2019-06-21 18:51:27 +0200 |
|---|---|---|
| committer | Jeremy Stucki <stucki.jeremy@gmail.com> | 2019-07-03 10:01:01 +0200 |
| commit | 6ae80cf23f744566f2822861291abcfcdc6af5ce (patch) | |
| tree | 5b36d5eb40c99ee9892b05e6c94e367d3f4d9302 /src/librustc_codegen_ssa/debuginfo | |
| parent | 0477e072723438054ef8628ec33223cf94bacb69 (diff) | |
| download | rust-6ae80cf23f744566f2822861291abcfcdc6af5ce.tar.gz rust-6ae80cf23f744566f2822861291abcfcdc6af5ce.zip | |
Remove needless lifetimes
Diffstat (limited to 'src/librustc_codegen_ssa/debuginfo')
| -rw-r--r-- | src/librustc_codegen_ssa/debuginfo/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_ssa/debuginfo/mod.rs b/src/librustc_codegen_ssa/debuginfo/mod.rs index d60a2e0cb13..c9b1c0260e8 100644 --- a/src/librustc_codegen_ssa/debuginfo/mod.rs +++ b/src/librustc_codegen_ssa/debuginfo/mod.rs @@ -10,7 +10,7 @@ pub enum FunctionDebugContext<D> { } impl<D> FunctionDebugContext<D> { - pub fn get_ref<'a>(&'a self, span: Span) -> &'a FunctionDebugContextData<D> { + pub fn get_ref(&self, span: Span) -> &FunctionDebugContextData<D> { match *self { FunctionDebugContext::RegularContext(ref data) => data, FunctionDebugContext::DebugInfoDisabled => { |
