From 7710d959f46579a04934fb6a50793e380544f24b Mon Sep 17 00:00:00 2001 From: Matthew Jasper Date: Tue, 7 Aug 2018 21:31:43 +0100 Subject: [PATCH] Change "return" to "returning this value" when explaining free regions --- .../borrow_check/nll/region_infer/error_reporting/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs b/src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs index 3a83db3ad6a..f7738f65e40 100644 --- a/src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs +++ b/src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs @@ -42,7 +42,7 @@ impl fmt::Display for ConstraintCategory { // Must end with a space. Allows for empty names to be provided. match self { ConstraintCategory::Assignment => write!(f, "assignment "), - ConstraintCategory::Return => write!(f, "return "), + ConstraintCategory::Return => write!(f, "returning this value "), ConstraintCategory::Cast => write!(f, "cast "), ConstraintCategory::CallArgument => write!(f, "argument "), _ => write!(f, ""),