about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src/session_diagnostics.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-19 16:06:43 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-10-20 21:10:38 +0000
commit60956837cfbf22bd8edd80f57a856e141f7deb8c (patch)
tree4cc50671566d7fb411d8e933348d6785d6bc55cc /compiler/rustc_borrowck/src/session_diagnostics.rs
parent96027d945b9d8cae622a2fa4e70d8040be2964f3 (diff)
downloadrust-60956837cfbf22bd8edd80f57a856e141f7deb8c.tar.gz
rust-60956837cfbf22bd8edd80f57a856e141f7deb8c.zip
s/Generator/Coroutine/
Diffstat (limited to 'compiler/rustc_borrowck/src/session_diagnostics.rs')
-rw-r--r--compiler/rustc_borrowck/src/session_diagnostics.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/compiler/rustc_borrowck/src/session_diagnostics.rs b/compiler/rustc_borrowck/src/session_diagnostics.rs
index ca3ccf439f2..31502b336d4 100644
--- a/compiler/rustc_borrowck/src/session_diagnostics.rs
+++ b/compiler/rustc_borrowck/src/session_diagnostics.rs
@@ -140,22 +140,22 @@ pub(crate) enum RequireStaticErr {
 #[derive(Subdiagnostic)]
 pub(crate) enum CaptureVarPathUseCause {
     #[label(borrowck_borrow_due_to_use_generator)]
-    BorrowInGenerator {
+    BorrowInCoroutine {
         #[primary_span]
         path_span: Span,
     },
     #[label(borrowck_use_due_to_use_generator)]
-    UseInGenerator {
+    UseInCoroutine {
         #[primary_span]
         path_span: Span,
     },
     #[label(borrowck_assign_due_to_use_generator)]
-    AssignInGenerator {
+    AssignInCoroutine {
         #[primary_span]
         path_span: Span,
     },
     #[label(borrowck_assign_part_due_to_use_generator)]
-    AssignPartInGenerator {
+    AssignPartInCoroutine {
         #[primary_span]
         path_span: Span,
     },
@@ -203,7 +203,7 @@ pub(crate) enum CaptureVarKind {
 #[derive(Subdiagnostic)]
 pub(crate) enum CaptureVarCause {
     #[label(borrowck_var_borrow_by_use_place_in_generator)]
-    BorrowUsePlaceGenerator {
+    BorrowUsePlaceCoroutine {
         is_single_var: bool,
         place: String,
         #[primary_span]
@@ -217,7 +217,7 @@ pub(crate) enum CaptureVarCause {
         var_span: Span,
     },
     #[label(borrowck_var_borrow_by_use_in_generator)]
-    BorrowUseInGenerator {
+    BorrowUseInCoroutine {
         #[primary_span]
         var_span: Span,
     },
@@ -227,7 +227,7 @@ pub(crate) enum CaptureVarCause {
         var_span: Span,
     },
     #[label(borrowck_var_move_by_use_in_generator)]
-    MoveUseInGenerator {
+    MoveUseInCoroutine {
         #[primary_span]
         var_span: Span,
     },
@@ -237,7 +237,7 @@ pub(crate) enum CaptureVarCause {
         var_span: Span,
     },
     #[label(borrowck_var_first_borrow_by_use_place_in_generator)]
-    FirstBorrowUsePlaceGenerator {
+    FirstBorrowUsePlaceCoroutine {
         place: String,
         #[primary_span]
         var_span: Span,
@@ -249,7 +249,7 @@ pub(crate) enum CaptureVarCause {
         var_span: Span,
     },
     #[label(borrowck_var_second_borrow_by_use_place_in_generator)]
-    SecondBorrowUsePlaceGenerator {
+    SecondBorrowUsePlaceCoroutine {
         place: String,
         #[primary_span]
         var_span: Span,
@@ -267,7 +267,7 @@ pub(crate) enum CaptureVarCause {
         var_span: Span,
     },
     #[label(borrowck_partial_var_move_by_use_in_generator)]
-    PartialMoveUseInGenerator {
+    PartialMoveUseInCoroutine {
         #[primary_span]
         var_span: Span,
         is_partial: bool,