about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-06-19 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-07-06 17:47:15 +0200
commit9792179648abb7bf38a9e54191cfe5a25436b8fb (patch)
tree1e55d94d27551aa592b344dbf6093f93a0ced949 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentd7901f37bb74ee677ff939c324d49a9a0a5b4aca (diff)
downloadrust-9792179648abb7bf38a9e54191cfe5a25436b8fb.tar.gz
rust-9792179648abb7bf38a9e54191cfe5a25436b8fb.zip
Add flag to configure `large_assignments` lint
The `large_assignments` lints detects moves over specified limit.  The
limit is configured through `move_size_limit = "N"` attribute placed at
the root of a crate. When attribute is absent, the lint is disabled.

Make it possible to enable the lint without making any changes to the
source code, through a new flag `-Zmove-size-limit=N`.  For example, to
detect moves exceeding 1023 bytes in a cargo crate, including all
dependencies one could use:

```
$ env RUSTFLAGS=-Zmove-size-limit=1024 cargo build -vv
```
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions