Skip to content
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

Rolling up PRs in the queue #15025

Merged
merged 25 commits into from
Jun 19, 2014
Merged

Rolling up PRs in the queue #15025

merged 25 commits into from
Jun 19, 2014

Conversation

alexcrichton
Copy link
Member

No description provided.

lilyball and others added 25 commits June 18, 2014 17:01
Define a command :Run to compile and run the current file. This supports
unnamed buffers (by writing to a temporary file). See the comment above
the command definition for notes on usage.

Define <D-r> and <D-R> mappings for :Run to make it easier to invoke in
MacVim.

Define a command :Expand to display the --pretty expanded output for the
current file. This can be configured to use different pretty types. See
the comment above the command definition for notes on usage.

Create an autoload file and put function definitions there to speed up
load time.
The `Bitwise::swap_bytes` method was also moved into the `ByteOrder` trait. This was because it works on the byte level rather than the bit level.
This reduces the complexity of the trait hierarchy.
The consensus on rust-lang#14917 was that the proposed names were too long.
This patch consolidates and cleans up the task spawning APIs:

* Removes the problematic `future_result` method from `std::task::TaskBuilder`,
  and adds a `try_future` that both spawns the task and returns a future
  representing its eventual result (or failure).

* Removes the public `opts` field from `TaskBuilder`, instead adding appropriate
  builder methods to configure the task.

* Adds extension traits to libgreen and libnative that add methods to
  `TaskBuilder` for spawning the task as a green or native thread.

Previously, there was no way to benefit from the `TaskBuilder` functionality and
also set the scheduler to spawn within.

With this change, all task spawning scenarios are supported through the
`TaskBuilder` interface.

Closes rust-lang#3725.

[breaking-change]
This commit brings code downstream of libstd up to date with the new
TaskBuilder API.
Issue rust-lang#5275 was closed, but there still was a FIXME for it.
Fixes a codegen bug which generates illegal non-terminated LLVM block
when there are wildcard pattern with guard and enum patterns in a match
expression. Also refactors the code a little.

Closes rust-lang#14865
Update placeholder text to make keyboard shortcuts more apparent.
Replace its usage with byte string literals, except in `bytes!()` tests.
Also add a new snapshot, to be able to use the new b"foo" syntax.

The src/etc/2014-06-rewrite-bytes-macros.py script automatically
rewrites `bytes!()` invocations into byte string literals.
Pass it filenames as arguments to generate a diff that you can inspect,
or `--apply` followed by filenames to apply the changes in place.
Diffs can be piped into `tip` or `pygmentize -l diff` for coloring.
Closes rust-lang#14480 (vim: Add :RustRun and associated commands)
Closes rust-lang#14917 (Deprecate free-standing endian conversions in favor of methods on Int. Merge Bitwise into Int and add more bit operations.)
Closes rust-lang#14981 (librustc: Use expr_ty_adjusted in trans_overloaded_call.)
Closes rust-lang#14989 (std::task - Revamp TaskBuilder API)
Closes rust-lang#14997 (Reject double moves out of array elements)
Closes rust-lang#14998 (Vim: highlight escapes for byte literals.)
Closes rust-lang#15002 (Fix FIXME rust-lang#5275)
Closes rust-lang#15004 (Fix rust-lang#14865)
Closes rust-lang#15007 (debuginfo: Add test case for issue rust-lang#14411.)
Closes rust-lang#15012 ((doc) Change search placeholder text.)
Closes rust-lang#15013 (Update compiler-rt.)
Closes rust-lang#15017 (Deprecate the bytes!() macro.)
@bors bors closed this Jun 19, 2014
@bors bors merged commit 2c3bf88 into rust-lang:master Jun 19, 2014
@alexcrichton alexcrichton deleted the rollup branch June 19, 2014 03:28
lnicola pushed a commit to lnicola/rust that referenced this pull request Jun 19, 2023
…anic, r=lnicola

minor: remove commented out conflicts

Follow-up to rust-lang#14989 🤦‍♂️
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.