about summary refs log tree commit diff
path: root/.gitignore
AgeCommit message (Collapse)AuthorLines
2023-09-16don't globally ignore rustc-ice filesRalf Jung-1/+0
2023-08-07Ignore ICE dumps in gitOli Scherer-0/+1
2023-03-20Auto merge of #108148 - parthopdas:master, r=oli-obkbors-0/+1
Implementing "<test_binary> --list --format json" for use by IDE test explorers / runners Fixes #107307 PR 1 of 2 - wiring up just the new information + implement the command line changes i.e. --format json + tests upcoming: PR 2 of 2 - clean up "#[cfg(not(bootstrap))]" from PR 1 As per the discussions on - MCP: https://rust-lang.zulipchat.com/#narrow/stream/233931-t-compiler.2Fmajor-changes/topic/Implementing.20.22.3Ctest_binary.3E.20--list.20--form.E2.80.A6.20compiler-team.23592/near/328747548 - preRFC: https://internals.rust-lang.org/t/pre-rfc-implementing-test-binary-list-format-json-for-use-by-ide-test-explorers-runners/18308 - FYI on Discord: https://discord.com/channels/442252698964721669/459149169546887178/1075581549409484820
2023-03-18address review commentsJoshua Nelson-0/+1
2023-03-15Implementing "<test_binary> --list --format json" #107307 #49359Partha P. Das-0/+1
2023-03-05Ignore things in .gitignore in tidyJoshua Nelson-1/+1
- Switch from `walkdir` to `ignore`. This required various changes to make `skip` thread-safe. - Ignore `build` anywhere in the source tree, not just at the top-level. We support this in bootstrap, we should support it in tidy too. As a nice side benefit, this also makes tidy a bit faster. Before: ``` ; hyperfine -i '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 1.080 s ± 0.008 s [User: 2.616 s, System: 3.243 s] Range (min … max): 1.069 s … 1.099 s 10 runs ``` After: ``` ; hyperfine '"/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32"' Benchmark 1: "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0-tools-bin/rust-tidy" "/home/gh-jyn514/rust2" "/home/gh-jyn514/rust2/build/aarch64-unknown-linux-gnu/stage0/bin/cargo" "/home/gh-jyn514/rust2/build" "32" Time (mean ± σ): 705.0 ms ± 1.4 ms [User: 3179.1 ms, System: 1517.5 ms] Range (min … max): 702.3 ms … 706.9 ms 10 runs ```
2023-01-11Change `src/test` to `tests` in source files, fix tidy and testsAlbert Larsan-2/+2
2022-09-01Rollup merge of #101072 - tmandry:llvm-is-vanilla, r=Mark-SimulacrumMatthias Krüger-0/+1
bootstrap: Add llvm-has-rust-patches target option This is so you can check out an upstream commit in src/llvm-project and have everything just work. This simplifies the logic in `is_rust_llvm` a bit; it doesn't need to check for download-ci-llvm because we would have already errored if both that and llvm-config were specified on the host platform.
2022-08-29Ignore cargo target folder in src/bootstrapTyler Mandry-0/+1
Needed after changes in #97513.
2022-08-20Add `/build-rust-analyzer/` to .gitignoreNilstrieb-0/+1
To avoid rust-analyzer and rustc having to wait for each other, the dev guide mentions using another build directory for RA. We should also put this into the .gitignore, just like the normal `build`.
2022-06-26Remove references to `./tmp` in-treeJoshua Nelson-2/+0
These used to be used by codegen-units tests, but were switched from manually specifying directories to just using `// incremental` in https://github.com/rust-lang/rust/pull/89101. Remove the old references.
2022-02-01Add package.json in gitignoreGuillaume Gomez-0/+1
2021-10-12Fix invalid rules in .gitignoreCanop-2/+2
`**node_modules` in a .gitignore is the same than `*node_modules` or `*****node_modules`. It matches every file whose name ends with `node_modules`, including `not_node_modules`. The intent here was obviously to have `**/node_modules` which is the same than just `node_modules`.
2021-07-12Simplify build system for rustdoc-gui test cratesGuillaume Gomez-0/+3
2021-04-22Remove "Version control"Christiaan Dirkx-4/+0
2021-04-22Clean up .gitignoreChristiaan Dirkx-26/+48
2021-03-10Ignore Vim swap filesCamelid-0/+2
2021-02-21Ignore nodejs/npm filesGuillaume Gomez-0/+2
2020-11-03Add a tool to run `x.py` from any subdirectoryCasey Rodarmor-0/+1
This adds a binary called `x` in `src/tools/x`. All it does is check the current directory and its ancestors for a file called `x.py`, and if it finds one, runs it. By installing x, you can easily `x.py` from any subdirectory. It can be installed globally with `cargo install --path src/tools/x`
2020-09-09Move `rustllvm` into `rustc_llvm`Vadim Petrochenkov-1/+0
2020-03-25gitignore: allow target to be a symlinkBen Boeckel-1/+1
Following rust-lang/cargo#4944.
2020-01-14Add unicode table generatorMark Rousskov-8/+1
2019-12-15.gitignore: Don't ignore a file that exists in the repositoryJosh Triplett-0/+1
.gitignore should not ignore files that exist in the repository. The ignore of .cargo applies to the committed .cargo directory used in an example: $ git ls-files --exclude-standard --ignored src/test/run-make/thumb-none-qemu/example/.cargo/config Explicitly un-ignore that file.
2019-10-21expand commentRalf Jung-3/+8
2019-10-21keep the root dir clean from debuggingRalf Jung-3/+0
2019-10-20Ignore DOT files in .gitignoreDylan MacKenzie-0/+3
2019-08-10.gitignore: Explain why `/obj/` is ignoredMazdak Farrokhzad-0/+1
2019-08-10Explain why `/tmp/` is ignoredMazdak Farrokhzad-0/+1
2019-08-10.gitignore: Readd `/tmp/`Mazdak Farrokhzad-0/+1
It is produced during `./x.py test`
2019-08-08more alphabeticalRalf Jung-1/+1
2019-08-08tweak ignoresRalf Jung-3/+4
2019-08-08fix typo in .gitignoreRalf Jung-1/+1
Co-Authored-By: Vadim Petrochenkov <vadim.petrochenkov@gmail.com>
2019-08-08Cargo.toml is at the root these daysRalf Jung-4/+0
2019-08-08gitignore: remove some things that look ancientRalf Jung-16/+0
2019-08-08explain what we want and what not in .gitignoreRalf Jung-0/+4
2019-08-05don't ignore mir_dump folderRalf Jung-1/+0
2019-07-06Rollup merge of #60081 - pawroman:cleanup_unicode_script, r=varkorMazdak Farrokhzad-0/+1
Refactor unicode.py script Hi, I noticed that the `unicode.py` script used some deprecated escapes in regular expressions. E.g. `\d`, `\w`, `\.` will be illegal in the future without "raw strings". This is now fixed. I have also cleaned up the script quite a bit. ## Escape deprecation OK (note the `r`): `re.compile(r"\d")` Deprecated (from Python 3.6 onwards, see [here][link1] and [here][link2]): `re.compile("\d")`. [link1]: https://docs.python.org/3.6/whatsnew/3.6.html#deprecated-python-behavior [link2]: https://bugs.python.org/issue27364 This was evident running the script using Python 3.7 like so: ``` $ python3 -Wall unicode.py unicode.py:227: DeprecationWarning: invalid escape sequence \w re1 = re.compile("^ *([0-9A-F]+) *; *(\w+)") unicode.py:228: DeprecationWarning: invalid escape sequence \. re2 = re.compile("^ *([0-9A-F]+)\.\.([0-9A-F]+) *; *(\w+)") unicode.py:453: DeprecationWarning: invalid escape sequence \d pattern = "for Version (\d+)\.(\d+)\.(\d+) of the Unicode" ``` The documentation states that > A backslash-character pair that is not a valid escape sequence now generates a DeprecationWarning. Although this will eventually become a SyntaxError, that will not be for several Python releases. ## Testing To test my changes, I had to add support for choosing the Unicode version to use. The script will default to latest release (which is 12.0.0 at the moment, repo has 11.0.0 checked in). The script generates the exact same output for version 11.0.0 with Python 2.7 and 3.7 and no longer generates any deprecation warnings: ``` $ python3 -Wall unicode.py -v 11.0.0 Using Unicode version: 11.0.0 Regenerated tables.rs. $ git diff tables.rs $ python2 -Wall unicode.py -v 11.0.0 Using Unicode version: 11.0.0 Regenerated tables.rs. $ git diff tables.rs $ python2 --version Python 2.7.16 $ python3 --version Python 3.7.3 ``` ## Extra functionality Furthermore, the script will check and download the latest Unicode version by default (without the `-v` argument). The `--help` is below: ``` $ ./unicode.py --help usage: unicode.py [-h] [-v VERSION] Regenerate Unicode tables (tables.rs). optional arguments: -h, --help show this help message and exit -v VERSION, --version VERSION Unicode version to use (if not specified, defaults to latest available final release). ``` ## Cleanups I have cleaned up the code quite a bit, with Python best practices and code style in mind. I'm happy to provide more details and rationale for all my changes if the reviewers so desire. One externally visible change is that the Unicode data will now be downloaded into `src/libcore/unicode/downloaded` directory suffixed by Unicode version: ``` $ pwd .../rust/src/libcore/unicode $ exa -T downloaded/ downloaded ├── 11.0.0 │ ├── DerivedCoreProperties.txt │ ├── DerivedNormalizationProps.txt │ ├── PropList.txt │ ├── ReadMe.txt │ ├── Scripts.txt │ ├── SpecialCasing.txt │ └── UnicodeData.txt └── 12.0.0 ├── DerivedCoreProperties.txt ├── DerivedNormalizationProps.txt ├── PropList.txt ├── ReadMe.txt ├── Scripts.txt ├── SpecialCasing.txt └── UnicodeData.txt ```
2019-05-25Ignore .vscode even if it is a symlinkOliver Scherer-1/+1
2019-04-18Clean up unicode.py scriptPaweł Romanowski-0/+1
2019-01-08Ignore some IDE-local filesOliver Scherer-0/+1
2018-08-28move file-extension based .gitignore down to src/Ralf Jung-46/+0
2018-07-22Added new lines to .gitignore.David Wood-2/+5
2018-05-21Update .gitignore for libstd_unicodevarkor-7/+7
2018-04-12Implement inferring outlives requirements for references, structs, enum, ↵toidiu-0/+1
union, and projection types. added a feature gate and tests for these scenarios.
2017-11-28rustc_llvm: remove stale referencesTamir Duberstein-1/+0
...that were removed in 77c3bfa7429abf87b76ba84108df018d9e9d90e2.
2017-09-23Allow writing metadata without llvmbjorn3-0/+3
2017-06-30Ignore *.iml filesStepan Koltsov-0/+1
... which are IntelliJ IDEA module files. (`.idea` is IDEA project files.)
2017-06-02Ignore some folders.kennytm-0/+1
- /src/target -- created when trying to directly `cargo build` on a single package.
2017-02-13include everything in the vendor directorySteve Klabnik-0/+1
2017-01-03Reduce the size of static data in std_unicode::tables.Simon Sapin-6/+7
`BoolTrie` works well for sets of code points spread out through most of Unicode’s range, but is uses a lot of space for sets with few, mostly low, code points. This switches a few of its instances to a similar but simpler trie data structure. ## Before `size_of::<BoolTrie>()` is 1552, which is added to `table.r3.len() * 8 + t.r5.len() + t.r6.len() * 8`: * `Cc_table`: 1632 * `White_Space_table`: 1656 * `Pattern_White_Space_table`: 1640 * Total: 4928 bytes ## After `size_of::<SmallBoolTrie>()` is 32, which is added to `t.r1.len() + t.r2.len() * 8`: * `Cc_table`: 51 * `White_Space_table`: 273 * `Pattern_White_Space_table`: 193 * Total: 517 bytes ## Difference Every Rust program with `std` statically linked should be about 4 KB smaller.