diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-03 21:29:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-03 21:29:42 +0100 |
| commit | 7c932d9940d412f8b605254833994621468caf1b (patch) | |
| tree | e4f3f5bd820c95b17af659a3d8baac05bbbb98c7 /compiler/rustc_codegen_gcc/src/errors.rs | |
| parent | 892b0fd787028371578f7ab5bad9e8e161dfeac3 (diff) | |
| parent | 5906237b32a83a1df215b87bbafcc926bf49cd66 (diff) | |
| download | rust-7c932d9940d412f8b605254833994621468caf1b.tar.gz rust-7c932d9940d412f8b605254833994621468caf1b.zip | |
Rollup merge of #120570 - fmease:change-ty-to-ct-param-sugg, r=compiler-errors
Suggest changing type to const parameters if we encounter a type in the trait bound position The first commit is just drive-by cleanup. Provide a structured suggestion if the user forgot to prefix a “const parameter” with `const`, e.g., in `struct Tagged<TAG: u64>;`. This happens to me from time to time. Maybe C++ devs are also prone to this mistake given template syntax looks like `template<typename T, uint32_t N>`.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
