<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/rustc, branch 1.37.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.37.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.37.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2019-04-22T16:01:33+00:00</updated>
<entry>
<title>Remove leading newlines</title>
<updated>2019-04-22T16:01:33+00:00</updated>
<author>
<name>varkor</name>
<email>github@varkor.com</email>
</author>
<published>2019-04-22T14:50:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9736d32f842d1f35b218f4fae219f61460d30607'/>
<id>urn:sha1:9736d32f842d1f35b218f4fae219f61460d30607</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update jemalloc-sys to version 0.3.0</title>
<updated>2019-03-26T10:03:19+00:00</updated>
<author>
<name>gnzlbg</name>
<email>gonzalobg88@gmail.com</email>
</author>
<published>2019-03-26T10:03:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6ea6e62075f21642bfd94b00bf641ea3fe4208c5'/>
<id>urn:sha1:6ea6e62075f21642bfd94b00bf641ea3fe4208c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make the rustc driver and interface demand driven</title>
<updated>2019-03-10T03:49:45+00:00</updated>
<author>
<name>John Kåre Alsaker</name>
<email>john.kare.alsaker@gmail.com</email>
</author>
<published>2018-12-08T19:30:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=51938c61f6f1b26e463f9071716f543543486e72'/>
<id>urn:sha1:51938c61f6f1b26e463f9071716f543543486e72</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: Fix regression where jemalloc isn't used</title>
<updated>2019-01-03T21:52:36+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2019-01-02T21:23:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ccbf28eae8b345db3ede51112cc32c756a084bd9'/>
<id>urn:sha1:ccbf28eae8b345db3ede51112cc32c756a084bd9</id>
<content type='text'>
In #56986 the linkage of jemalloc to the compiler was switched from the
driver library to the rustc binary to ensure that only rustc itself uses
jemalloc. In doing so, however, it turns out jemalloc wasn't actually
linked in at all! None of the symbols were referenced so the static
library wasn't used. This means that jemalloc wasn't pulled in at all.

This commit performs a bit of a dance to reference jemalloc symbols,
attempting to pull it in despite LLVM's optimizations.

Closes #57115
</content>
</entry>
<entry>
<title>Remove licenses</title>
<updated>2018-12-26T04:08:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-12-25T15:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2a663555ddf36f6b041445894a8c175cd1bc718c'/>
<id>urn:sha1:2a663555ddf36f6b041445894a8c175cd1bc718c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: Move jemalloc from rustc_driver to rustc</title>
<updated>2018-12-19T16:27:23+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-12-19T16:27:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ba0ed5b13f23dd6e4ff0047a653ee615b84a67f2'/>
<id>urn:sha1:ba0ed5b13f23dd6e4ff0047a653ee615b84a67f2</id>
<content type='text'>
This commit moves jemalloc to just the rustc binary rather than the
rustc_driver shared library, enusring that it's only used for binaries
that opt-in to it like rustc rather than other binaries using
librustc_driver like rustdoc/rls/etc. This will hopefully address #56980
</content>
</entry>
<entry>
<title>std: Depend directly on crates.io crates</title>
<updated>2018-12-12T05:08:22+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-11-20T05:52:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4c21a3bc2afc5933f31f1368f6b3406c5f1bdeb3'/>
<id>urn:sha1:4c21a3bc2afc5933f31f1368f6b3406c5f1bdeb3</id>
<content type='text'>
Ever since we added a Cargo-based build system for the compiler the
standard library has always been a little special, it's never been able
to depend on crates.io crates for runtime dependencies. This has been a
result of various limitations, namely that Cargo doesn't understand that
crates from crates.io depend on libcore, so Cargo tries to build crates
before libcore is finished.

I had an idea this afternoon, however, which lifts the strategy
from #52919 to directly depend on crates.io crates from the standard
library. After all is said and done this removes a whopping three
submodules that we need to manage!

The basic idea here is that for any crate `std` depends on it adds an
*optional* dependency on an empty crate on crates.io, in this case named
`rustc-std-workspace-core`. This crate is overridden via `[patch]` in
this repository to point to a local crate we write, and *that* has a
`path` dependency on libcore.

Note that all `no_std` crates also depend on `compiler_builtins`, but if
we're not using submodules we can publish `compiler_builtins` to
crates.io and all crates can depend on it anyway! The basic strategy
then looks like:

* The standard library (or some transitive dep) decides to depend on a
  crate `foo`.
* The standard library adds

  ```toml
  [dependencies]
  foo = { version = "0.1", features = ['rustc-dep-of-std'] }
  ```
* The crate `foo` has an optional dependency on `rustc-std-workspace-core`
* The crate `foo` has an optional dependency on `compiler_builtins`
* The crate `foo` has a feature `rustc-dep-of-std` which activates these
  crates and any other necessary infrastructure in the crate.

A sample commit for `dlmalloc` [turns out to be quite simple][commit].
After that all `no_std` crates should largely build "as is" and still be
publishable on crates.io! Notably they should be able to continue to use
stable Rust if necessary, since the `rename-dependency` feature of Cargo
is soon stabilizing.

As a proof of concept, this commit removes the `dlmalloc`,
`libcompiler_builtins`, and `libc` submodules from this repository. Long
thorns in our side these are now gone for good and we can directly
depend on crates.io! It's hoped that in the long term we can bring in
other crates as necessary, but for now this is largely intended to
simply make it easier to manage these crates and remove submodules.

This should be a transparent non-breaking change for all users, but one
possible stickler is that this almost for sure breaks out-of-tree
`std`-building tools like `xargo` and `cargo-xbuild`. I think it should
be relatively easy to get them working, however, as all that's needed is
an entry in the `[patch]` section used to build the standard library.
Hopefully we can work with these tools to solve this problem!

[commit]: https://github.com/alexcrichton/dlmalloc-rs/commit/28ee12db813a3b650a7c25d1c36d2c17dcb88ae3
</content>
</entry>
<entry>
<title>Add x86_64-fortanix-unknown-sgx target to libstd and dependencies</title>
<updated>2018-12-07T05:56:50+00:00</updated>
<author>
<name>Jethro Beekman</name>
<email>jethro@fortanix.com</email>
</author>
<published>2018-08-28T04:33:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4a3505682e97c8e667338056ae216e4b84b22dd7'/>
<id>urn:sha1:4a3505682e97c8e667338056ae216e4b84b22dd7</id>
<content type='text'>
The files src/libstd/sys/sgx/*.rs are mostly copied/adapted from
the wasm target.

This also updates the dlmalloc submodule to the very latest version.
</content>
</entry>
<entry>
<title>explicitly control compiler_builts/c feature from libstd</title>
<updated>2018-12-02T12:27:12+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2018-12-02T12:27:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d605e1d055dfd31b03e6e0da634928d4d5418866'/>
<id>urn:sha1:d605e1d055dfd31b03e6e0da634928d4d5418866</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move fake rustc_codegen_ssa dependency from rustc_driver to rustc-main</title>
<updated>2018-11-22T19:20:23+00:00</updated>
<author>
<name>bjorn3</name>
<email>bjorn3@users.noreply.github.com</email>
</author>
<published>2018-11-19T17:28:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=60e4158188b6f580e8fe44f5a52edd3f06e62a83'/>
<id>urn:sha1:60e4158188b6f580e8fe44f5a52edd3f06e62a83</id>
<content type='text'>
</content>
</entry>
</feed>
