librustc_codegen_llvm: deny(elided_lifetimes_in_paths)

This commit is contained in:
Mazdak Farrokhzad 2019-02-25 08:40:18 +01:00
parent c1911babed
commit 9661a81968
22 changed files with 73 additions and 69 deletions

View file

@ -13,7 +13,7 @@ use rustc_codegen_ssa::traits::*;
use syntax_pos::Span;
pub fn is_node_local_to_unit(cx: &CodegenCx, def_id: DefId) -> bool
pub fn is_node_local_to_unit(cx: &CodegenCx<'_, '_>, def_id: DefId) -> bool
{
// The is_local_to_unit flag indicates whether a function is local to the
// current compilation unit (i.e., if it is *static* in the C-sense). The
@ -37,7 +37,7 @@ pub fn create_DIArray(
}
/// Returns syntax_pos::Loc corresponding to the beginning of the span
pub fn span_start(cx: &CodegenCx, span: Span) -> syntax_pos::Loc {
pub fn span_start(cx: &CodegenCx<'_, '_>, span: Span) -> syntax_pos::Loc {
cx.sess().source_map().lookup_char_pos(span.lo())
}