Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9da1da9
Allow optional RET type annotation
cbeuw Mar 20, 2023
9dc275b
Add documentation for `type RET = ...`
cbeuw Mar 20, 2023
e4a4064
adapt tests/codegen/vec-shrink-panik for LLVM 17
krasimirgg Mar 20, 2023
12c1385
Update browser-ui-test version to 0.14.5
GuillaumeGomez Mar 20, 2023
ab1573a
Add GUI test for "Auto-hide item contents for large items" setting
GuillaumeGomez Mar 20, 2023
dfbf610
Set LLVM `LLVM_UNREACHABLE_OPTIMIZE` to `OFF`
ids1024 Mar 20, 2023
7571808
Ignore the vendor directory for tidy tests.
jfgoog Mar 21, 2023
9852980
rustdoc: remove redundant `.content` prefix from span/a colors
notriddle Mar 21, 2023
45b44c7
`HirId` to `LocalDefId` cleanup
lcnr Mar 22, 2023
0882def
review
lcnr Mar 22, 2023
204807d
Remove comment about re-using Rib allocations
Veykril Mar 22, 2023
edd7d4a
More general captures
est31 Mar 22, 2023
1c9ad28
Do not feed param_env for RPITITs impl side
spastorino Mar 22, 2023
56959e5
Rollup merge of #109373 - ids1024:llvm-unreachable-optimize, r=ozkanonur
matthiaskrgr Mar 22, 2023
9545ab8
Rollup merge of #109392 - cbeuw:composite-ret, r=JakobDegen
matthiaskrgr Mar 22, 2023
44942ad
Rollup merge of #109394 - krasimirgg:llvm-17-vec-panic, r=nikic
matthiaskrgr Mar 22, 2023
a7570b0
Rollup merge of #109412 - GuillaumeGomez:add-gui-test, r=notriddle
matthiaskrgr Mar 22, 2023
6673d0a
Rollup merge of #109452 - jfgoog:ignore-vendor, r=ozkanonur
matthiaskrgr Mar 22, 2023
3712bff
Rollup merge of #109457 - Veykril:ribstack, r=petrochenkov
matthiaskrgr Mar 22, 2023
8139f47
Rollup merge of #109461 - notriddle:notriddle/css-content, r=Guillaum…
matthiaskrgr Mar 22, 2023
040001e
Rollup merge of #109477 - lcnr:cleanup, r=cjgillot
matthiaskrgr Mar 22, 2023
9629156
Rollup merge of #109489 - est31:generalize_captures, r=WaffleLapkin
matthiaskrgr Mar 22, 2023
6244b94
Rollup merge of #109494 - spastorino:new-rpitit-18, r=compiler-errors
matthiaskrgr Mar 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add documentation for type RET = ...
  • Loading branch information
cbeuw committed Mar 20, 2023
commit 9dc275bb54ab088ac85a08dc807984afd57a78c7
14 changes: 14 additions & 0 deletions library/core/src/intrinsics/mir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
//!
//! The input to the [`mir!`] macro is:
//!
//! - An optional return type annotation in the form of `type RET = ...;`. This may be required
//! if the compiler cannot infer the type of RET.
//! - A possibly empty list of local declarations. Locals can also be declared inline on
//! assignments via `let`. Type inference generally works. Shadowing does not.
//! - A list of basic blocks. The first of these is the start block and is where execution begins.
Expand Down Expand Up @@ -124,6 +126,18 @@
//! }
//! )
//! }
//!
//! #[custom_mir(dialect = "runtime", phase = "optimized")]
//! fn annotated_return_type() -> (i32, bool) {
//! mir!(
//! type RET = (i32, bool);
//! {
//! RET.0 = 1;
//! RET.1 = true;
//! Return()
//! }
//! )
//! }
//! ```
//!
//! We can also set off compilation failures that happen in sufficiently late stages of the
Expand Down