diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-21 15:06:04 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-21 20:45:19 +0100 |
| commit | e45fdcfa9a611e4b29b727fb1c70ea60423f1c24 (patch) | |
| tree | 6b5e27ed077afd473b35c5c94f86ea072efe9084 /src/librustc | |
| parent | 47e9775a9a529302d963937b558dd6691854e1cd (diff) | |
remove unused unit values (clippy::unused_unit)
Diffstat (limited to 'src/librustc')
| -rw-r--r-- | src/librustc/ty/query/plumbing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/query/plumbing.rs b/src/librustc/ty/query/plumbing.rs index acf67f52dce..3d59fc78211 100644 --- a/src/librustc/ty/query/plumbing.rs +++ b/src/librustc/ty/query/plumbing.rs @@ -692,7 +692,7 @@ impl<'tcx> TyCtxt<'tcx> { /// side-effects -- e.g., in order to report errors for erroneous programs. /// /// Note: The optimization is only available during incr. comp. - pub(super) fn ensure_query<Q: QueryDescription<'tcx> + 'tcx>(self, key: Q::Key) -> () { + pub(super) fn ensure_query<Q: QueryDescription<'tcx> + 'tcx>(self, key: Q::Key) { if Q::EVAL_ALWAYS { let _ = self.get_query::<Q>(DUMMY_SP, key); return; |
