rust/compiler/rustc_borrowck/src
Matthias Krüger 4d6f74b450
Rollup merge of #128049 - compiler-errors:E0626, r=petrochenkov
Reword E0626 to mention static coroutine, add structured suggestion for adding `static`

Not certain how to make the example feel less artificial. 🤷

My main point though is that we should probably emphasize that the first solution to making a coroutine allow a borrow across an await is making it `static`.

Also adds a structured suggestion.
2024-07-23 13:06:55 +02:00
..
constraints Add description for why this PR was made 2024-07-01 11:52:38 +02:00
diagnostics Move all error reporting into rustc_trait_selection 2024-07-21 22:34:35 -04:00
polonius Support tail calls in mir via TerminatorKind::TailCall 2024-07-07 17:11:04 +02:00
region_infer Move all error reporting into rustc_trait_selection 2024-07-21 22:34:35 -04:00
type_check Move all error reporting into rustc_trait_selection 2024-07-21 22:34:35 -04:00
util Move some utils out of rustc_const_eval 2023-04-16 12:05:54 +02:00
borrow_set.rs Remove confusing use_polonius flag and do less cloning 2024-06-05 10:57:27 +02:00
borrowck_errors.rs Explain that coroutine can be marked static 2024-07-21 22:32:29 -04:00
consumers.rs BorrowckInferCtxt: infcx by value 2024-05-06 15:20:13 +00:00
dataflow.rs Stop using the gen keyword in the compiler 2024-07-14 14:01:01 -04:00
def_use.rs Remove extern crate rustc_middle from numerous crates. 2024-04-29 14:50:45 +10:00
facts.rs Remove usage of specialization from rustc_borrowck 2024-06-30 16:42:53 +00:00
lib.rs Revert accidental comment deletion 2024-07-11 22:38:34 +02:00
location.rs Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
member_constraints.rs Invert diagnostic lints. 2024-02-06 13:12:33 +11:00
nll.rs Restrict diagnostic context lifetime of mir borrowck to InferCtxt instead of TyCtxt 2024-06-26 16:01:44 +00:00
path_utils.rs remove a bunch of dead parameters in fn 2024-02-12 09:51:35 +08:00
place_ext.rs Move trait into attr so it's greppable 2024-02-16 15:07:37 +00:00
places_conflict.rs Remove extern crate rustc_middle from numerous crates. 2024-04-29 14:50:45 +10:00
prefixes.rs Separate the mir body lifetime from the other lifetimes 2024-06-24 14:28:14 +00:00
renumber.rs MIR visitor: constant -> const_operand 2024-06-13 15:37:13 +02:00
session_diagnostics.rs Prevent opaque types being instantiated twice with different regions within the same function 2024-03-18 10:26:10 +00:00
universal_regions.rs Stop proving outlives constraints on regions we already reported errors on 2024-05-29 09:27:07 +00:00
used_muts.rs Rename 'cx to 'infcx 2024-06-27 09:07:57 +00:00