summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2015-06-17Add src/etc/add-authors.sh script for managing the AUTHORS.txt fileBrian Anderson-0/+32
This is the kind of dumb task that gets done a different way every time and is easily automated.
2015-06-06Correctly map upper-case Sigma to lower-case in word-final position. Fix #26035.Simon Sapin-1/+2
2015-06-06Add char::to_titlecaseSimon Sapin-15/+27
But not str::to_titlecase which would require UAX#29 Unicode Text Segmentation which we decided not to include in of `std`: https://github.com/rust-lang/rfcs/pull/1054
2015-06-06Add complex (but unconditional) Unicode case mapping. Fix #25800Simon Sapin-10/+44
As a result, the iterator returned by `char::to_uppercase` sometimes yields two or three `char`s instead of just one.
2015-06-06to_lowercase/to_uppercase: also map chars not in Lu/Ll categories.Simon Sapin-18/+18
This adds 120 mappings: Dž dž Dž DŽ Lj lj Lj LJ Nj nj Nj NJ Dz dz Dz DZ Ι ᾈ ᾀ ᾉ ᾁ ᾊ ᾂ ᾋ ᾃ ᾌ ᾄ ᾍ ᾅ ᾎ ᾆ ᾏ ᾇ ᾘ ᾐ ᾙ ᾑ ᾚ ᾒ ᾛ ᾓ ᾜ ᾔ ᾝ ᾕ ᾞ ᾖ ᾟ ᾗ ᾨ ᾠ ᾩ ᾡ ᾪ ᾢ ᾫ ᾣ ᾬ ᾤ ᾭ ᾥ ᾮ ᾦ ᾯ ᾧ ᾼ ᾳ ῌ ῃ ῼ ῳ Ⅰ ⅰ Ⅱ ⅱ Ⅲ ⅲ Ⅳ ⅳ Ⅴ ⅴ Ⅵ ⅵ Ⅶ ⅶ Ⅷ ⅷ Ⅸ ⅸ Ⅹ ⅹ Ⅺ ⅺ Ⅻ ⅻ Ⅼ ⅼ Ⅽ ⅽ Ⅾ ⅾ Ⅿ ⅿ ⅰ Ⅰ ⅱ Ⅱ ⅲ Ⅲ ⅳ Ⅳ ⅴ Ⅴ ⅵ Ⅵ ⅶ Ⅶ ⅷ Ⅷ ⅸ Ⅸ ⅹ Ⅹ ⅺ Ⅺ ⅻ Ⅻ ⅼ Ⅼ ⅽ Ⅽ ⅾ Ⅾ ⅿ Ⅿ Ⓐ ⓐ Ⓑ ⓑ Ⓒ ⓒ Ⓓ ⓓ Ⓔ ⓔ Ⓕ ⓕ Ⓖ ⓖ Ⓗ ⓗ Ⓘ ⓘ Ⓙ ⓙ Ⓚ ⓚ Ⓛ ⓛ Ⓜ ⓜ Ⓝ ⓝ Ⓞ ⓞ Ⓟ ⓟ Ⓠ ⓠ Ⓡ ⓡ Ⓢ ⓢ Ⓣ ⓣ Ⓤ ⓤ Ⓥ ⓥ Ⓦ ⓦ Ⓧ ⓧ Ⓨ ⓨ Ⓩ ⓩ ⓐ Ⓐ ⓑ Ⓑ ⓒ Ⓒ ⓓ Ⓓ ⓔ Ⓔ ⓕ Ⓕ ⓖ Ⓖ ⓗ Ⓗ ⓘ Ⓘ ⓙ Ⓙ ⓚ Ⓚ ⓛ Ⓛ ⓜ Ⓜ ⓝ Ⓝ ⓞ Ⓞ ⓟ Ⓟ ⓠ Ⓠ ⓡ Ⓡ ⓢ Ⓢ ⓣ Ⓣ ⓤ Ⓤ ⓥ Ⓥ ⓦ Ⓦ ⓧ Ⓧ ⓨ Ⓨ ⓩ Ⓩ
2015-06-02Auto merge of #25905 - michaelwoerister:lldb-pp-strings, r=brsonbors-417/+705
GDB and LLDB pretty printers have some common functionality and also access some common information, such as the layout of standard library types. So far, this information has been duplicated in the two pretty printing python modules. This PR introduces a common module used by both debuggers. This PR also implements proper rendering of `String` and `&str` values in LLDB.
2015-06-02Auto merge of #25654 - petrochenkov:encenv, r=alexcrichtonbors-4/+8
Fixes https://github.com/rust-lang/rust/issues/25268 and a couple of similar test errors r? @alexcrichton
2015-06-01Fix platform detectionpetrochenkov-6/+3
2015-05-30debuginfo: Create common debugger pretty printer module.Michael Woerister-417/+705
GDB and LLDB pretty printers have some common functionality and also access some common information, such as the layout of standard library types. So far, this information has been duplicated in the two pretty printing python modules. This commit introduces a common module used by both debuggers.
2015-05-30Warn if the test suite is run on Windows in console with non-UTF-8 code pagepetrochenkov-0/+7
2015-05-26etc: use codecs in featureckRicho Healey-9/+5
this asserts that source is valid utf8 on both python3 and python2
2015-05-24etc: work around utf8 text in rust sources on py3 in featureckRicho Healey-1/+8
2015-05-24etc: py3 compat for tidy.pyRicho Healey-6/+6
2015-05-24etc: py3 compat for featureckRicho Healey-23/+23
Also rewrite most of the string formatting to be a bit more idiomatic
2015-05-24etc: py3 compat for errorck.pyRicho Healey-1/+1
2015-05-24etc: py3 compat for check-summary.pyRicho Healey-7/+7
2015-05-24etc: Delete unused helper scriptRicho Healey-138/+0
2015-05-19mk: Generate a .def file for rustc_llvm on MSVCAlex Crichton-0/+25
Windows needs explicit exports of functions from DLLs but LLVM does not mention any of its symbols as being export-able from a DLL. The compiler, however, relies on being able to use LLVM symbols across DLL boundaries so we need to force many of LLVM's symbols to be exported from `rustc_llvm.dll`. This commit adds support for generation of a `rustc_llvm.def` file which is passed along to the linker when generating `rustc_llvm.dll` which should keep all these symbols exportable and usable.
2015-05-19mklldeps: Don't link stdc++/c++ on MSVCAlex Crichton-2/+5
These libraries don't exist! The linker for MSVC is highly likely to not pass `/NODEFAULTLIB` in which case the right standard library will automatically be selected.
2015-05-11Auto merge of #25266 - richo:windows-resource-sancheck, r=steveklabnikbors-1/+1
This avoids a crash on windows Closes #25265
2015-05-10Rollup merge of #24948 - derhuerst:patch-1, r=steveklabnikSteve Klabnik-1/+7
I've written a small [EditorConfig](http://editorconfig.org) file for Rust development.
2015-05-10sancheck: import resource inside of the posix checkRicho Healey-1/+1
This avoids a crash on windows
2015-05-03Remove unused extract_grammar.pyCarol (Nichols || Goulding)-156/+0
This script used to be used to extract the grammar sections from the reference, but there is now a separate src/doc/grammar.md where the grammar sections that used to be in the reference live, so there is no longer a need to extract the grammar from the reference.
2015-04-29distinction between official and community pluginsJannis Redmann-2/+7
2015-04-29link to .editorconfig for Rust filesJannis Redmann-0/+1
I've written a small [EditorConfig](http://editorconfig.org) file for Rust development.
2015-04-21LLVM < 3.5 is unsupported since bb18a3cTamir Duberstein-11/+1
2015-04-18optimize Unicode tableskwantam-3/+8
Apply optimization described in https://github.com/rust-lang/regex/pull/73#issuecomment-93777126 to rust's copy of `unicode.py`. This shrinks librustc_unicode's tables.rs from 479kB to 456kB, and should improve performance slightly for related operations (e.g., is_alphabetic(), is_xid_start(), etc). In addition, pull in fix from @dscorbett's commit d25c39f86568a147f9b7080c25711fb1f98f056a in regex, which makes `load_properties()` more tolerant of whitespace in the Unicode tables. (This fix does not result in any changes to tables.rs, but could if the Unicode tables change in the future.)
2015-04-16deprecate Unicode functions that will be moved to crates.iokwantam-4/+7
This patch 1. renames libunicode to librustc_unicode, 2. deprecates several pieces of libunicode (see below), and 3. removes references to deprecated functions from librustc_driver and libsyntax. This may change pretty-printed output from these modules in cases involving wide or combining characters used in filenames, identifiers, etc. The following functions are marked deprecated: 1. char.width() and str.width(): --> use unicode-width crate 2. str.graphemes() and str.grapheme_indices(): --> use unicode-segmentation crate 3. str.nfd_chars(), str.nfkd_chars(), str.nfc_chars(), str.nfkc_chars(), char.compose(), char.decompose_canonical(), char.decompose_compatible(), char.canonical_combining_class(): --> use unicode-normalization crate
2015-04-13Auto merge of #24351 - michaelwoerister:named-tuple-fields, r=alexcrichtonbors-16/+24
This PR makes `rustc` emit field names for tuple fields in DWARF. Formerly there was no way of directly accessing the fields of a tuple in GDB and LLDB since there is no C/C++ equivalent to this. Now, the debugger sees the name `__{field-index}` for tuple fields. So you can type for example `some_tuple_val.__2` to get the third tuple component. When pretty printers are used (e.g. via `rust-gdb` or `rust-lldb`) these artificial field names will not clutter tuple rendering (which was the main motivation for not doing this in the past). Solves #21948.
2015-04-13Remove regex module from libunicodeChris Wong-44/+7
The regex crate keeps its own tables now (rust-lang/regex#41) so we don't need them here. [breaking-change]
2015-04-12Add a name for tuple fields in debuginfo so that they can be accessed in ↵Michael Woerister-16/+24
debuggers.
2015-04-11Rollup merge of #24285 - brson:rustup, r=alexcrichtonManish Goregaokar-615/+0
Now lives at https://github.com/rust-lang/rustup r? @alexcrichton
2015-04-10Remove rustup.sh.Brian Anderson-615/+0
Now lives at https://github.com/rust-lang/rustup
2015-04-10Auto merge of #24177 - alexcrichton:rustdoc, r=aturonbors-1/+2
This commit series starts out with more official test harness support for rustdoc tests, and then each commit afterwards adds a test (where appropriate). Each commit should also test and finish independently of all others (they're all pretty separable). I've uploaded a [copy of the documentation](http://people.mozilla.org/~acrichton/doc/std/) generated after all these commits were applied, and a double check on issues being closed would be greatly appreciated! I'll also browse the docs a bit and make sure nothing regressed too horribly.
2015-04-09Auto merge of #24171 - rillian:rustup, r=brsonbors-1/+1
The idea here is if you don't want rust in /usr/local you can put something like this is your .profile: ``` export RUSTUP_PREFIX=$HOME/.local/rust export PATH=$PATH:${RUSTUP_PREFIX}/bin export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${RUSTUP_PREFIX}/lib ``` Then when you run rustup, it will update the install in ${RUSTUP_PREFIX} without having to remember to pass an explicit --prefix argument every time.
2015-04-07rustdoc: Add a primitive page for raw pointersAlex Crichton-1/+2
Closes #15318
2015-04-07rustup: let RUSTUP_PREFIX env override default prefix.Ralph Giles-1/+1
The idea here is if you don't want rust in /usr/local you can put something like this is your .profile: export RUSTUP_PREFIX=$HOME/.local/rust export PATH=$PATH:${RUSTUP_PREFIX}/bin export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${RUSTUP_PREFIX}/lib Then when you run rustup, it will update the install in ${RUSTUP_PREFIX} without having to remember to pass an explicit --prefix argument every time.
2015-04-06use normative source for Grapheme class datakwantam-57/+23
@mahkoh points out in #15628 that unicode.py does not use normative data for Grapheme classes. This pr fixes that issue. In addition, GC_RegionalIndicator is renamed GC_Regional_Indicator in order to stay in line with the Unicode class name definitions. I have updated refs in u_str.rs, and verified that there are no refs elsewhere in the codebase. However, in principle someone using the unicode tables for their own purposes might see breakage from this.
2015-04-01rustup: Fix typo in nightlyRicho Healey-1/+1
2015-04-01rustup: Default to the beta channelAlex Crichton-2/+5
Switches rustup to using the beta channel by default
2015-04-01Merge branch 'fix-rustup' of https://github.com/richo/rustAlex Crichton-8/+16
2015-03-31Auto merge of #23678 - richo:check-flightcheck, r=alexcrichtonbors-0/+54
Rationale for this, is that I lurked `ulimit -c unlimited` into my .profile to debug an unrelated crash, that I kept forgetting to set before hand. I then ran the test suite and discovered that I had 150 gigs of core dumps in `/cores`. Very open to another approach, or to setting the limit to something higher than 0, but I think it would be nice if the build system tried to save you from yourself here.
2015-03-28Add support for channel selectionRicho Healey-7/+15
2015-03-28rustup: Fix comment about Darwin's uname -mRicho Healey-1/+1
2015-03-28Fix some typosVadim Petrochenkov-2/+2
2015-03-27check: Reword the warning to be more prescriptiveRicho Healey-3/+5
2015-03-27check: Name the sentinal variable more sanelyRicho Healey-1/+1
2015-03-27check: Fix the check for platform formattingRicho Healey-1/+1
2015-03-27check: Run the rlimit_core check on *BSDRicho Healey-1/+1
2015-03-27check: Add licenseRicho Healey-0/+11