about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
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.
2019-01-28fix gdb debug printingRalf Jung-5/+6
2019-01-22Auto merge of #57647 - cuviper:gdb-version, r=tromeybors-1/+1
[rust-gdb] relax the GDB version regex The pretty-printer script is checking `gdb.VERSION` to see if it's at least 8.1 for some features. With `re.match`, it will only find the version at the beginning of that string, but in Fedora the string is something like "Fedora 8.2-5.fc29". Using `re.search` instead will find the first location that matches anywhere, so it will find my 8.2.
2019-01-15[rust-gdb] relax the GDB version regexJosh Stone-1/+1
The pretty-printer script is checking `gdb.VERSION` to see if it's at least 8.1 for some features. With `re.match`, it will only find the version at the beginning of that string, but in Fedora the string is something like "Fedora 8.2-5.fc29". Using `re.search` instead will find the first location that matches anywhere, so it will find my 8.2.
2019-01-14rustc: Remove platform intrinsics crateAlex Crichton-4731/+0
This was originally attempted in #57048 but it was realized that we could fully remove the crate via the `"unadjusted"` ABI on intrinsics. This means that all intrinsics in stdsimd are implemented directly against LLVM rather than using the abstraction layer provided here. That ends up meaning that this crate is no longer used at all. This crate developed long ago to implement the SIMD intrinsics, but we didn't end up using it in the long run. In that case let's remove it!
2019-01-08lldb_batchmode.py: try `import _thread` for Python 3Josh Stone-1/+6
2019-01-07Rollup merge of #57358 - euclio:docck-unicode, r=QuietMisdreavusPietro Albini-18/+28
use utf-8 throughout htmldocck This commit improves compatibility with Python 3, which already uses Unicode throughout. It also fixes a subtle incompatibility stemming from the use of `entitydefs`, which contains replacement text _encoded in latin-1_ for HTML entities. When using Python 3, this would cause `0xa0` to be incorrectly added to the element tree. This meant that there was a rustdoc test that would pass under Python 2 but fail under Python 3, due to an incorrect regex match against the non-breaking space character. This commit triggers that failure in both versions, and also fixes it.
2019-01-06tests: Do not use `-Z parse-only`, continue compilation to test recoveryVadim Petrochenkov-2/+0
2019-01-06use utf-8 throughout htmldocckAndy Russell-18/+28
This commit improves compatibility with Python 3, which already uses Unicode throughout. It also fixes a subtle incompatibility stemming from the use of `entitydefs`, which contains replacement text _encoded in latin-1_ for HTML entities. When using Python 3, this would cause `0xa0` to be incorrectly added to the element tree. This meant that there was a rustdoc test that would pass under Python 2 but fail under Python 3, due to an incorrect regex match against the non-breaking space character. This commit triggers that failure in both versions, and also fixes it.
2018-12-26Remove the private generic NonZero<T> wrapper type.Simon Sapin-7/+3
Instead, use `#[rustc_layout_scalar_valid_range_start(1)]` directly on relevant libcore types.
2018-12-25Remove licensesMark Rousskov-318/+3
2018-12-12Disable btree pretty-printers on older gdbsTom Tromey-2/+13
gdb versions before 8.1 have a bug that prevents the BTreeSet and BTreeMap pretty-printers from working. This patch disables the test on those versions, and also disables the pretty-printers there as well. Closes #56730
2018-11-25Rollup merge of #56144 - tromey:Bug-55771-btreemap, r=alexcrichtonPietro Albini-55/+41
Fix BTreeSet and BTreeMap gdb pretty-printers The BTreeSet and BTreeMap gdb pretty-printers did not take the node structure into account, and consequently only worked for shallow sets. This fixes the problem by iterating over child nodes when needed. This patch avoids the current approach of implementing some of the value manipulations in debugger-indepdendent code. This was done for convenience: a type lookup was needed for the first time, and there currently are no lldb formatters for these types. Closes #55771
2018-11-24Rollup merge of #55767 - tromey:disable-some-pretty-printers, r=alexcrichtonkennytm-18/+25
Disable some pretty-printers when gdb is rust-enabled A rust-enabled gdb already knows how to display string slices, structs, tuples, and enums (and after #54004, the pretty-printers can't handle enums at all). This patch disables these pretty-printers when gdb is rust-enabled. The "gdb-pretty-struct-and-enums-pre-gdb-7-7.rs" test is renamed, because it does not seem to depend on any behavior of that version of gdb, and because gdb 7.7 is 4 years old now.
2018-11-22Rollup merge of #55961 - tromey:Bug-55944-vecdeque, r=nikomatsakisGuillaume Gomez-3/+11
Fix VecDeque pretty-printer This fixes the VecDeque pretty-printer to handle cases where head < tail. Closes #55944
2018-11-21Fix BTreeSet and BTreeMap gdb pretty-printersTom Tromey-55/+41
The BTreeSet and BTreeMap gdb pretty-printers did not take the node structure into account, and consequently only worked for shallow sets. This fixes the problem by iterating over child nodes when needed. This patch avoids the current approach of implementing some of the value manipulations in debugger-indepdendent code. This was done for convenience: a type lookup was needed for the first time, and there currently are no lldb formatters for these types. Closes #55771
2018-11-19Disable some pretty-printers when gdb is rust-enabledTom Tromey-18/+25
A rust-enabled gdb already knows how to display string slices, structs, tuples, and enums (and after #54004, the pretty-printers can't handle enums at all). This patch disables these pretty-printers when gdb is rust-enabled. The "gdb-pretty-struct-and-enums-pre-gdb-7-7.rs" test is renamed, because it does not seem to depend on any behavior of that version of gdb, and because gdb 7.7 is 4 years old now.
2018-11-14Fix VecDeque pretty-printerTom Tromey-3/+11
This fixes the VecDeque pretty-printer to handle cases where head < tail. Closes #55944
2018-11-11Fix typos.Bruce Mitchener-1/+1
2018-11-07Rollup merge of #55441 - xfix:patch-12, r=aturonkennytm-1/+0
Remove unused re import in gdb_rust_pretty_printing
2018-10-29Rollup merge of #55447 - frewsxcv:frewsxcv-rename, r=Mark-SimulacrumPietro Albini-1/+1
Fix invalid path in generate-deriving-span-tests.py. This script broke after #53196 – the tests were moved.
2018-10-28Fix invalid path in generate-deriving-span-tests.py.Corey Farwell-1/+1
This script broke after #53196 after the tests were moved.
2018-10-28Remove unused re import in gdb_rust_pretty_printingKonrad Borowski-1/+0
2018-10-28Remove unused sys import from generate-deriving-span-testsKonrad Borowski-1/+1
2018-10-23fix typos in various placesMatthias Krüger-1/+1
2018-10-21Remove the parse-fail test suiteVadim Petrochenkov-1/+1
2018-10-12Rollup merge of #54989 - Munksgaard:fix-htmldocck-typos, r=tmandrykennytm-25/+27
Fix spelling in the documentation to htmldocck.py I was reading through htmldocck.py, and decided to attempt to clean it up a little bit. Let me know if you disagree with my edits.
2018-10-11Fix spelling in the documentation to htmldocck.pyPhilip Munksgaard-25/+27
2018-10-09fix tidyJorge Aparicio-3/+5
2018-10-09gdb_rust_pretty_printing: adapt to the changes in the layout of btree::LeafNodeJorge Aparicio-4/+10
2018-09-29Revert "Auto merge of #53508 - japaric:maybe-uninit, r=RalfJung"Ralf Jung-12/+4
This reverts commit c6e3d7fa3113aaa64602507f39d4627c427742ff, reversing changes made to 4591a245c7eec9f70d668982b1383cd2a6854af5.