]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #106064 - lukas-code:outlives-macro, r=cjgillot
authorMichael Goulet <michael@errs.io>
Tue, 27 Dec 2022 20:33:35 +0000 (12:33 -0800)
committerGitHub <noreply@github.com>
Tue, 27 Dec 2022 20:33:35 +0000 (12:33 -0800)
commit18bf19c3a944bf109085a2741706f10ed53435b2
tree6f039b373263bf6c8055d219d2235b2398397eca
parent3fba7b452381f6f807dab4f5970a4b67957c0564
parent1eba6c404fa3e64607fc3826214bd61ae10fa5bb
Rollup merge of #106064 - lukas-code:outlives-macro, r=cjgillot

Partially fix `explicit_outlives_requirements` lint in macros

Show the suggestion if and only if the bounds are from the same source context.

fixes https://github.com/rust-lang/rust/issues/106044
fixes https://github.com/rust-lang/rust/issues/106063
compiler/rustc_ast_lowering/src/item.rs
compiler/rustc_ast_lowering/src/lib.rs