]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
compiler/rustc_ast_lowering/src/item.rs
compiler/rustc_ast_lowering/src/lib.rs