Skip to content

Commit 7710d95

Browse files
committed
Change "return" to "returning this value" when explaining free regions
1 parent 74ce76a commit 7710d95

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/borrow_check/nll/region_infer/error_reporting

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/nll/region_infer/error_reporting/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl fmt::Display for ConstraintCategory {
4242
// Must end with a space. Allows for empty names to be provided.
4343
match self {
4444
ConstraintCategory::Assignment => write!(f, "assignment "),
45-
ConstraintCategory::Return => write!(f, "return "),
45+
ConstraintCategory::Return => write!(f, "returning this value "),
4646
ConstraintCategory::Cast => write!(f, "cast "),
4747
ConstraintCategory::CallArgument => write!(f, "argument "),
4848
_ => write!(f, ""),

0 commit comments

Comments
 (0)