about summary refs log tree commit diff
path: root/src/etc
AgeCommit message (Collapse)AuthorLines
2023-07-31Rollup merge of #113906 - notriddle:notriddle/cargo-extra-env, r=Mark-SimulacrumMatthias Krüger-1/+4
etc: add `RUSTC_BOOTSTRAP` to rust-analyzer config Fixes the problem reported in https://github.com/rust-lang/rust/issues/112391#issuecomment-1597224941
2023-07-31Remove BOLT from bootstrapJakub Beránek-90/+60
2023-07-30support `--stage` for `x clean`ozkanonur-9/+9
Signed-off-by: ozkanonur <work@onurozkan.dev>
2023-07-20etc: add `RUSTC_BOOTSTRAP` to rust-analyzer configMichael Howell-1/+4
Fixes the problem reported in https://github.com/rust-lang/rust/issues/112391#issuecomment-1597224941
2023-07-19Improve htmldocck error a bit by providing line where error occurredGuillaume Gomez-0/+2
2023-07-17Auto merge of #89132 - Cyborus04:rc_allocator_support, r=Amanieubors-5/+8
Add support for allocators in `Rc` & `Arc` Adds the ability for `std::rc:Rc`, `std::rc::Weak`, `std::sync::Arc`, and `std::sync::Weak` to live in custom allocators
2023-07-17Update natvis to match full type names for Arc, Rc, Weak, etcWesley Wiser-5/+8
Also update a test case to have the correct whitespace in a type name.
2023-06-30User may want to skip tidy check sometimesyukang-1/+5
2023-06-24Rollup merge of #112915 - preveen-stack:patch-1, r=Mark-SimulacrumGuillaume Gomez-1/+1
Update runtests.py : grammar correction - Grammatically corrected the sentence
2023-06-23Add @files commandGuillaume Gomez-3/+51
2023-06-22Update runtests.py : grammar correctionPreveen P-1/+1
2023-06-16Apply changes to fix python linting errorsTrevor Gross-9/+12
2023-06-06Rollup merge of #111962 - theIDinside:better-gdb, r=Mark-SimulacrumMatthias Krüger-1/+12
Make GDB Python Pretty Printers loadable after spawning GDB, avoiding required `rust-gdb` Fixes #111961 Makes the Python pretty printer library source'able from within GDB after spawn, making the wrapper script `rust-gdb` become not the required approach to use the pretty printer library. Allows for integration into GUI:s that wrap GDB extremely easy. The previous design complicates this feature.
2023-06-05Fix #111961 r=Mark-SimulacrumSimon Farre-1/+12
Makes the Python pretty printer library source'able from within GDB after spawn. This makes `rust-gdb` not the required approach. It also provides the possibility for GUI:s that wrap GDB, to debug Rust using the pretty printer library; as well as other projects such as for instance Pernosco, which previously was not possible. This won't introduce any new unexpected behaviors for users of `rust-gdb`
2023-06-03Rollup merge of #111998 - jyn514:ra-dogfooding, r=Mark-SimulacrumMatthias Krüger-1/+8
Add other workspaces to `linkedProjects` in rust_analyzer_settings This makes go-to-definition, etc. work in cg_clif, cg_gcc, rust-analyzer, and src/tools/x.
2023-06-01Rollup merge of #112146 - jyn514:locked-deps, r=clubby789Matthias Krüger-1/+1
Fix `src/etc/pre-push.sh` when `build.locked-deps` is already set Before, cargo would error: ``` ; git push Running pre-push script /home/jyn/src/rust/x test tidy Building bootstrap Finished dev [unoptimized] target(s) in 0.02s Build stage0 tool tidy (x86_64-unknown-linux-gnu) error: the argument '--locked' cannot be used multiple times Usage: cargo build [OPTIONS] For more information, try '--help'. Build completed unsuccessfully in 0:00:00 error: failed to push some refs to 'github.com:jyn514/rust.git' ```
2023-05-31Fix `src/etc/pre-push.sh` when `build.locked-deps` is already set in config.tomljyn-1/+1
Before, cargo would error: ``` ; git push Running pre-push script /home/jyn/src/rust/x test tidy Building bootstrap Finished dev [unoptimized] target(s) in 0.02s Build stage0 tool tidy (x86_64-unknown-linux-gnu) error: the argument '--locked' cannot be used multiple times Usage: cargo build [OPTIONS] For more information, try '--help'. Build completed unsuccessfully in 0:00:00 error: failed to push some refs to 'github.com:jyn514/rust.git' ```
2023-05-31Explicit set `workspace.resolver = "1"`Weihang Lo-0/+1
rust-lang/cargo#10910 starts emitting warning if resolver is not set for 2021 edition package. We want to surpress the warning for now.
2023-05-26Add other workspaces to `linkedProjects` in `rust_analyzer_settings.json`jyn-1/+8
This makes go-to-definition, etc. work in cg_clif, cg_gcc, rust-analyzer, and src/tools/x.
2023-05-24Auto merge of #111566 - clubby789:bootstrap-override-config, r=ozkanonurbors-15/+105
Override config.toml options from command line https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/Running.20tests.20on.20precompiled.20rustc/near/357763280 cc `@jyn514`
2023-05-19Override config.toml options from command lineclubby789-15/+105
2023-05-17Fix typo in bootstrap command descriptionJakub Beránek-2/+2
2023-05-10Generate shell completions for bootstrap with Clapclubby789-0/+2726
2023-04-28Fix unavailable urlcui fliter-1/+1
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-20Spelling tools/compiletestJosh Soref-4/+4
spelling: exactly spelling: synthetic Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-14Typo fix in src/etc/rust-gdbAlan Somers-1/+1
Co-authored-by: SNCPlay42 <SNCPlay42@gmail.com>
2023-04-14Fix rust-gdb and rust-gdbgui on FreeBSDAlan Somers-3/+3
"\w" is a GNU-specific extension to sed. Avoid it. Fixes #110334 Signed-off-by: Alan Somers <asomers@gmail.com>
2023-04-11Rollup merge of #110155 - DaniPopes:rest-typos, r=jyn514Michael Goulet-1/+1
Fix typos in librustdoc, tools and config files I used [`typos`](https://github.com/crate-ci/typos) to fix all typos, minus the ones present in #110153 and in #110154. Refs #110150
2023-04-11Rollup merge of #109527 - lnicola:rust-gdb-substitute-path, r=cuviperYuki Okushi-1/+9
Set up standard library path substitution in rust-gdb and gdbgui Fixes #62945 --- Only lightly tested (in release mode, where the paths are a bit of a mess) because my `gdb` appears to crash with `internal-error: inside_main_func: Assertion 'block != nullptr' failed.` and I don't have `gdbgui`. Please review carefully my shell syntax. There's also `rust-lldb`, but I don't know the equivalent for it.
2023-04-10Fix remaining typosDaniPopes-1/+1
2023-04-04Make rust-docs optional for the Windows MSI installer.Eric Huss-0/+6
2023-04-02Fix macos pkg installer when rust-docs is not available.Eric Huss-0/+6
2023-03-23Set up standard library path substitution in rust-gdb and gdbguiLaurențiu Nicola-1/+9
2023-03-01Rename `src/etc/vscode_settings.json` to `rust_analyzer_settings.json`KittyBorgX-0/+0
2023-02-17Change src/etc/vscode_settings.json to always treat ./library as the sysroot ↵Joshua Nelson-2/+2
source See https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/False.20error.20report.20for.20.60rust-analyzer.28private-field.29.60 for further discussion; previously this had various bugs. I tested go-to-definition on: - `use std::io::Write` in `src/bootstrap/setup.rs` - `use std::cell::RefCell` in `src/librustdoc/core.rs` - `use rustc_span::symbol::sym` in `src/librustdoc/core.rs` - `use std::fmt` in `compiler/rustc_span/src/symbol.rs` - `Global` in `library/alloc/src/alloc/tests.rs` The following things still don't work: - `Global.deallocate` in alloc/tests.rs. This function is under `cfg(not(test))`, so it can't be enabled without disabling RA in `tests.rs` altogether. I think this might be fixable by moving `library/alloc/src/alloc/tests.rs` to `library/alloc/tests/alloc/lib.rs`, so it's in a different crate, but I'd like to avoid blocking this improvement on that change.
2023-02-08Set `rust-analyzer.check.invocationLocation` to `root`clubby789-0/+2
2023-02-07Allow automatically creating vscode `settings.json` from bootstrapclubby789-0/+26
2023-01-21Pass `--locked` to the x test tidy callAlbert Larsan-1/+1
This allows to fail the push when the `Cargo.lock` file needs to be updated.
2023-01-04adjust comments about pre-push.sh hookKaDiWa-1/+1
2022-12-17Make the pre-push script work on directories with spacesJoshua Nelson-10/+2
As a secondary benefit, it's also a lot simpler.
2022-11-27Fix natvis `VecDeque` formatterMarkus Everling-8/+7
2022-11-20Update VecDeque implementationMarkus Everling-14/+6
2022-10-31[debuginfo] Make debuginfo type names for slices and str consistent.Michael Woerister-6/+14
Before this PR, the compiler would emit the debuginfo name `slice$<T>` for all kinds of slices, regardless of whether they are behind a reference or not and regardless of the kind of reference. As a consequence, the types `Foo<&[T]>`, `Foo<[T]>`, and `Foo<&mut [T]>` would end up with the same type name `Foo<slice$<T> >` in debuginfo, making it impossible to disambiguate between them by name. Similarly, `&str` would get the name `str` in debuginfo, so the debuginfo name for `Foo<str>` and `Foo<&str>` would be the same. In contrast, `*const [bool]` and `*mut [bool]` would be `ptr_const$<slice$<bool> >` and `ptr_mut$<slice$<bool> >`, i.e. the encoding does not lose information about the type. This PR removes all special handling for slices and `str`. The types `&[bool]`, `&mut [bool]`, and `&str` thus get the names `ref$<slice2$<bool> >`, `ref_mut$<slice2$<bool> >`, and `ref$<str$>` respectively -- as one would expect.
2022-10-14Rollup merge of #102092 - kxxt:patch-1, r=joshtriplettMatthias Krüger-2/+8
refactor: use grep -E/-F instead of fgrep/egrep `egrep` and `fgrep` are obsolescent now. This PR updates all `egrep` and `fgrep` commands to `grep -E` and `grep -F`. Running egrep/fgrep command with grep v3.8 will output the following warning to stderr: ``` egrep: warning: egrep is obsolescent; using grep -E ``` - https://www.phoronix.com/news/GNU-Grep-3.8-Stop-egrep-fgrep - https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html
2022-10-08Rollup merge of #99194 - ↵Matthias Krüger-2/+1
simlay:simlay/update-rust-gdbgui-gdb-args-to-gdb-cmd, r=Mark-Simulacrum Fix gdb-cmd for rust-gdbgui With https://github.com/cs01/gdbgui/pull/198, the way that gdbgui arguments were specified changed. I've tested this with program generated from `cargo new --bin` and it worked as gdbgui should. Closes #76383.
2022-09-28Add a niche to `Duration`, unix `SystemTime`, and non-apple `Instant`beetrees-2/+2
2022-09-26simplifykxxt-4/+1
2022-09-22refactor: use grep -E/-F instead of fgrep/egrepkxxt-2/+11
2022-09-14Remove check_missing_items.pyNixon Enraght-Moony-202/+0
2022-09-13Rustdoc-Json: Don't loose subitems of foreign traits.Nixon Enraght-Moony-2/+7