about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2022-11-15Compare picks via `Self` type and associated item idOli Scherer-2/+28
2022-11-15Expose the fallibilty of the unstable lint emission in the method nameOli Scherer-4/+9
2022-11-15Pull the unstable name collision hint emission out of method probingOli Scherer-60/+60
2022-11-15Remove the fishy need for a PartialEq implOli Scherer-3/+3
2022-11-15Remove some redundant span argumentsOli Scherer-57/+32
2022-11-15Remove an unnecessary `resolve_vars_if_possible`Oli Scherer-5/+2
2022-11-15Flip a boolean that was used wrongly (has no effect though)Oli Scherer-1/+1
2022-11-15Auto merge of #104428 - matthiaskrgr:rollup-jo3078i, r=matthiaskrgrbors-350/+1445
Rollup of 13 pull requests Successful merges: - #103842 (Adding Fuchsia compiler testing script, docs) - #104354 (Remove leading newlines from `NonZero*` doc examples) - #104372 (Update compiler-builtins) - #104380 (rustdoc: remove unused CSS `code { opacity: 1 }`) - #104381 (Remove dead NoneError diagnostic handling) - #104383 (Remove unused symbols and diagnostic items) - #104391 (Deriving cleanups) - #104403 (Specify language of code comment to generate document) - #104404 (Fix missing minification for static files) - #104413 ([llvm-wrapper] adapt for LLVM API change) - #104415 (rustdoc: fix corner case in search keyboard commands) - #104422 (Fix suggest associated call syntax) - #104426 (Add test for #102154) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-15Auto merge of #104418 - matthiaskrgr:rollup-y4i6xjc, r=matthiaskrgrbors-419/+647
Rollup of 11 pull requests Successful merges: - #101967 (Move `unix_socket_abstract` feature API to `SocketAddrExt`.) - #102470 (Stabilize const char convert) - #104223 (Recover from function pointer types with generic parameter list) - #104229 (Don't print full paths in overlap errors) - #104294 (Don't ICE with inline const errors during MIR build) - #104332 (Fixed some `_i32` notation in `maybe_uninit`’s doc) - #104349 (fix some typos in comments) - #104350 (Fix x finding Python on Windows) - #104356 (interpret: make check_mplace public) - #104364 (rustdoc: Resolve doc links in external traits having local impls) - #104378 (Bump chalk to v0.87) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-15Rollup merge of #104426 - aDotInTheVoid:test-102154, r=compiler-errorsMatthias Krüger-0/+13
Add test for #102154 Closes #102154
2022-11-15Rollup merge of #104422 - ↵Matthias Krüger-145/+239
compiler-errors:fix-suggest_associated_call_syntax, r=BoxyUwU Fix suggest associated call syntax Fixes #104412
2022-11-15Rollup merge of #104415 - notriddle:notriddle/search-keyboard-commands, ↵Matthias Krüger-0/+29
r=GuillaumeGomez rustdoc: fix corner case in search keyboard commands This fixes a bug when that shows up in nightly and in stable where: * Search something * Press down: first result is highlighted * Press down: second result is highlighted * Press down: third result is highlighted * Press right: first result of second tab is highlighted * Press left: third result of first tab is highlighted * Press up: second result is highlighted * Press up: first result is highlighted * Press up: Search box is highlighted * Press down: **third result** is highlighted, where it ought to highlight the first result
2022-11-15Rollup merge of #104413 - krasimirgg:llvm-16-mref, r=nikicMatthias Krüger-1/+1
[llvm-wrapper] adapt for LLVM API change for https://github.com/llvm/llvm-project/commit/feda983ff89b7be27a9bfabbabce7d2b59869eba.
2022-11-15Rollup merge of #104404 - GuillaumeGomez:fix-missing-minification, r=notriddleMatthias Krüger-2/+6
Fix missing minification for static files It's a fix for https://github.com/rust-lang/rust/pull/101702. The problem was that `Path::ends_with` doesn't do what we thought it does: it checks if the entire item is the last path part, no just if the "path string" ends with the given argument. So instead, I just used the `extension()` method to get the information we want. cc `@jsha` r? `@notriddle` PS: Is it worth it to add a CI test to ensure that the minification was performed on JS and CSS files or not?
2022-11-15Rollup merge of #104403 - koka831:lint-doc, r=Dylan-DPCMatthias Krüger-1/+2
Specify language of code comment to generate document Fix `let_underscore_drop` comment https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#example-7
2022-11-15Rollup merge of #104391 - nnethercote:deriving-cleanups, r=jackh726Matthias Krüger-59/+38
Deriving cleanups Fixing some minor problems `@RalfJung` found in #99046. r? `@RalfJung`
2022-11-15Rollup merge of #104383 - WaffleLapkin:rustc_undiagnostic_item, ↵Matthias Krüger-79/+7
r=compiler-errors Remove unused symbols and diagnostic items As the title suggests, this removes unused symbols from `sym::` and `#[rustc_diagnostic_item]` annotations that weren't mentioned anywhere. Originally I tried to use grep, to find symbols and item names that are never mentioned via `sym::name`, however this produced a lot of false positives (?), for example clippy matching on `Symbol::as_str` or macros "implicitly" adding `sym::`. I ended up fixing all these false positives (?) by hand, but tbh I'm not sure if it was worth it...
2022-11-15Rollup merge of #104381 - mejrs:none_error, r=compiler-errorsMatthias Krüger-36/+8
Remove dead NoneError diagnostic handling `NoneError` was removed some time ago, so this was dead code.
2022-11-15Rollup merge of #104380 - rust-lang:notriddle/code-opacity, r=GuillaumeGomezMatthias Krüger-4/+0
rustdoc: remove unused CSS `code { opacity: 1 }` According to https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/CSS.20cleanup this style was added for declarations that no longer use opacity.
2022-11-15Rollup merge of #104372 - Ayush1325:compiler-builtins, r=JohnTitorMatthias Krüger-1/+1
Update compiler-builtins This was originally a part of https://github.com/rust-lang/rust/pull/100316. However, extracting it to a seperate PR should help with any extra testing that might be needed. Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
2022-11-15Rollup merge of #104354 - lukas-code:blank-lines-2, r=JohnTitorMatthias Krüger-20/+6
Remove leading newlines from `NonZero*` doc examples Like https://github.com/rust-lang/rust/pull/103045, but for `NonZero*`. `@rustbot` label A-docs
2022-11-15Rollup merge of #103842 - andrewpollack:add-fuchsia-test-script, r=tmandryMatthias Krüger-2/+1095
Adding Fuchsia compiler testing script, docs Adding Fuchsia compiler testing script and related docs updates r? `@tmandry` cc. `@djkoloski`
2022-11-15Auto merge of #104091 - BelovDV:issue-103044, r=petrochenkovbors-19/+51
Wrap bundled static libraries into object files Fixes #103044 (not sure, couldn't test locally) Bundled static libraries should be wrapped into object files as it's done for metadata file. r? `@petrochenkov`
2022-11-14Add test for #102154Nixon Enraght-Moony-0/+13
2022-11-14rustdoc: fix corner case in search keyboard commandsMichael Howell-0/+29
2022-11-14Add regression testMichael Goulet-0/+19
2022-11-14Do autoderef to match impl against rcvrMichael Goulet-46/+95
2022-11-14Move logic into methodMichael Goulet-116/+140
2022-11-14Drive-by: actual -> rcvr_tyMichael Goulet-28/+30
2022-11-14Rollup merge of #104378 - compiler-errors:chalk-up, r=jackh726Matthias Krüger-125/+32
Bump chalk to v0.87 1. Removes `ReEmpty` from chalk 2. Adds support for the `std::marker::Tuple` trait
2022-11-14Rollup merge of #104364 - petrochenkov:docice2, r=GuillaumeGomezMatthias Krüger-1/+27
rustdoc: Resolve doc links in external traits having local impls For external impls it was done in https://github.com/rust-lang/rust/pull/103192 right away, but the local impl case was forgotten. Fixes https://github.com/rust-lang/rust/issues/104145.
2022-11-14Rollup merge of #104356 - RalfJung:interpret-check-mplace, r=oli-obkMatthias Krüger-9/+9
interpret: make check_mplace public This helps avoid code duplication in https://github.com/rust-lang/miri/pull/2661.
2022-11-14Rollup merge of #104350 - SparkyPotato:fix-x-wrapper, r=jyn514Matthias Krüger-4/+5
Fix x finding Python on Windows `x` searches through the path for `{dir}/python{2|3}?`, but this fails on Windows because the appropriate path is `{dir}/python.exe`. This PR adds the expected `.exe` extension on Windows while searching.
2022-11-14Rollup merge of #104349 - rustaceanclub:master, r=oli-obkMatthias Krüger-15/+15
fix some typos in comments
2022-11-14Rollup merge of #104332 - Elarcis:maybe_uninit_doc_fix, r=m-ou-seMatthias Krüger-2/+2
Fixed some `_i32` notation in `maybe_uninit`’s doc This PR just changed two lines in the documentation for `MaybeUninit`: ```rs let val = 0x12345678i32; ``` was changed to: ```rs let val = 0x12345678_i32; ``` in two doctests, making the values a tad easier to read. It does not seem like there are other literals needing this change in the file.
2022-11-14Rollup merge of #104294 - compiler-errors:inline-ct-err-in-mir-build, ↵Matthias Krüger-0/+24
r=davidtwco Don't ICE with inline const errors during MIR build Fixes #104277
2022-11-14Rollup merge of #104229 - compiler-errors:overlap-full-path, r=davidtwcoMatthias Krüger-156/+157
Don't print full paths in overlap errors We don't print the full path in other diagnostics -- I don't think it particularly helps with the error message. I also delayed the printing until actually needing to render the error message. r? diagnostics
2022-11-14Rollup merge of #104223 - fmease:recover-fn-ptr-with-generics, r=estebankMatthias Krüger-3/+228
Recover from function pointer types with generic parameter list Give a more helpful error when encountering function pointer types with a generic parameter list like `fn<'a>(&'a str) -> bool` or `fn<T>(T) -> T` and suggest moving lifetime parameters to a `for<>` parameter list. I've added a bunch of extra code to properly handle (unlikely?) corner cases like `for<'a> fn<'b>()` (where there already exists a `for<>` parameter list) correctly suggesting `for<'a, 'b> fn()` (merging the lists). If you deem this useless, I can simplify the code by suggesting nothing at all in this case. I am quite open to suggestions regarding the wording of the diagnostic messages. Fixes #103487. ``@rustbot`` label A-diagnostics r? diagnostics
2022-11-14Rollup merge of #102470 - est31:stabilize_const_char_convert, r=joshtriplettMatthias Krüger-9/+8
Stabilize const char convert Split out `const_char_from_u32_unchecked` from `const_char_convert` and stabilize the rest, i.e. stabilize the following functions: ```Rust impl char { pub const fn from_u32(self, i: u32) -> Option<char>; pub const fn from_digit(self, num: u32, radix: u32) -> Option<char>; pub const fn to_digit(self, radix: u32) -> Option<u32>; } // Available through core::char and std::char mod char { pub const fn from_u32(i: u32) -> Option<char>; pub const fn from_digit(num: u32, radix: u32) -> Option<char>; } ``` And put the following under the `from_u32_unchecked` const stability gate as it needs `Option::unwrap` which isn't const-stable (yet): ```Rust impl char { pub const unsafe fn from_u32_unchecked(i: u32) -> char; } // Available through core::char and std::char mod char { pub const unsafe fn from_u32_unchecked(i: u32) -> char; } ``` cc the tracking issue #89259 (which I'd like to keep open for `const_char_from_u32_unchecked`).
2022-11-14Rollup merge of #101967 - jmillikin:linux-abstract-socket-addr, r=joshtriplettMatthias Krüger-95/+140
Move `unix_socket_abstract` feature API to `SocketAddrExt`. The pre-stabilized API for abstract socket addresses exposes methods on `SocketAddr` that are only enabled for `cfg(any(target_os = "android", target_os = "linux"))`. Per discussion in <https://github.com/rust-lang/rust/issues/85410>, moving these methods to an OS-specific extension trait is required before stabilization can be considered. This PR makes four changes: 1. The internal module `std::os::net` contains logic for the unstable feature `tcp_quickack` (https://github.com/rust-lang/rust/issues/96256). I moved that code into `linux_ext/tcp.rs` and tried to adjust the module tree so it could accommodate a second unstable feature there. 2. Moves the public API out of `impl SocketAddr`, into `impl SocketAddrExt for SocketAddr` (the headline change). 3. The existing function names and docs for `unix_socket_abstract` refer to addresses as being created from abstract namespaces, but a more accurate description is that they create sockets in *the* abstract namespace. I adjusted the function signatures correspondingly and tried to update the docs to be clearer. 4. I also tweaked `from_abstract_name` so it takes an `AsRef<[u8]>` instead of `&[u8]`, allowing `b""` literals to be passed directly. Issues: 1. The public module `std::os::linux::net` is marked as part of `tcp_quickack`. I couldn't figure out how to mark a module as being part of two unstable features, so I just left the existing attributes in place. My hope is that this will be fixed as a side-effect of stabilizing either feature.
2022-11-14[llvm-wrapper] adapt for LLVM API changeKrasimir Georgiev-1/+1
2022-11-14Fix missing minification for static filesGuillaume Gomez-2/+6
2022-11-14Specify language of code comment to generate documentkoka-1/+2
2022-11-14Wrap bundlen static libraries into object filesDaniil Belov-19/+51
2022-11-14Auto merge of #104387 - Manishearth:rollup-9e551p5, r=Manishearthbors-56/+681
Rollup of 9 pull requests Successful merges: - #103709 (ci: Upgrade dist-x86_64-netbsd to NetBSD 9.0) - #103744 (Upgrade cc for working is_flag_supported on cross-compiles) - #104105 (llvm: dwo only emitted when object code emitted) - #104158 (Return .efi extension for EFI executable) - #104181 (Add a few known-bug tests) - #104266 (Regression test for coercion of mut-ref to dyn-star) - #104300 (Document `Path::parent` behavior around relative paths) - #104304 (Enable profiler in dist-s390x-linux) - #104362 (Add `delay_span_bug` to `AttrWrapper::take_for_recovery`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-11-14Remove TraitDef::generics.Nicholas Nethercote-47/+33
Because it's always empty.
2022-11-14Auto merge of #104188 - jyn514:download-config-only, r=Mark-Simulacrumbors-637/+663
Make all download functions need only Config, not Builder This also adds a new `mod download` instead of scattering the download code across `config.rs` and `native.rs`. This is the simplest and also most bit-rotty part of https://github.com/rust-lang/rust/pull/102282. Opening it earlier so it's not mixed in with behavior changes and to avoid rebase hell. cc https://github.com/rust-lang/rust/issues/94829 (which nows has the hackmd linked). r? `@Mark-Simulacrum`
2022-11-14Remove `addr_of` argument from `create_struct_pattern_fields`.Nicholas Nethercote-9/+3
Because it's always false.
2022-11-13Make all download functions need only Config, not BuilderJoshua Nelson-637/+663
This also adds a new `mod download` instead of scattering the download code across `config.rs` and `native.rs`.
2022-11-13Rollup merge of #104362 - WaffleLapkin:span_bug_won't_come_on_time_today, ↵Manish Goregaokar-13/+26
r=Aaron1011 Add `delay_span_bug` to `AttrWrapper::take_for_recovery` `take_for_recovery` should only be used for recovery (when we should already have an error), so using `delay_span_bug` seems appropriate. cc `@Aaron1011` (you've added the `FIXME` that this pr fixes)