about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-11-02 10:50:08 +0000
committerbors <bors@rust-lang.org>2022-11-02 10:50:08 +0000
commitaf1f48deab88565acf1eb7f3292af79744178d7e (patch)
treeb581f6c1c36ed989369a519ebb9f069422caa217 /compiler/rustc_codegen_gcc/example/std_example.rs
parent12ced8f9dbe800824a03ab7502c908c2167b7e9b (diff)
parent691ce306df39b4c99f7f5b2a366b603532a3b063 (diff)
downloadrust-af1f48deab88565acf1eb7f3292af79744178d7e.tar.gz
rust-af1f48deab88565acf1eb7f3292af79744178d7e.zip
Auto merge of #13359 - feniljain:feat-must-use-option, r=Veykril
feat: add config for inserting must_use in `generate_enum_as_method`

Should fix #13312

Didn't add a test because I was not sure on how to add test for a specific configuration option, tried to look for the usages for other `AssistConfig` variants but couldn't find any in `tests`. If there is a way to test this, do point me towards it.

I tried to extract the formatting string as a common `template_string` and only have if-else for that, but it didn't compile :(

Also it seems these tests are failing:

```
test config::tests::generate_config_documentation ... FAILED
test config::tests::generate_package_json_config ... FAILED
```

Can you also point me to how to correct these 😅  ( I guess there is some command to automatically generate these? )
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions