about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
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.
2018-09-22fix tidyJorge Aparicio-3/+5
2018-09-22gdb_rust_pretty_printing: adapt to the changes in the layout of btree::LeafNodeJorge Aparicio-4/+10
2018-09-07Have rust-lldb look for the rust-enabled lldbTom Tromey-9/+17
We're shipping a rust-enabled lldb, but the "lldb" executable is not installed into the "bin" directory by rustup. See the discussion in https://github.com/rust-lang-nursery/rustup.rs/pull/1492 for background on this decision. There, we agreed to have rust-lldb prefer the rust-enabled lldb if it is installed. This patch changes dist.rs to put lldb into rustlib, following what was done for the other LLVM tools in #53955, and then fixes rust-lldb to prefer that lldb, if it exists. See issue #48168
2018-08-30Fix direction of slashes in the help text example.Philip Daniels-3/+3
2018-08-28Add rust-gdbgui script.Philip Daniels-0/+65
This script invokes the gdbgui graphical GDB front-end with the Rust pretty printers loaded. The script does not install gdbgui, that must be done manually.
2018-08-19Exec gdb and lldb in rust-* wrappersftilde-2/+2
This way the process we get by calling rust-{gdb,lldb} is an actual {gdb,lldb} instance and not (perhaps surprisingly) a script waiting for the debugger process to finish. Thus, sending a SIGINT to the spawned process stops execution of the child, for example.
2018-08-19Avoid creation of command temp file in rust-lldbftilde-12/+9
Arguments are passed on the command line via --one-line-before-file (instead of in a file via --source-before-file) to lldb.
2018-08-15pretty printing for btreemapUnknown-0/+51
2018-08-14Rollup merge of #53112 - fukatani:pretty-print-btreeset, r=michaelwoeristerkennytm-0/+48
pretty print BTreeSet I want pretty printing for BTreeSet. ```rust use std::collections::*; fn main() { let mut s = BTreeSet::new(); s.insert(5); s.insert(3); s.insert(7); s.remove(&3); println!("{:?}", s); } ``` ``` (gdb) b 9 (gdb) p s $1 = BTreeSet<i32> with 2 elements = {[0] = 5, [1] = 7} ``` This is analogy of pretty printing for C++ std::set.
2018-08-13fix behaviorUnknown-3/+2
2018-08-13bug fixUnknown-1/+1
2018-08-06pretty print BTreeSetfukatani-0/+49
2018-08-05Remove unnecessary or invalid feature attributesvarkor-4/+0
2018-07-29fix coding styleUnknown-2/+4
2018-07-29pretty print for std::collections::vecdequeUnknown-0/+56