Skip to content

Commit 51558cc

Browse files
committed
Auto merge of #95148 - matthiaskrgr:rollup-jsb1ld9, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #95114 (Skip a test if symlink creation is not possible) - #95131 (Fix docs for default rmeta filename.) - #95135 (Fix a not emitted unmatched angle bracket error) - #95145 (Fix typo interator->iterator) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents c84f39e + e33a481 commit 51558cc

File tree

6 files changed

+29
-5
lines changed

6 files changed

+29
-5
lines changed

compiler/rustc_parse/src/parser/item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ impl<'a> Parser<'a> {
14861486
// `check_trailing_angle_brackets` already emitted a nicer error
14871487
// NOTE(eddyb) this was `.cancel()`, but `err`
14881488
// gets returned, so we can't fully defuse it.
1489-
err.downgrade_to_delayed_bug();
1489+
err.delay_as_bug();
14901490
}
14911491
}
14921492
}

compiler/rustc_typeck/src/check/method/suggest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
599599

600600
// Make sure that, if any traits other than the found ones were involved,
601601
// we don't don't report an unimplemented trait.
602-
// We don't want to say that `iter::Cloned` is not an interator, just
602+
// We don't want to say that `iter::Cloned` is not an iterator, just
603603
// because of some non-Clone item being iterated over.
604604
for (predicate, _parent_pred, _cause) in &unsatisfied_predicates {
605605
match predicate.kind().skip_binder() {

library/std/src/sys/windows/process/tests.rs

+9-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,15 @@ fn windows_exe_resolver() {
186186
let temp = tmpdir();
187187
let mut exe_path = temp.path().to_owned();
188188
exe_path.push("exists.exe");
189-
symlink("<DOES NOT EXIST>".as_ref(), &exe_path).unwrap();
190189

191190
// A broken symlink should still be resolved.
192-
assert!(resolve_exe(OsStr::new("exists.exe"), empty_paths, Some(temp.path().as_ref())).is_ok());
191+
// Skip this check if not in CI and creating symlinks isn't possible.
192+
let is_ci = env::var("CI").is_ok();
193+
let result = symlink("<DOES NOT EXIST>".as_ref(), &exe_path);
194+
if is_ci || result.is_ok() {
195+
result.unwrap();
196+
assert!(
197+
resolve_exe(OsStr::new("exists.exe"), empty_paths, Some(temp.path().as_ref())).is_ok()
198+
);
199+
}
193200
}

src/doc/rustc/src/command-line-arguments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The valid emit kinds are:
118118
- `llvm-ir` — Generates a file containing [LLVM IR]. The default output
119119
filename is `CRATE_NAME.ll`.
120120
- `metadata` — Generates a file containing metadata about the crate. The
121-
default output filename is `CRATE_NAME.rmeta`.
121+
default output filename is `libCRATE_NAME.rmeta`.
122122
- `mir` — Generates a file containing rustc's mid-level intermediate
123123
representation. The default output filename is `CRATE_NAME.mir`.
124124
- `obj` — Generates a native object file. The default output filename is
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
struct TypedArenaChunk {
2+
next: Option<String>>
3+
//~^ ERROR unmatched angle bracket
4+
}
5+
6+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error: unmatched angle bracket
2+
--> $DIR/recover-field-extra-angle-brackets-in-struct-with-a-field.rs:2:25
3+
|
4+
LL | next: Option<String>>
5+
| _________________________^
6+
LL | |
7+
LL | | }
8+
| |_ help: remove extra angle bracket
9+
10+
error: aborting due to previous error
11+

0 commit comments

Comments
 (0)