]> git.lizzy.rs Git - rust.git/commit
Only apply `ProceduralMasquerade` hack to older versions of `rental`
authorAaron Hill <aa1ronham@gmail.com>
Wed, 16 Feb 2022 19:48:39 +0000 (14:48 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Sat, 22 Oct 2022 02:36:00 +0000 (21:36 -0500)
commit10dad22b6669defeee296a91b2e2c92f8fd46e43
tree1acd8dfdd452091c3859419e2112f56a63dcd10a
parent5c8bff74bc1c52bef0c79f3689bb227f51f3e82d
Only apply `ProceduralMasquerade` hack to older versions of `rental`

The latest version of `rental` (v0.5.6) contains a fix that allows it to
compile without relying on the pretty-print back-compat hack.

Hopefully, there are no longer any crates relying on the affected
versions of the (much less popular) `procedural-masquerade` crate. This
should allow us to target the pretty-print back-compat hack specifically
to older versions of `rental`, and specifically mention upgrading to
`rental` v0.5.6 in the lint message.
12 files changed:
compiler/rustc_expand/src/base.rs
src/test/ui/proc-macro/issue-73933-procedural-masquerade.rs
src/test/ui/proc-macro/issue-73933-procedural-masquerade.stderr [deleted file]
src/test/ui/proc-macro/issue-73933-procedural-masquerade.stdout
src/test/ui/proc-macro/pretty-print-hack-hide.rs [new file with mode: 0644]
src/test/ui/proc-macro/pretty-print-hack-hide.stdout [new file with mode: 0644]
src/test/ui/proc-macro/pretty-print-hack-show.rs [new file with mode: 0644]
src/test/ui/proc-macro/pretty-print-hack-show.stderr [new file with mode: 0644]
src/test/ui/proc-macro/pretty-print-hack-show.stdout [new file with mode: 0644]
src/test/ui/proc-macro/pretty-print-hack/allsorts-rental-0.5.6/src/lib.rs [new file with mode: 0644]
src/test/ui/proc-macro/pretty-print-hack/rental-0.5.5/src/lib.rs [new file with mode: 0644]
src/test/ui/proc-macro/pretty-print-hack/rental-0.5.6/src/lib.rs [new file with mode: 0644]