forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#129758 - cuviper:beta-next, r=cuviper
[beta] backports - Emit specific message for `time<0.3.35` inference failure rust-lang#129343 - Use a reduced recursion limit in the MIR inliner's cycle breaker rust-lang#129714 - rustdoc: do not run doctests with invalid langstrings rust-lang#128838 r? cuviper
- Loading branch information
Showing
14 changed files
with
135 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
#!/bin/bash | ||
# This script selects the Xcode instance to use. | ||
# It also tries to do some cleanup in CI jobs of unused Xcodes. | ||
|
||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" | ||
|
||
if isMacOS; then | ||
# This additional step is to try to remove an Xcode we aren't using because each one is HUGE | ||
old_xcode="$(xcode-select --print-path)" | ||
old_xcode="${old_xcode%/*}" # pop a dir | ||
old_xcode="${old_xcode%/*}" # twice | ||
if [[ $old_xcode =~ $SELECT_XCODE ]]; then | ||
echo "xcode-select.sh's brutal hack may not be necessary?" | ||
exit 1 | ||
elif [[ $SELECT_XCODE =~ "16" ]]; then | ||
echo "Using Xcode 16? Please fix xcode-select.sh" | ||
exit 1 | ||
fi | ||
if [ $CI ]; then # just in case someone sources this on their real computer | ||
sudo rm -rf "${old_xcode}" | ||
xcode_16="${old_xcode%/*}/Xcode-16.0.0.app" | ||
sudo rm -rf "${xcode_16}" | ||
fi | ||
sudo xcode-select -s "${SELECT_XCODE}" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/rustdoc-ui/doctest/doctest-no-run-invalid-langstring-124577.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//@ compile-flags:--test | ||
//@ check-pass | ||
#![allow(rustdoc::invalid_codeblock_attributes)] | ||
|
||
// https://github.com/rust-lang/rust/pull/124577#issuecomment-2276034737 | ||
|
||
// Test that invalid langstrings don't get run. | ||
|
||
/// ```{rust,ignore} | ||
/// panic!(); | ||
/// ``` | ||
pub struct Foo; |
5 changes: 5 additions & 0 deletions
5
tests/rustdoc-ui/doctest/doctest-no-run-invalid-langstring-124577.stdout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
running 0 tests | ||
|
||
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | ||
|
8 changes: 8 additions & 0 deletions
8
tests/ui/inference/detect-old-time-version-format_description-parse.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![crate_name = "time"] | ||
|
||
fn main() { | ||
let items = Box::new(vec![]); //~ ERROR E0282 | ||
//~^ NOTE type must be known at this point | ||
//~| NOTE this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` | ||
items.into(); | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/ui/inference/detect-old-time-version-format_description-parse.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
error[E0282]: type annotations needed for `Box<Vec<_>>` | ||
--> $DIR/detect-old-time-version-format_description-parse.rs:4:9 | ||
| | ||
LL | let items = Box::new(vec![]); | ||
| ^^^^^ ---------------- type must be known at this point | ||
| | ||
= note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update` | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0282`. |