]> git.lizzy.rs Git - rust.git/commit
make bounds on higher-kinded lifetimes a hard error in ast_validation
authorRalf Jung <post@ralfj.de>
Tue, 6 Mar 2018 10:22:24 +0000 (11:22 +0100)
committerRalf Jung <post@ralfj.de>
Tue, 6 Mar 2018 10:29:48 +0000 (11:29 +0100)
commit49abd8748357012e5db10bf11077384f727e2177
tree21efac585e6effe851d9b05497d0aca78bb22f5d
parent30b5be0e9530a4de106b581074c3707e6a938329
make bounds on higher-kinded lifetimes a hard error in ast_validation

Also move the check for not having type parameters into ast_validation.

I was not sure what to do with compile-fail/issue-23046.rs: The issue looks like
maybe the bounds actually played a role in triggering the ICE, but that seems
unlikely given that the compiler seems to entirely ignore them.  However, I
couldn't find a testcase without the bounds, so I figured the best I could do is
to just remove the bounds and make sure at least that keeps working.
src/librustc_lint/builtin.rs
src/librustc_passes/ast_validation.rs
src/libsyntax/parse/parser.rs
src/test/compile-fail/bounds-lifetime.rs [new file with mode: 0644]
src/test/compile-fail/issue-23046.rs
src/test/compile-fail/private-in-public-warn.rs
src/test/parse-fail/bounds-lifetime.rs
src/test/parse-fail/bounds-type.rs
src/test/run-pass/impl-trait/lifetimes.rs
src/test/ui/param-bounds-ignored.rs
src/test/ui/param-bounds-ignored.stderr