about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-15fix: Don't return inlay hints outside requested rangeLukas Wirth-24/+28
2025-01-15nyaalcnr-2/+2
2025-01-15Merge pull request #18940 from Veykril/push-ulowqkpprslqLukas Wirth-40/+36
fix: Fix semantics not always correctly caching file roots
2025-01-15Merge pull request #18929 from ChayimFriedman2/i-acknowledge-defeatLukas Wirth-0/+31
fix: Fix another bug when reaching macro expansion limit caused a stack overflow
2025-01-15Merge pull request #18939 from Veykril/push-wztmylkyqttuLukas Wirth-32/+42
Flip on typing config to be opt-in, better defaults
2025-01-15fix: Fix semantics not always correctly caching file rootsLukas Wirth-40/+36
2025-01-15Fix wrong fixture1hakusai1-1/+1
2025-01-15Auto merge of #134353 - oli-obk:safe-target-feature-unsafe-by-default, ↵bors-16/+36
r=wesleywiser Treat safe target_feature functions as unsafe by default [less invasive variant] This unblocks * #134090 As I stated in https://github.com/rust-lang/rust/pull/134090#issuecomment-2541332415 I think the previous impl was too easy to get wrong, as by default it treated safe target feature functions as safe and had to add additional checks for when they weren't. Now the logic is inverted. By default they are unsafe and you have to explicitly handle safe target feature functions. This is the less (imo) invasive variant of #134317, as it doesn't require changing the Safety enum, so it only affects FnDefs and nothing else, as it should.
2025-01-15Use adjusted type1hakusai1-1/+1
2025-01-15Add test cases1hakusai1-2/+130
2025-01-15remove outdated FIXMEonur-ozkan-2/+0
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-15Flip on typing config to be opt-in, better defaultsLukas Wirth-28/+33
2025-01-15Auto merge of #135525 - jhpratt:rollup-4gu2wpm, r=jhprattbors-46/+102
Rollup of 7 pull requests Successful merges: - #132397 (Make missing_abi lint warn-by-default.) - #133807 (ci: Enable opt-dist for dist-aarch64-linux builds) - #134143 (Convert `struct FromBytesWithNulError` into enum) - #134338 (Use a C-safe return type for `__rust_[ui]128_*` overflowing intrinsics) - #134678 (Update `ReadDir::next` in `std::sys::pal::unix::fs` to use `&raw const (*p).field` instead of `p.byte_offset().cast()`) - #135424 (Detect unstable lint docs that dont enable their feature) - #135520 (Make sure we actually use the right trivial lifetime substs when eagerly monomorphizing drop for ADTs) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-15Rollup merge of #135424 - compiler-errors:unstable-lint, r=ehussJacob Pratt-24/+51
Detect unstable lint docs that dont enable their feature Makes sure that we detect cases where unstable lint's docs don't enable the corresponding feature. r? ehuss
2025-01-15Rollup merge of #133807 - mrkajetanp:ci-aarch64-opt-dist, r=KobzolJacob Pratt-10/+36
ci: Enable opt-dist for dist-aarch64-linux builds Move the CI dist-aarch64-linux job to an aarch64 runner and enable optimised dist builds with the opt-dist pipeline. For the time being, disable bolt on aarch64 due to upstream bolt bugs. r? `@Kobzol` cc `@lqd` try-job: dist-aarch64-linux
2025-01-15Rollup merge of #132397 - m-ou-se:warn-missing-abi, r=NadrierilJacob Pratt-12/+15
Make missing_abi lint warn-by-default. This makes the missing_abi lint warn-by-default, as suggested here: https://github.com/rust-lang/rfcs/pull/3722#issuecomment-2447719047 This needs a lang FCP.
2025-01-15Treat safe target_feature functions as unsafe by defaultOli Scherer-2/+14
2025-01-15Early exit in search properlyLukas Wirth-4/+9
2025-01-15show deprecation message in rustdoc, tooRalf Jung-5/+11
2025-01-15intrinsics: deprecate calling them via the unstable std::intrinsics pathRalf Jung-31/+31
2025-01-15allowed_through_unstable_modules: support showing a deprecation message when ↵Ralf Jung-6/+6
the unstable module name is used
2025-01-15Merge pull request #18925 from Veykril/push-mtxxvpowwtrtLukas Wirth-2/+88
feat: Render type parameter projection target bounds in inlays
2025-01-15feat: Render type parameter projection target bounds in inlaysLukas Wirth-2/+88
2025-01-15Merge pull request #18917 from boattime/masterLukas Wirth-37/+110
feat: Add dereferencing autocomplete
2025-01-14fix some more typosRyan Mehri-16/+16
2025-01-15Auto merge of #135519 - workingjubilee:rollup-xq9yryh, r=workingjubileebors-40/+92
Rollup of 11 pull requests Successful merges: - #134913 (bootstrap: do not rely on LIBRARY_PATH env variable) - #134940 (Make sure to scrape region constraints from deeply normalizing type outlives assumptions in borrowck) - #135228 (Improve `DispatchFromDyn` and `CoerceUnsized` impl validation) - #135264 (Consider more erroneous layouts as `LayoutError::ReferencesError` to suppress spurious errors) - #135302 (for purely return-type based searches, deprioritize clone-like functions) - #135353 (re-add --disable-minification to rustdoc) - #135380 (Make sure we can produce `ConstArgHasWrongType` errors for valtree consts) - #135423 (Enforce syntactical stability of const traits in HIR) - #135425 (Do not consider traits that have unsatisfied const conditions to be conditionally const) - #135499 (fix underlining of hovered intra-doc links.) - #135505 (Fix clippy lints in rustdoc) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-15Merge pull request #2202 from Kobzol/pull-ci许杰友 Jieyou Xu (Joe)-0/+73
2025-01-14Fix some broken linksNoah Lev-11/+10
* Rename `StringReader -> Lexer` * Remove deleted `Query` struct * Update some internal links
2025-01-15Merge from rustcThe Miri Cronjob Bot-47/+603
2025-01-15Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-01-14Rollup merge of #135505 - GuillaumeGomez:clippy, r=notriddleJubilee-4/+4
Fix clippy lints in rustdoc Some more clippy lint fixes. r? `@notriddle`
2025-01-14Rollup merge of #135499 - lolbinarycat:rustdoc-link-underline-133484, ↵Jubilee-0/+2
r=GuillaumeGomez fix underlining of hovered intra-doc links. fixes https://github.com/rust-lang/rust/issues/133484 i'm not sure how to create a test case for this, or if that is even possible.
2025-01-14Rollup merge of #135353 - lolbinarycat:rustdoc-disable-minification, r=notriddleJubilee-2/+23
re-add --disable-minification to rustdoc this also makes the rust.docs-minification option work as advertised in config.toml nothing fancy this time, this is intended to be perma-unstable. it's only really here for the benefit of rustdoc devs. mitegates https://github.com/rust-lang/rust/issues/135345 It was removed in https://github.com/rust-lang/rust/commit/f9e1f6ffdf03ec33cb29e20c88fc7bcc938c7f42.
2025-01-14Rollup merge of #135302 - lolbinarycat:rustdoc-search-return-sort-134935, ↵Jubilee-0/+46
r=notriddle for purely return-type based searches, deprioritize clone-like functions closes https://github.com/rust-lang/rust/issues/134935
2025-01-14Rollup merge of #134913 - rhelmot:master, r=jieyouxuJubilee-34/+17
bootstrap: do not rely on LIBRARY_PATH env variable Closes https://github.com/rust-lang/rust/issues/134811 try-job: test-various try-job: armhf-gnu try-job: x86_64-apple-1 try-job: x86_64-apple-2 try-job: aarch64-apple try-job: x86_64-msvc try-job: i686-msvc try-job: x86_64-mingw-1 try-job: x86_64-mingw-2 try-job: i686-mingw
2025-01-15Auto merge of #135385 - rust-lang:cargo_update, r=clubby789bors-52/+131
Weekly `cargo update` Automation to keep dependencies in `Cargo.lock` current. The following is the output from `cargo update`: ```txt compiler & tools dependencies: Locking 27 packages to latest compatible versions Updating bitflags v2.6.0 -> v2.7.0 Updating clap v4.5.23 -> v4.5.26 Updating clap_builder v4.5.23 -> v4.5.26 Updating clap_complete v4.5.40 -> v4.5.42 Updating clap_derive v4.5.18 -> v4.5.24 Updating handlebars v6.2.0 -> v6.3.0 Updating libz-sys v1.1.20 -> v1.1.21 Updating linux-raw-sys v0.4.14 -> v0.4.15 Updating phf v0.11.2 -> v0.11.3 Updating phf_codegen v0.11.2 -> v0.11.3 Updating phf_generator v0.11.2 -> v0.11.3 Updating phf_shared v0.11.2 -> v0.11.3 Updating pin-project-lite v0.2.15 -> v0.2.16 Updating proc-macro2 v1.0.92 -> v1.0.93 Updating rustix v0.38.42 -> v0.38.43 Updating serde_json v1.0.134 -> v1.0.135 Adding siphasher v1.0.1 Updating syn v2.0.94 -> v2.0.96 Updating thiserror v2.0.9 -> v2.0.11 Updating thiserror-impl v2.0.9 -> v2.0.11 Updating tokio v1.42.0 -> v1.43.0 Updating uuid v1.11.0 -> v1.11.1 Updating wasm-encoder v0.222.0 -> v0.223.0 Adding wasmparser v0.223.0 Updating wast v222.0.0 -> v223.0.0 Updating wat v1.222.0 -> v1.223.0 Updating xattr v1.3.1 -> v1.4.0 note: pass `--verbose` to see 39 unchanged dependencies behind latest library dependencies: Locking 0 packages to latest compatible versions note: pass `--verbose` to see 4 unchanged dependencies behind latest rustbook dependencies: Locking 27 packages to latest compatible versions Updating bitflags v2.6.0 -> v2.7.0 Updating cc v1.2.7 -> v1.2.8 Updating clap v4.5.23 -> v4.5.26 Updating clap_builder v4.5.23 -> v4.5.26 Updating clap_complete v4.5.40 -> v4.5.42 Updating clap_derive v4.5.18 -> v4.5.24 Adding darling v0.20.10 Adding darling_core v0.20.10 Adding darling_macro v0.20.10 Adding derive_builder v0.20.2 Adding derive_builder_core v0.20.2 Adding derive_builder_macro v0.20.2 Updating handlebars v6.2.0 -> v6.3.0 Adding ident_case v1.0.1 Updating linux-raw-sys v0.4.14 -> v0.4.15 Updating phf v0.11.2 -> v0.11.3 Updating phf_codegen v0.11.2 -> v0.11.3 Updating phf_generator v0.11.2 -> v0.11.3 Updating phf_shared v0.11.2 -> v0.11.3 Updating proc-macro2 v1.0.92 -> v1.0.93 Updating rustix v0.38.42 -> v0.38.43 Updating serde_json v1.0.134 -> v1.0.135 Adding siphasher v1.0.1 Updating syn v2.0.94 -> v2.0.96 Updating thiserror v2.0.9 -> v2.0.11 Updating thiserror-impl v2.0.9 -> v2.0.11 Updating winnow v0.6.22 -> v0.6.24 ```
2025-01-14add tidy warning for unrecognized directivescod10129-30/+68
This makes tidy warn on the presence of any directives it does not recognize. There are changes in compiletest because that file used "tidy-alphabet" instead of "tidy-alphabetical".
2025-01-14TRPL: incorporate all backward-compatible Edition changesChris Krycho-0/+0
This incorporates all the backwards-compatible changes for the 2024 Edition. There will also be a follow-on PR to land revisions to the new chapter on async so it can be as ready as possible when officially released with 1.85 and the 2024 Edition. Additionally, there are a few other, non-backward-compatible, changes (largely around `use<..>`) we can only land using the stable edition, which we may or may not be able to land in 1.85 by using the beta toolchain in the example code. Those may or may not be ported over, depending on how that does or does not play with the infrastructure.
2025-01-14Fix clippy lintsGuillaume Gomez-4/+4
2025-01-14fix underlining of hovered intra-doc links.binarycat-0/+2
fixes https://github.com/rust-lang/rust/issues/133484
2025-01-14Run clippy for rustc_codegen_gccJakub Beránek-6/+19
2025-01-14Hide syntax tree view by defaultDavid Richey-1/+1
2025-01-14Un-spaghettify the control flow of generate_lint_outputMichael Goulet-40/+49
Co-authored-by: Eric Huss <eric@huss.org>
2025-01-14Rollup merge of #135495 - yotamofek:close-backtick, r=KobzolMatthias Krüger-1/+1
Add missing closing backtick in commit hook message 🐸 This has been really bugging me 😮‍💨
2025-01-14Rollup merge of #135476 - kleisauke:remove-asmjs-remnant, r=KobzolMatthias Krüger-24/+0
Remove remnant of asmjs See: https://github.com/rust-lang/rust/issues/131467#issuecomment-2529314603.
2025-01-14Rollup merge of #134880 - as1100k-forks:fix-rustdoc-json-path-name, ↵Matthias Krüger-2/+2
r=aDotInTheVoid Made `Path::name` only have item name rather than full name Closes #134853 This PR makes `Path::name` to only have item name rather than full name, i.e. with the following code ```rust pub mod foo { pub struct Bar; } pub fn get_bar() -> foo::Bar { foo::Bar } ``` and running `./rustdoc ./demo.rs -wjson -Zunstable-options` gives: ```json { "41": { "id": 41, "name": "get_bar", "inner": { "function": { "sig": { "inputs": [], "output": { "resolved_path": { "name": "Bar", "id": 0, "args": { "angle_bracketed": { "args": [], "constraints": [] } } } } } } } } } ``` _Information which isn't useful here was trimmed_ r? aDotInTheVoid
2025-01-14Rollup merge of #134216 - GuillaumeGomez:jump-to-def-pats, r=fmeaseMatthias Krüger-9/+39
Enable "jump to def" feature on patterns Part of https://github.com/rust-lang/rust/issues/89095. Pattern (as in "patterns in pattern matching") were not handled by the feature, it's now added. It all started when I realized that prelude values like `Some` or `Err` were not getting a link generated either (added support for it in the first commit). r? ``@fmease``
2025-01-14Add missing closing backtick in commit hook message 🐸Yotam Ofek-1/+1
2025-01-15tests: port `extern-fn-reachable` to rmake.rs许杰友 Jieyou Xu (Joe)-1/+0
Co-authored-by: binarycat <binarycat@envs.net>
2025-01-14rustc-dev-guide: add note about not adding ↵Ralf Jung-1/+2
rustc_allowed_through_unstable_modules to more items