rust/src
bors 9bbbf60b04 Auto merge of #95977 - FabianWolff:issue-92790-dead-tuple, r=estebank
Warn about dead tuple struct fields

Continuation of #92972. Fixes #92790.

The language team has already commented on this in https://github.com/rust-lang/rust/pull/92972#issuecomment-1021511970; I have incorporated their requests here. Specifically, there is now a new allow-by-default `unused_tuple_struct_fields` lint (name bikesheddable), and fields of unit type are ignored (https://github.com/rust-lang/rust/pull/92972#issuecomment-1021815408), so error messages look like this:
```
error: field is never read: `1`
  --> $DIR/tuple-struct-field.rs:6:21
   |
LL | struct Wrapper(i32, [u8; LEN], String);
   |                     ^^^^^^^^^
   |
help: change the field to unit type to suppress this warning while preserving the field numbering
   |
LL | struct Wrapper(i32, (), String);
   |                     ~~
```
r? `@joshtriplett`
2022-08-05 09:32:26 +00:00
..
bootstrap Auto merge of #100123 - matthiaskrgr:rollup-aylwvyc, r=matthiaskrgr 2022-08-04 01:10:08 +00:00
ci Auto merge of #95026 - cuviper:bump-linux-min, r=Mark-Simulacrum 2022-08-04 23:56:07 +00:00
doc doc: s390x also requires glibc 2.17 2022-08-03 20:34:58 -07:00
etc Htmldocck: Substitute the doc channel when blessing 2022-07-26 17:38:13 +02:00
librustdoc remove Clean trait implementation for hir::TraitRef 2022-08-04 11:43:50 +02:00
llvm-project@8b6b5014fd Update llvm-project 2022-07-05 17:57:29 +02:00
rustdoc-json-types Fix rustdoc JSON inline 2022-07-16 13:39:38 +02:00
test Auto merge of #95977 - FabianWolff:issue-92790-dead-tuple, r=estebank 2022-08-05 09:32:26 +00:00
tools Auto merge of #95977 - FabianWolff:issue-92790-dead-tuple, r=estebank 2022-08-05 09:32:26 +00:00
README.md
stage0.json Bump to latest beta 2022-07-21 01:36:08 +00:00
version bump version to 1.64.0 2022-06-24 17:27:24 +02:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.