about summary refs log tree commit diff
path: root/compiler/rustc_middle
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-07-08 02:02:08 +0000
committerMichael Goulet <michael@errs.io>2022-07-15 03:17:20 +0000
commit78efaf43e4e9ef8864faa3da3a4fe1bd5c45dce1 (patch)
tree04b99d2af79eefaae4acf5fcb57e6737d62328cf /compiler/rustc_middle
parent27b6ab912976e5345769e9ac62831974e4a4579f (diff)
downloadrust-78efaf43e4e9ef8864faa3da3a4fe1bd5c45dce1.tar.gz
rust-78efaf43e4e9ef8864faa3da3a4fe1bd5c45dce1.zip
remove tcx from ObligationCauseCode::span
Diffstat (limited to 'compiler/rustc_middle')
-rw-r--r--compiler/rustc_middle/src/traits/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/traits/mod.rs b/compiler/rustc_middle/src/traits/mod.rs
index 72d68903874..d8cc7d3feb0 100644
--- a/compiler/rustc_middle/src/traits/mod.rs
+++ b/compiler/rustc_middle/src/traits/mod.rs
@@ -139,7 +139,7 @@ impl<'tcx> ObligationCause<'tcx> {
         ObligationCause { span, body_id: hir::CRATE_HIR_ID, code: Default::default() }
     }
 
-    pub fn span(&self, _tcx: TyCtxt<'tcx>) -> Span {
+    pub fn span(&self) -> Span {
         match *self.code() {
             ObligationCauseCode::MatchExpressionArm(box MatchExpressionArmCause {
                 arm_span,