about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2020-07-31Run all tests if have no specified testsLzu Tao-3/+5
2020-07-29Avoid bool-like namingLzu Tao-3/+2
2020-07-26python codes cleanupjnozsc-4/+4
2020-07-11Rollup merge of #73715 - MaulingMonkey:pr-natvis-tuples, r=AmanieuManish Goregaokar-0/+124
debuginfo: Mangle tuples to be natvis friendly, typedef basic types These changes are meant to unblock rust-lang/rust#70052 "Update hashbrown to 0.8.0" by allowing the use of `tuple<u64, u64>` as a .natvis expression in MSVC style debuggers (MSVC, WinDbg, CDB, etc.) * f8eb81b does the actual mangling of `(u64, u64)` -> `tuple<u64, 64>` * 24a728a allows `u64` to resolve (fixing `$T1` / `$T2` when used to visualize `HashMap<u64, u64, ...>`)
2020-07-10Avoid "whitelist"Tamir Duberstein-5/+3
Other terms are more inclusive and precise.
2020-07-03Rollup merge of #73140 - tmiasko:element-tree, r=GuillaumeGomezManish Goregaokar-1/+4
Fallback to xml.etree.ElementTree The xml.etree.cElementTree has been deprecated since Python 3.3 and removed in Python 3.9 https://bugs.python.org/issue36543.
2020-07-01Rollup merge of #72569 - ChrisDenton:remove-innosetup, r=nikomatsakisManish Goregaokar-367/+0
Remove legacy InnoSetup GUI installer On Windows the InnoSetup `.exe` installer was superseded by the MSI installer long ago. It's no longer needed. The `.exe` installer hasn't been linked from the [other installation methods](https://forge.rust-lang.org/infra/other-installation-methods.html#standalone) page in many years. As far as I can tell the intent was always to remove this installer once the MSI proved itself. Though admittedly both installers feel very "legacy" at this point. Removing this would mean we only maintain one Windows GUI installer and would speed up the distribution phase. As a result of removing InnoSetup, this closes #24397
2020-06-24Modify type names on MSVC to make tuples .natvis compatible.MaulingMonkey-0/+124
- Mangles (T0, T1) as tuple<T0, T1>, possibly unblocking rust-lang/rust#70052 "Update hashbrown to 0.8.0" - Prettifies Rust tuples similar to VS2017's std::tuple - Improves debuginfo test coverage
2020-06-09Implement new gdb/lldb pretty-printersortem-1183/+1442
Replace old GDB and LLDB pretty-printers with new ones which were originally written for IntelliJ Rust. New LLDB pretty-printers support synthetic children. New GDB/LLDB pretty-printers support all Rust types supported by old pretty-printers, and also support: Rc, Arc, Cell, Ref, RefCell, RefMut, HashMap, HashSet.
2020-06-08Fallback to xml.etree.ElementTreeTomasz Miąsko-1/+4
The xml.etree.cElementTree has been deprecated since Python 3.3 and removed in Python 3.9 https://bugs.python.org/issue36543.
2020-05-25Remove legacy InnoSetup GUI installerChris Denton-367/+0
On Windows the InnoSetup installer was superseded by the MSI installer. It's no longer needed.
2020-04-10Enforce Python 3 as much as possibleGuillaume Gomez-2/+2
2020-04-06Rollup merge of #70713 - jsgf:rust-gdb-rustc, r=Mark-SimulacrumMazdak Farrokhzad-2/+18
Prefer sysroot from rustc in same directory as rust-gdb If there isn't a rustc in the same directory, then fall back to searching the path.
2020-04-05Stop importing int module in float parse testLinus Färnstrand-1/+0
2020-04-02Prefer sysroot from rustc in same directory as rust-gdbJeremy Fitzhardinge-2/+18
If there isn't a rustc in the same directory, then fall back to searching the path.
2020-04-02tests: remove ignore directives from tests that mention core/alloc/std spans.Eduard-Mihai Burtescu-3/+0
2020-03-27Auto merge of #70282 - ssomers:btreemap_gdb_pretty_print, r=Mark-Simulacrumbors-2/+2
Test and fix gdb pretty printing more Over time I had oversimplified the test case for #68098: it does not have an internal node to print so it did not test what it pretended to test. And then I also realized not spotting the same mistake reviewing #70111, and more likely to occur in the wild. Now, both test cases fail if you put back the flawed python code. r? @Mark-Simulacrum
2020-03-26Test and fix gdb pretty printing againStein Somers-2/+2
2020-03-25Make x.py compatible with python 3.8.Thomas Bächler-2/+8
Python 3.8 removes the time.clock() function, use time.perf_counter() instead.
2020-03-21Test pretty printing more and fix overzealous type substitutionStein Somers-1/+1
2020-03-20Fix debugger pretty printing of BTreesMark Rousskov-13/+21
2020-02-13Rollup merge of #69049 - pthariensflame:improvement/imgbot, r=GuillaumeGomezDylan DPC-0/+0
Optimize image sizes This was done by [ImgBot](https://imgbot.net/) on my own fork, which I then immediately merged and turned into this manual pull request. Below is reproduced [ImgBot's own message](https://github.com/pthariensflame/rust/pull/3#issue-373452394) on the content of this PR. r? @steveklabnik since this is a documentation PR, I guess. --- > ## Beep boop. Your images are optimized! > > Your image file size has been reduced by **21%** 🎉 > > <details> > <summary> > Details > </summary> > > | File | Before | After | Percent reduction | > |:--|:--|:--|:--| > | /src/etc/installer/gfx/rust-logo.png | 5.71kb | 3.82kb | 33.11% | > | /src/librustdoc/html/static/down-arrow.svg | 0.63kb | 0.50kb | 20.44% | > | /src/librustdoc/html/static/wheel.svg | 3.86kb | 3.68kb | 4.66% | > | /src/librustdoc/html/static/brush.svg | 0.47kb | 0.44kb | 4.61% | > | | | | | > | **Total :** | **10.65kb** | **8.44kb** | **20.82%** | > </details> > > --- > > [📝docs](https://imgbot.net/docs) | [:octocat: repo](https://github.com/dabutvin/ImgBot) | [🙋issues](https://github.com/dabutvin/ImgBot/issues) | [🏅swag](https://goo.gl/forms/1GX7wlhGEX8nkhGO2) | [🏪marketplace](https://github.com/marketplace/imgbot)
2020-02-11[ImgBot] Optimize imagesImgBotApp-0/+0
*Total -- 10.65kb -> 8.44kb (20.82%) /src/etc/installer/gfx/rust-logo.png -- 5.71kb -> 3.82kb (33.11%) /src/librustdoc/html/static/down-arrow.svg -- 0.63kb -> 0.50kb (20.44%) /src/librustdoc/html/static/wheel.svg -- 3.86kb -> 3.68kb (4.66%) /src/librustdoc/html/static/brush.svg -- 0.47kb -> 0.44kb (4.61%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-02-08shorten comment blocks to < 100 charactersChris Simpkins-4/+4
2020-02-08remove unnecessary import statement, PEP8 format spacingChris Simpkins-22/+26
2020-02-08PEP8 format spacingChris Simpkins-0/+1
2020-02-08PEP8 format spacing, remove unnecessary local variable assignmentChris Simpkins-14/+26
2020-02-08remove unnecessary import statementChris Simpkins-1/+0
2020-02-08PEP8 format spacing, split import statementsChris Simpkins-6/+9
2020-02-08PEP8 format spacingChris Simpkins-20/+23
2020-02-07remove unnecessary sys importChris Simpkins-1/+1
2020-02-07PEP8 format spacingChris Simpkins-2/+4
2019-12-28Auto merge of #67334 - estebank:ignore-triple, r=nikomatsakisbors-1/+3
Teach `compiletest` to ignore platform triples The UI tests are written assuming `--remap-path-prefix` is *not used* (`remap-debuginfo` in `config.toml`). The consequence is that the error messages may include paths and snippets into the standard library. When `remap-debuginfo` is enabled, these messages change in format and structure because `rustc` will not show paths and snippets into the standard library. This normally isn't a problem for the "main" platforms (linux/macos/windows), because the CI infrastructure is set up so that the tests run without `remap-debuginfo`, but the `dist` artifacts are built separately with `remap-debuginfo` enabled. However, some of the lower-tier platforms perform both tests and distribution in a single step with `remap-debuginfo` enabled. This also affects developers and distributors who use `remap-debuginfo`. To sidestep this problem, we add a way to ignore tests in specific platform triples, and update the overly broad `ignore-x86` rule in affected tests. Address #46948, #54546, #53081.
2019-12-28Ignore i586-unknown-linux-gnu and i586-unknown-musl in testsEsteban Küber-1/+3
2019-12-25tidy: change msdn links to newer locationsLzu Tao-1/+1
see accouncement at https://docs.microsoft.com/welcome-to-docs
2019-12-22Format the worldMark Rousskov-5/+5
2019-11-29Make dec2flt_table compatible with rustfmtDavid Tolnay-5/+10
2019-11-23Auto merge of #66597 - MaulingMonkey:pr-natvis-std-collections-hash, ↵bors-0/+102
r=michaelwoerister debuginfo: Support for std::collections::Hash* in windows debuggers. Okay, I finally needed to debug code involving a HashMap! Added support for HashSet s as well. r? @michaelwoerister ### Local Testing Verified these are passing locally: ```cmd :: cmd.exe python x.py test --stage 1 --build x86_64-pc-windows-msvc src/test/debuginfo python x.py test --stage 1 --build i686-pc-windows-msvc src/test/debuginfo python x.py test --stage 1 src/tools/tidy :: MinGW MSYS2 ./x.py test --stage 1 --build x86_64-pc-windows-gnu src/test/debuginfo ``` ### Related Issues * https://github.com/rust-lang/rust/issues/36503 * https://github.com/rust-lang/rust/issues/40460 * https://github.com/rust-gamedev/wg/issues/20
2019-11-20debuginfo: Support for std::collections::Hash* in windows debuggers.MaulingMonkey-0/+102
2019-11-20made gdb pretty-printing script more robust when printing uninitialized vec.Felix S. Klock II-1/+11
I based this solution on my reading of: https://rethinkdb.com/blog/make-debugging-easier-with-custom-pretty-printers#what-is-still-to-be-done That post claims that there is no clean way to check for garbage pointers, and so this PR adopts the same solution of tentatively attempting to convert a dererence to a string, which throws a clean exception on garbage that we can catch and recover from. I only made the change to vec and not the other pretty printers because I wanted to focus my effort on the simplest thing that would resolve issue #64343. In particular, I *considered* generalizing this fix to work on the other datatypes in the pretty-printing support library, but I don't want to invest effort in that until after we resolve our overall debugging support strategy; see also issues #60826 and #65564.
2019-11-02also adjust ignore in generated testsRalf Jung-2/+1
2019-09-22ignore-x86 instead of ignore-muslEsteban Küber-1/+1
2019-09-22ignore musl target in tests to avoid issues with output differencesEsteban Küber-0/+2
2019-09-21Rollup merge of #64617 - alexcrichton:smaller-msi, r=Mark-SimulacrumMazdak Farrokhzad-1/+1
rustbuild: Turn down compression on msi installers This is the same as #64615 except applied to our MSI installers. The same fix is applied effectively bringing these installers in line with the gz tarball installers, which are about 3x faster to produce locally and likely much faster to produce on CI.
2019-09-19rustbuild: Turn down compression on msi installersAlex Crichton-1/+1
This is the same as #64615 except applied to our MSI installers. The same fix is applied effectively bringing these installers in line with the gz tarball installers, which are about 3x faster to produce locally and likely much faster to produce on CI.
2019-09-19rustbuild: Turn down compression on exe installersAlex Crichton-3/+3
The Windows dist builders are the slowest builders right now, and the distribution phase of them is enormously slow clocking in at around 20 minutes to build all the related installers. This commit starts to optimize these by turning down the compression level in the `exe` installers. These aren't super heavily used so there's no great need for them to be so ultra-compressed, so let's dial back the compression parameters to get closer to the rest of our xz archives. This brings the installer in line with the gz tarball installer locally, and also brings the compression settings on par with the rest of our xz installers.
2019-09-09lldb: avoid mixing "Hit breakpoint" message with other output.Eduard-Mihai Burtescu-1/+4
2019-08-28std: Remove the `wasm_syscall` featureAlex Crichton-107/+1
This commit removes the `wasm_syscall` feature from the wasm32-unknown-unknown build of the standard library. This feature was originally intended to allow an opt-in way to interact with the operating system in a posix-like way but it was never stabilized. Nowadays with the advent of the `wasm32-wasi` target that should entirely replace the intentions of the `wasm_syscall` feature.
2019-07-14Check for lldb existencesLzu Tao-14/+19
2019-07-04Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichtonMazdak Farrokhzad-1/+1
Fix bucket in CPU usage script r? @alexcrichton