From: bors Date: Mon, 18 Jul 2022 10:24:53 +0000 (+0000) Subject: Auto merge of #12286 - harpsword:fix_generate_constant, r=Veykril X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8e379cec62b63d4e61a8f0b062e8be3ebfcd4a4b;p=rust.git Auto merge of #12286 - harpsword:fix_generate_constant, r=Veykril 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 --- 8e379cec62b63d4e61a8f0b062e8be3ebfcd4a4b