- 21 10月, 2022 11 次提交
-
-
由 Matthias Krüger 提交于
interpret: remove an incorrect assertion This fixes an ICE in Miri, [reported](https://rust-lang.zulipchat.com/#narrow/stream/269128-miri/topic/SwitchInt.20with.20no.20targets.3F) by `@saethlin.` The faulty assertion was introduced by https://github.com/rust-lang/rust/commit/432535da2b5144d467056efcfa6864d35ba2de0f, when a previously correct assertion checking that the `otherwise` target exists got replaced by this assertion checking that at least one more target beyond `otherwise` exists. Sadly we don't have a small reproducer so I don't think we can easily add a testcase.
-
由 Matthias Krüger 提交于
Don't label `src/test` tests as `A-testsuite` Nearly every PR modifies `src/test`; A-testsuite is meant to be for things affecting the test runners themselves. cc https://github.com/rust-lang/rust/pull/103204#discussion_r1000868781 r? `@jyn514`
-
由 Matthias Krüger 提交于
fix typo
-
由 Matthias Krüger 提交于
+/- shortcut now only expand/collapse, not both Fixes https://github.com/rust-lang/rust/issues/102772. r? ```@notriddle```
-
由 Matthias Krüger 提交于
Fixed docs typo in `library/std/src/time.rs` * Changed comment from `Previous rust versions panicked when self was earlier than the current time.` to `Previous rust versions panicked when the current time was earlier than self.` * Resolves #103282.
-
由 Matthias Krüger 提交于
Adjust `transmute{,_copy}` to be clearer about which of `T` and `U` is input vs output This is essentially a documentation-only change (although it does touch code in an irrelevant way).
-
由 Matthias Krüger 提交于
Clarify startup A small follow-up to #102769. r? `@jyn514`
-
由 Matthias Krüger 提交于
Fix `SelfVisitor::is_self_ty` ICE Fixes #103202
-
由 Ralf Jung 提交于
-
由 Michael Goulet 提交于
-
由 bors 提交于
linker: Fix weak lang item linking with combination windows-gnu + LLD + LTO In https://github.com/rust-lang/rust/pull/100404 this logic was originally disabled for MSVC due to issues with LTO, but the same issues appear on windows-gnu with LLD because that LLD uses the same underlying logic as MSVC LLD, just with re-syntaxed command line options. So this PR just disables it for LTO builds in general.
-
- 20 10月, 2022 29 次提交
-
-
由 bors 提交于
Rollup of 6 pull requests Successful merges: - #103197 (Stabilize proc_macro::Span::source_text) - #103251 (Fix item declaration highlighting) - #103262 (Adjusting test to needs-unwind, with linking issue) - #103268 (rustdoc: remove no-op CSS `nav.sub { font-size: 1rem }`) - #103272 (Remove extra spaces in docs) - #103276 (Erase regions before checking for `Default` in uninitialized binding error) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
-
由 bors 提交于
Fix the bug of next_point in source_map There is a bug in `next_point`, the new span won't move to next position when be called in the first time. For this reason, our current code is working like this: 1. When we really want to move to the next position, we called two times of `next_point` 2. Some code which use `next_point` actually done the same thing with `shrink_to_hi` This fix make sure when `next_point` is called, span will move with the width at least 1, and also work correctly in the scenario of multiple bytes. Ref: https://github.com/rust-lang/rust/pull/103140#discussion_r997710998 r? `@davidtwco`
-
由 cui fliter 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Matthias Krüger 提交于
Erase regions before checking for `Default` in uninitialized binding error Fixes #103250
-
由 Matthias Krüger 提交于
Remove extra spaces in docs Removing some random extra spaces in the examples for `core::sync::atomic`. r? `@thomcc`
-
由 Matthias Krüger 提交于
rustdoc: remove no-op CSS `nav.sub { font-size: 1rem }` This rule originated as a `font-size: 16px`, when body had `font-size: 13px` set in 4fd061c4. It remained even when body's font size was bumped up to 16px, 4d5f4ff5, making the rule a no-op, and was carried forward when it was converted to 1rem in cc181204.
-
由 Matthias Krüger 提交于
Adjusting test to needs-unwind, with linking issue Test requires `needs-unwind` (see linked issue #103261)
-
由 Matthias Krüger 提交于
Fix item declaration highlighting Fixes https://github.com/rust-lang/rust/issues/103050. As mentioned in the issue, https://github.com/rust-lang/rust/pull/102924 introduced this regression. This PR partially reverts it and adds a regression test. r? `@notriddle`
-
由 Matthias Krüger 提交于
Stabilize proc_macro::Span::source_text Splits `proc_macro::Span::source_text` into a new feature gate and stabilizes it. The [FCP is complete](https://github.com/rust-lang/rust/issues/101991#issuecomment-1279393265). ```Rust impl Span { pub fn source_text(&self) -> Option<String>; } ``` Closes #101991
-
由 bors 提交于
Deny hashing ty/re/ct inference variables cc `@cjgillot` and https://github.com/rust-lang/rust/pull/102695#issuecomment-1275706528 r? `@lcnr` best reviewed one commit at a time, mostly because the second commit that fixes `ClosureOutlivesRequirement` is mostly noise because of losing its `<'tcx>` lifetime parameter.
-
由 Thom Chiovoloni 提交于
-
由 Takayuki Maeda 提交于
-
由 John Higgins 提交于
-
由 bors 提交于
Do anonymous lifetimes remapping correctly for nested rpits Closes #103141 r? `@cjgillot` `@nikomatsakis` This fixes a stable to stable regression that in my opinion is `P-critical` so, we probably want to backport it all the way up to stable.
-
由 Andrew Pollack 提交于
-
由 bors 提交于
Require lifetime bounds for opaque types in order to allow hidden types to capture said lifetimes fixes #96996 cc `@aliemjay`
-
由 Michael Goulet 提交于
-
由 clubby789 提交于
-
由 bors 提交于
Rollup of 7 pull requests Successful merges: - #103211 (rustdoc: remove class name `location` from sidebar sibling nav) - #103223 (Use already checked RHS ty for LHS deref suggestions) - #103237 (Clean up codeblock-tooltip rustdoc-gui test) - #103239 (Allow #[unstable] impls for fn() with unstable abi.) - #103246 (Mark `rust-analyzer` as a host-only tool) - #103257 (rustdoc: move `setting-line` color CSS to settings.css) - #103258 (Make miri read_dir test a little more robust) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
-
由 Michael Howell 提交于
This rule originated as a `font-size: 16px`, when body had `font-size: 13px` set in 4fd061c4. It remained even when body's font size was bumped up to 16px, 4d5f4ff5, making the rule a no-op, and was carried forward when it was converted to 1rem in cc181204.
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Matthias Krüger 提交于
Make miri read_dir test a little more robust r? `@RalfJung`
-
由 Matthias Krüger 提交于
rustdoc: move `setting-line` color CSS to settings.css
-
由 Matthias Krüger 提交于
Mark `rust-analyzer` as a host-only tool All tools meant to be shipped with host toolchains only should be marked as `ONLY_HOSTS = true`, but rust-analyzer was marked as `ONLY_HOSTS = false` incorrectly. This meant that bootstrap attempted to build rust-analyzer for cross-compilation-only targets, causing errors because libstd is not present on some of them. It will still be possible to cross-compile rust-analyzer by passing a different `--host` flag to `./x`, like you can cross-compile other tools. The problem can be reproduced by running: ``` ./x build src/tools/rust-analyzer --target x86_64-unknown-linux-gnu,aarch64-unknown-none ```
-
由 Matthias Krüger 提交于
Allow #[unstable] impls for fn() with unstable abi. This allows `#[unstable]` trait impls for `extern "unwind-C" fn()`, based on the fact that that abi and therefore that type is unstable. See https://github.com/rust-lang/rust/pull/101263#issuecomment-1283099947
-
由 Matthias Krüger 提交于
Clean up codeblock-tooltip rustdoc-gui test r? ``@notriddle``
-