]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #12286 - harpsword:fix_generate_constant, r=Veykril
authorbors <bors@rust-lang.org>
Mon, 18 Jul 2022 10:24:53 +0000 (10:24 +0000)
committerbors <bors@rust-lang.org>
Mon, 18 Jul 2022 10:24:53 +0000 (10:24 +0000)
fix: “Generate constant” ignores the path prefix of the identifier

fix #12022

add abilities to generate constant with prefix path, even these mods in path are not exist.

## some examples

https://user-images.githubusercontent.com/10148927/168710096-59d5c594-0e4a-4ba7-bfb3-21c4b99409ea.mov

https://user-images.githubusercontent.com/10148927/168710111-cd6d3df4-58eb-4358-ae9e-791bfc408efa.mov

https://user-images.githubusercontent.com/10148927/168710115-601923b7-2164-4b9a-85a9-fbb4b29796a1.mov

https://user-images.githubusercontent.com/10148927/168710118-3d4bc9c1-758b-4e6f-9709-568fa920937d.mov


Trivial merge