Revert "Fix E0502 warnings"

This reverts commit 98dbce4fe4.

The compiler no longer emits the warnings in #2982 with the original
code.
This commit is contained in:
Michael Wright
2018-08-26 11:18:44 +02:00
parent 296b79bdb8
commit 95fedd2273
2 changed files with 3 additions and 7 deletions

View File

@@ -375,11 +375,9 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
reg.register_late_lint_pass(box large_enum_variant::LargeEnumVariant::new(conf.enum_variant_size_threshold));
reg.register_late_lint_pass(box explicit_write::Pass);
reg.register_late_lint_pass(box needless_pass_by_value::NeedlessPassByValue);
let target = &reg.sess.target;
reg.register_late_lint_pass(box trivially_copy_pass_by_ref::TriviallyCopyPassByRef::new(
conf.trivial_copy_size_limit,
target,
&reg.sess.target,
));
reg.register_early_lint_pass(box literal_representation::LiteralDigitGrouping);
reg.register_early_lint_pass(box literal_representation::LiteralRepresentation::new(