Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5d39f1f

Browse files
committed
Auto merge of rust-lang#73147 - Dylan-DPC:rollup-9saqhj5, r=Dylan-DPC
Rollup of 8 pull requests Successful merges: - rust-lang#71842 (doc: make impl block collapsible if it has an associated constant) - rust-lang#72912 (Add new E0758 error code) - rust-lang#73008 (Update RELEASES.md) - rust-lang#73090 (Use `LocalDefId` directly in `Resolver::export_map`) - rust-lang#73118 (Improve the wording in documentation of std::mem::drop) - rust-lang#73124 (Removed lifetime parameters from Explanation of E0207 ) - rust-lang#73138 (Use shorthand linker strip arguments in order to support MacOS) - rust-lang#73143 (Update books) Failed merges: r? @ghost
2 parents fd4b177 + 9890107 commit 5d39f1f

File tree

23 files changed

+92
-49
lines changed

23 files changed

+92
-49
lines changed

RELEASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Compiler
2525
--------
2626
- [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
2727
Additionally when in incremental mode rustc defaults to 256 codegen units.
28-
- [Refactored `catch_unwind`, to have zero-cost unless unwinding is enabled and
28+
- [Refactored `catch_unwind` to have zero-cost, unless unwinding is enabled and
2929
a panic is thrown.][67502]
3030
- [Added tier 3\* support for the `aarch64-unknown-none` and
3131
`aarch64-unknown-none-softfloat` targets.][68334]

src/doc/book

Submodule book updated 72 files

src/libcore/mem/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ pub fn replace<T>(dest: &mut T, mut src: T) -> T {
808808

809809
/// Disposes of a value.
810810
///
811-
/// This does call the argument's implementation of [`Drop`][drop].
811+
/// This does so by calling the argument's implementation of [`Drop`][drop].
812812
///
813813
/// This effectively does nothing for types which implement `Copy`, e.g.
814814
/// integers. Such values are copied and _then_ moved into the function, so the

src/librustc_codegen_ssa/back/linker.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,12 @@ impl<'a> Linker for GccLinker<'a> {
481481
match strip {
482482
Strip::None => {}
483483
Strip::Debuginfo => {
484-
self.linker_arg("--strip-debug");
484+
// MacOS linker does not support longhand argument --strip-debug
485+
self.linker_arg("-S");
485486
}
486487
Strip::Symbols => {
487-
self.linker_arg("--strip-all");
488+
// MacOS linker does not support longhand argument --strip-all
489+
self.linker_arg("-s");
488490
}
489491
}
490492
}

src/librustc_error_codes/error_codes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ E0751: include_str!("./error_codes/E0751.md"),
437437
E0752: include_str!("./error_codes/E0752.md"),
438438
E0753: include_str!("./error_codes/E0753.md"),
439439
E0754: include_str!("./error_codes/E0754.md"),
440+
E0758: include_str!("./error_codes/E0758.md"),
440441
E0760: include_str!("./error_codes/E0760.md"),
441442
;
442443
// E0006, // merged with E0005

src/librustc_error_codes/error_codes/E0207.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A type or lifetime parameter that is specified for `impl` is not constrained.
1+
A type parameter that is specified for `impl` is not constrained.
22

33
Erroneous code example:
44

@@ -14,7 +14,7 @@ impl<T: Default> Foo {
1414
}
1515
```
1616

17-
Any type parameter or lifetime parameter of an `impl` must meet at least one of
17+
Any type parameter parameter of an `impl` must meet at least one of
1818
the following criteria:
1919

2020
- it appears in the _implementing type_ of the impl, e.g. `impl<T> Foo<T>`
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
A multi-line (doc-)comment is unterminated.
2+
3+
Erroneous code example:
4+
5+
```compile_fail,E0758
6+
/* I am not terminated!
7+
```
8+
9+
The same goes for doc comments:
10+
11+
```compile_fail,E0758
12+
/*! I am not terminated!
13+
```
14+
15+
You need to end your multi-line comment with `*/` in order to fix this error:
16+
17+
```
18+
/* I am terminated! */
19+
/*! I am also terminated! */
20+
```

0 commit comments

Comments
 (0)