diff options
| author | Michael Hewson <michael@michaelhewson.ca> | 2017-12-11 02:27:40 +0100 |
|---|---|---|
| committer | Michael Hewson <michael@michaelhewson.ca> | 2017-12-17 10:13:09 +0100 |
| commit | bff74fbfe2eccc3a1cf2f0e0823cca342e3b9cd1 (patch) | |
| tree | 4589941cf0f2c0988eb5d2f8961ed6abdd0aee48 | |
| parent | e7d1542a52dd04b58058d5d170a7a9b09f528f8c (diff) | |
| download | rust-bff74fbfe2eccc3a1cf2f0e0823cca342e3b9cd1.tar.gz rust-bff74fbfe2eccc3a1cf2f0e0823cca342e3b9cd1.zip | |
shorten lines for tidy
| -rw-r--r-- | src/librustc_typeck/check/wfcheck.rs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/librustc_typeck/check/wfcheck.rs b/src/librustc_typeck/check/wfcheck.rs index 5cb6c6a368e..e65ae6a1b4d 100644 --- a/src/librustc_typeck/check/wfcheck.rs +++ b/src/librustc_typeck/check/wfcheck.rs @@ -539,15 +539,22 @@ impl<'a, 'gcx> CheckTypeWellFormedVisitor<'a, 'gcx> { ExplicitSelf::ByBox => (), ExplicitSelf::ByRawPointer(_) => { - feature_gate::feature_err(&fcx.tcx.sess.parse_sess, "arbitrary_self_types", span, - GateIssue::Language, "raw pointer `self` is unstable") + feature_gate::feature_err( + &fcx.tcx.sess.parse_sess, + "arbitrary_self_types", + span, + GateIssue::Language, + "raw pointer `self` is unstable") .help("consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`") .emit(); } ExplicitSelf::Other => { - feature_gate::feature_err(&fcx.tcx.sess.parse_sess, "arbitrary_self_types", span, - GateIssue::Language, "arbitrary `self` types are unstable") + feature_gate::feature_err( + &fcx.tcx.sess.parse_sess, + "arbitrary_self_types", + span, + GateIssue::Language,"arbitrary `self` types are unstable") .help("consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`") .emit(); } |
