about summary refs log tree commit diff
path: root/compiler/rustc/src
AgeCommit message (Collapse)AuthorLines
2025-02-22Fix overcapturing, unsafe extern blocks, and new unsafe opsMichael Goulet-1/+1
2024-12-03switch jemalloc-sys back to tikv-jemalloc-sys, and update to 0.6.0Rémy Rakic-0/+2
2024-11-07Remove unused intercrate dependenciesclubby789-0/+2
2024-08-11Link `std` statically in `rustc_driver`John Kåre Alsaker-0/+3
2024-07-15The rustc crate feature is called jemallocMichael Goulet-1/+1
2024-05-02Change `SIGPIPE` ui from `#[unix_sigpipe = "..."]` to `-Zon-broken-pipe=...`Martin Nordholts-3/+0
In the stabilization attempt of `#[unix_sigpipe = "sig_dfl"]`, a concern was raised related to using a language attribute for the feature: Long term, we want `fn lang_start()` to be definable by any crate, not just libstd. Having a special language attribute in that case becomes awkward. So as a first step towards towards the next stabilization attempt, this PR changes the `#[unix_sigpipe = "..."]` attribute to a compiler flag `-Zon-broken-pipe=...` to remove that concern, since now the language is not "contaminated" by this feature. Another point was also raised, namely that the ui should not leak **how** it does things, but rather what the **end effect** is. The new flag uses the proposed naming. This is of course something that can be iterated on further before stabilization.
2023-03-11fix linkjyn-1/+1
Co-authored-by: Rémy Rakic <remy.rakic+github@gmail.com>
2023-03-11Expand on the allocator comment in `rustc-main`Joshua Nelson-0/+9
Before, it said "global_allocator does nothing". Now it gives you suggestions for what to do if you want to change the global allocator (which is likely the main reason you'd be reading the comment).
2022-10-02rustc: Use `unix_sigpipe` instead of `rustc_driver::set_sigpipe_handler`Martin Nordholts-1/+3
This is the first (known) step towards starting to use `unix_sigpipe` in the wild. Eventually, `rustc_driver::set_sigpipe_handler` can be removed and all clients can use `unix_sigpipe` instead. For now we just start using `unix_sigpipe` in once place: `rustc` itself. It is easy to manually verify this change. If you remove `#[unix_sigpipe = "sig_dfl"]` and run `./x.py build` you will get an ICE when you do `./build/x86_64-unknown-linux-gnu/stage1/bin/rustc --help | false`. Add back `#[unix_sigpipe = "sig_dfl"]` and the ICE disappears again.
2022-05-25update jemalloc-sys to jemalloc v5.3Rémy Rakic-3/+1
2021-12-23Remove useless `#[global_allocator]` from rustc and rustdoc.Nicholas Nethercote-17/+24
This was added in #83152, which has several errors in its comments. This commit also fix up the comments, which are quite wrong and misleading.
2021-04-04use jemallocator in rustc/rustdocGus Wynn-1/+14
2021-03-08Rollup merge of #82642 - sfackler:jemalloc-zone, r=pnkfelixDylan DPC-0/+14
Fix jemalloc usage on OSX Closes #82423
2021-03-06Fix typoHenry Boisdequin-1/+1
we need to actually -> we actually need to @rustbot label +C-cleanup
2021-03-05Update compiler/rustc/src/main.rsSteven Fackler-1/+1
2021-02-28Fix jemalloc usage on OSXSteven Fackler-0/+14
Closes #82423
2020-08-30mv compiler to compiler/mark-0/+31