-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overloaded-box
protocol changes
#22086
Commits on Mar 12, 2015
-
Replace
exchange_malloc
/exchange_free
demo with something unrelat……ed to Box. Precursor for landing overloaded-`box`, since that will decouple the `box` syntax from the exchange heap (and in fact will eliminate the use of the two aforementioned lang items). Instead, the new demonstration program shows a definition of the `str_eq` lang item. (We do not have that many procedural lang-items to choose from, which is a good sign for our efforts to decouple the compiler from the runtime!) (This previously used a demo of `panic_bounds_check`, but a `str_eq` demonstration is both easier to code and arguably a more interesting aspect of the language to discuss.) Fix unsafe.md example.
Configuration menu - View commit details
-
Copy full SHA for 02bbef0 - Browse repository at this point
Copy the full SHA 02bbef0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2f09a1 - Browse repository at this point
Copy the full SHA f2f09a1View commit details -
Switched from
box
toBox::new
where necessary for overloaded-box.See also issue 22405, which tracks going back to `box <expr>` if possible in the future. Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
Configuration menu - View commit details
-
Copy full SHA for 7645a2d - Browse repository at this point
Copy the full SHA 7645a2dView commit details -
parser: switch from
box (<place>) <expr>
form to `in <place> { <blo……ck> }`. Note that `box <expr>` itself remains unchanged.
Configuration menu - View commit details
-
Copy full SHA for cbf9303 - Browse repository at this point
Copy the full SHA cbf9303View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0be597d - Browse repository at this point
Copy the full SHA 0be597dView commit details -
Add feature-gates for desugaring-based
box
and placement-in
.update test/compile-fail/feature-gate-box-expr.rs to reflect new feature gates. Part of what lands with Issue 22181.
Configuration menu - View commit details
-
Copy full SHA for 467345b - Browse repository at this point
Copy the full SHA 467345bView commit details -
Accommodate error message explosion from box-desugaring in some tests.
See discussion on Issue 22231.
Configuration menu - View commit details
-
Copy full SHA for 4a7df22 - Browse repository at this point
Copy the full SHA 4a7df22View commit details -
Update tests for desugaring box and placement-in.
Namely: * Update run-pass/new-box-syntax * Fix doc-embedded test for `alloc::boxed` to reflect new syntax. * Fix test/debuginfo/box.rs to reflect new syntax. Part of what lands with Issue 22181.
Configuration menu - View commit details
-
Copy full SHA for 056e581 - Browse repository at this point
Copy the full SHA 056e581View commit details -
Issue 22450: Address desugaring-box problems in [pretty] run-pass tes…
…t suite. Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
Configuration menu - View commit details
-
Copy full SHA for 2d44712 - Browse repository at this point
Copy the full SHA 2d44712View commit details -
Workaround issue 22462 by moving static
value
into its own module.Precursor for overloaded-`box` and placement-`in`; see Issue 22181.
Configuration menu - View commit details
-
Copy full SHA for a0e3c71 - Browse repository at this point
Copy the full SHA a0e3c71View commit details