]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #83519 - oli-obk:assign_shrink_your_normal_code, r=pnkfelix
authorYuki Okushi <jtitor@2k36.org>
Sat, 24 Apr 2021 16:53:09 +0000 (01:53 +0900)
committerGitHub <noreply@github.com>
Sat, 24 Apr 2021 16:53:09 +0000 (01:53 +0900)
commite109aa3613f89bd0a440a9a947c405dcfcc0dc28
treea4237478e457db439be3266731b627530b55a51e
parente11a9fa52a3f372dadd6db3d3f2ed7dc2621dcc4
parent85b1c67910dbeede8aabb16bc0c1c09a2fefe8ab
Rollup merge of #83519 - oli-obk:assign_shrink_your_normal_code, r=pnkfelix

Implement a lint that highlights all moves larger than a configured limit

Tracking issue: #83518
[MCP 420](https://github.com/rust-lang/compiler-team/issues/420) still ~blazing~ in progress

r? ```@pnkfelix```

The main open issue I see with this minimal impl of the feature is that the lint is immediately "stable" (so it can be named on stable), even if it is never executed on stable. I don't think we have the concept of unstable lint names or hiding lint names without an active feature gate, so that would be a bigger change.
compiler/rustc_span/src/symbol.rs