about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
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
2019-07-03Fix bucket in CPU usage scriptMark Rousskov-1/+1
2019-06-28import gdb for explicit access to gdb.current_objfile()cclauss-0/+1
2019-06-20Auto merge of #61827 - golddranks:lldb_fix, r=nikomatsakisbors-3/+3
Fix rust-lldb wrapper scripts. Currently the `rust-lldb` wrapper provided by Rust project is broken. The error messages it produces on launch are as follows: ``` warning: ignoring unknown option: --one-line-before-file=command script import "/Users/kon/.rustup/toolchains/nightly-2019-05-02-x86_64-apple-darwin/lib/rustlib/etc/lldb_rust_formatters.py" warning: ignoring unknown option: --one-line-before-file=type summary add --no-value --python-function lldb_rust_formatters.print_val -x ".*" --category Rust warning: ignoring unknown option: --one-line-before-file=type category enable Rust (lldb) target create "target/debug/nagare" Traceback (most recent call last): File "<string>", line 1, in <module> File "/Users/kon/.rustup/toolchains/nightly-2019-05-02-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/python2.7/site-packages/lldb/__init__.py", line 1481, in <module> class SBAddress(object): File "/Users/kon/.rustup/toolchains/nightly-2019-05-02-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/python2.7/site-packages/lldb/__init__.py", line 1647, in SBAddress __swig_getmethods__["module"] = GetModule NameError: name '__swig_getmethods__' is not defined Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'run_one_line' is not defined Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'run_one_line' is not defined Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'run_one_line' is not defined ...etc. ``` The errors stem from two regressions: one caused by an LLVM upgrade and one caused by unintended upgrade to SWIG 4.0 (SWIG is a wrapper generator that is used to generate Python bindings for LLVM and LLDB.) (Edit: found the exact dates) The SWIG breakage happened because of a Homebrew version upgrade on `nightly-2019-05-01-x86_64-apple-darwin` and the LLVM breakage happened on `nightly-2019-01-27-x86_64-apple-darwin` (likely to have been caused by https://github.com/rust-lang/rust/pull/57675 ). The fix is to update the LLVM parameter syntax and to "downgrade" to SWIG 3.0.x. SWIG 3.0.x is not going to be supported by Homebrew forever, but should be good for now, until LLDB upgrades to support SWIG 4.0.0. Here's some more info about Homebrew support: https://github.com/Homebrew/homebrew-core/pull/39929 & https://github.com/Homebrew/homebrew-core/pull/40882 I'm going to send a bug & fix to LLDB about SWIG 4.0.0 to get the situation fixed in the future. It would be good to also backport this to beta, since it's such a small change, and will fix an obvious regression.
2019-06-18ci: Add a script for generating CPU usage graphsAlex Crichton-0/+49
This commit checks in a script which generates CPU usage graphs over time, expanding on the previous comment that was include in the collection file.
2019-06-16Fix rust-lldb wrapper scripts.Pyry Kontio-3/+3
2019-05-09Fix .natvis visualizers.MaulingMonkey-10/+10
Updated to handle these changes: - `core::ptr::*` lost their `__0` elements and are just plain pointers - `core::ptr::*` probably shouldn't dereference in `DisplayString` s - `VecDeque` and `Vec` use `core::ptr::*` s - `VecDeque` and `LinkedList` moved modules again. Retested - still working fine, left alone: - `String`, `&str`, `Option`
2019-03-06rust-lldb: fix crash when printing empty stringAndy Russell-0/+2
2019-02-17Rollup merge of #58489 - xfix:fix-keyword-tests-runtime-error, r=alexcrichtonkennytm-2/+2
Fix runtime error in generate-keyword-tests The script was made unusable after removing license headers.
2019-02-15Fix runtime error in generate-keyword-testsKonrad Borowski-2/+2
The script was made unusable after removing license headers.
2019-02-08Remove initial newline from automatically generated span testsKonrad Borowski-1/+1
This change was accidentally introduced while removing license headers.
2019-02-08Remove code for updating copyright years in generate-deriving-span-testsKonrad Borowski-22/+6
It's no longer necessary, as there is no license header anymore.