rust/compiler/rustc_middle/src/mir
Matthias Krüger 87540879f4
Rollup merge of #117835 - Nilstrieb:note-object-lifetime-defaults, r=compiler-errors
Note about object lifetime defaults in does not live long enough error

This is a aspect of Rust that frequently trips up people who are not aware of it yet. This diagnostic attempts to explain what's happening and why the lifetime constraint, that was never mentioned in the source, arose.

The implementation feels a bit questionable, I'm not sure whether there are better ways to do this. There probably are.

fixes #117835

r? types
2023-11-20 20:56:40 +01:00
..
interpret Let Miri see the AllocId for all TyCtxt allocations 2023-11-16 08:30:49 -05:00
basic_blocks.rs Remove deleted docs + better link together MIR traversing docs 2023-09-29 19:16:02 +00:00
consts.rs Turn const_caller_location from a query to a hook 2023-10-31 16:15:18 +00:00
coverage.rs coverage: Explicitly note that counter/expression IDs are function-local 2023-10-18 23:44:36 +11:00
generic_graph.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
generic_graphviz.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
graphviz.rs inline format!() args up to and including rustc_middle 2023-07-30 13:18:33 +02:00
mod.rs Fix def-use check for call terminators 2023-11-14 17:07:34 +01:00
mono.rs Minimize pub usage in source_map.rs. 2023-11-02 19:35:00 +11:00
patch.rs Format all the let chains in compiler 2023-10-13 08:59:36 +00:00
pretty.rs Rollup merge of #117549 - DaniPopes:more-copied, r=b-naber 2023-11-17 23:04:22 +01:00
query.rs Rollup merge of #117835 - Nilstrieb:note-object-lifetime-defaults, r=compiler-errors 2023-11-20 20:56:40 +01:00
spanview.rs Re-format code with new rustfmt 2023-11-15 21:45:48 -05:00
statement.rs rename BorrowKind::Shallow to Fake 2023-11-08 22:55:28 +01:00
syntax.rs interpret: simplify handling of shifts by no longer trying to handle signed and unsigned shift amounts in the same branch 2023-11-12 12:49:46 +01:00
tcx.rs rename BorrowKind::Shallow to Fake 2023-11-08 22:55:28 +01:00
terminator.rs Re-format code with new rustfmt 2023-11-15 21:45:48 -05:00
traversal.rs Remove deleted docs + better link together MIR traversing docs 2023-09-29 19:16:02 +00:00
type_foldable.rs s/Generator/Coroutine/ 2023-10-20 21:10:38 +00:00
visit.rs rename BorrowKind::Shallow to Fake 2023-11-08 22:55:28 +01:00