about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-06-04 00:42:50 +0200
committerGitHub <noreply@github.com>2022-06-04 00:42:50 +0200
commit401be78f2c6fa3ded6b529765ccfe160636a6285 (patch)
treefd855a26f4fa61c8b044addfd9890c6473a8078c /compiler/rustc_codegen_llvm/src/builder.rs
parente33c6edfc04d0ba5f4e0d996100263ee9d2fef79 (diff)
parentcd03fe18d8a24434c1510d08c88231fbe9d6b8bf (diff)
downloadrust-401be78f2c6fa3ded6b529765ccfe160636a6285.tar.gz
rust-401be78f2c6fa3ded6b529765ccfe160636a6285.zip
Rollup merge of #97656 - EdwinRy:error_ast_low_type_contraint_parentheses, r=cjgillot
Add a suggestion to replace parentheses with angle brackets on associated trait constraint

This implements a requested suggestion FIXME in [`compiler/rustc_ast_lowering/src/lib.rs` ](https://github.com/rust-lang/rust/blob/9598b4b594c97dff66feb93522e22db500deea07/compiler/rustc_ast_lowering/src/lib.rs#L921)

The suggestion asks for the parentheses to either be replaced with angle brackets or removed completely depending on whether there are arguments provided within.

![image](https://user-images.githubusercontent.com/20026256/171770414-ab60bfe2-ae27-44b0-964d-9ffcc32a7475.png)

![image](https://user-images.githubusercontent.com/20026256/171770383-ca8a2766-b3aa-43e3-8ba4-ae18874886ce.png)

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions