]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #68143 - skinny121:const-param-type-elided-lifetime, r=petrochenkov
authorYuki Okushi <huyuumi.dev@gmail.com>
Tue, 14 Jan 2020 05:02:23 +0000 (14:02 +0900)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2020 05:02:23 +0000 (14:02 +0900)
commitd7e599203c3d3abbc3be486792a76cb89d3fa067
tree897b1ec459167b5022011e2ce5cfeaf3bedc7255
parent7da1dcc3e0eee606b61ac7f7039b39b3332dfb6f
parent82b90bd9938fb56452b8a10bd004ad84a0f81503
Rollup merge of #68143 - skinny121:const-param-type-elided-lifetime, r=petrochenkov

Forbid elided lifetimes within const generic parameter types

Disallows `fn foo<const T: &u32>()`, the lifetime must be explicitly given, i.e. `fn foo<const T: &'static u32>()`.

Fixes #67883
src/librustc_ast_lowering/lib.rs