Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2953787
DRAFT: Add an aarch64-msvc build running on ARM64 Windows
dpaoliello Apr 28, 2025
e101e38
std_detect: Tidying of slice length
a4lg Jun 29, 2025
bb2d169
use `is_multiple_of` to check if an addr is aligned
folkertdev Jul 5, 2025
e8d9e80
Add empty rust-version file
Kobzol Jun 26, 2025
f697f81
Add josh synchronization scripts
Kobzol Jun 26, 2025
8ae4e6a
Update stabilization version of certain x86 intrinsics to 1.89
Amanieu Jun 30, 2025
e46d220
Use simd_extract! macro instead of calling simd_extract directly
clarfonthey Jun 30, 2025
600497f
Mark `avx` broadcast intrinsics as safe
okaneco Jun 23, 2025
b535003
Remove std-detect dev dependency in core_arch
Kobzol Jul 4, 2025
816f029
Update README.md
kilavvy Jun 29, 2025
8600192
Add config files for `rustc-josh-sync`
Kobzol Jul 4, 2025
ce73251
Prepare for merging from rust-lang/rust
Kobzol Jul 4, 2025
1bc289d
std_detect: RISC-V Linux: Ergonomic querying with `riscv_hwprobe`
a4lg Jun 29, 2025
fddd05b
some clippy fixes
hkBst Jul 6, 2025
658b5c8
Use `simd_funnel_sh{l,r}` and `simd_round_ties_even` to remove uses o…
sayantn Jul 7, 2025
a95bd00
Remove custom josh-sync scripts
Kobzol Jul 8, 2025
07d5fbb
Update README with link to `josh-sync`
Kobzol Jul 8, 2025
82126a6
fix whitespace in `aarch64.spec.yml`
folkertdev Jul 8, 2025
323c646
remote intermediate assignment
folkertdev Jul 8, 2025
92701fe
shorten array literals
folkertdev Jul 8, 2025
061a941
remove unneeded cast
folkertdev Jul 8, 2025
701d222
Reset rust-version
Kobzol Jul 8, 2025
3c9297c
Prepare for merging from rust-lang/rust
Kobzol Jul 8, 2025
bdead41
Merge ref '040e2f8b9ff2' from rust-lang/rust
Kobzol Jul 8, 2025
a310bdd
Merge pull request #1853 from Kobzol/pull-fixed
Amanieu Jul 8, 2025
d54c3ea
Preserve the .debug_gdb_scripts section
sebastianpoeplau Jul 3, 2025
3e675f4
Fix `--skip-std-check-if-no-download-rustc`
Kobzol Jul 9, 2025
84eeca2
Make some "safe" llvm ops actually sound
oli-obk Jul 10, 2025
7632c55
extract single_import_can_define_name and finalize_glob_module_binding
b-naber Jul 10, 2025
7dfc3e9
Rework borrowing suggestions to use `Expr` instead of just `Span`
estebank Jul 10, 2025
0674eca
Make `Diag::multipart_suggestions` always verbose
estebank Jul 10, 2025
d692444
Update test
estebank Jul 10, 2025
341f12d
Properly track the depth when expanding free alias types
fmease Jul 10, 2025
a37b01d
Rollup merge of #140136 - dpaoliello:arm64winci, r=Kobzol
tgross35 Jul 10, 2025
bf8cf57
Rollup merge of #143642 - Kobzol:stdarch-push, r=Amanieu
tgross35 Jul 10, 2025
45d8905
Rollup merge of #143679 - sebastianpoeplau:preserve-debug-gdb-scripts…
tgross35 Jul 10, 2025
51cb3b0
Rollup merge of #143707 - Kobzol:bootstrap-std-check, r=jieyouxu
tgross35 Jul 10, 2025
7966892
Rollup merge of #143722 - oli-obk:sound-llvm, r=dianqk
tgross35 Jul 10, 2025
d809ba8
Rollup merge of #143728 - LorrensP-2158466:refactor-resolve-extractio…
tgross35 Jul 10, 2025
92d93df
Rollup merge of #143742 - estebank:borrow-suggestion, r=compiler-errors
tgross35 Jul 10, 2025
fba04fa
Rollup merge of #143744 - fmease:lta-expand-proper-depth, r=compiler-…
tgross35 Jul 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make Diag::multipart_suggestions always verbose
  • Loading branch information
estebank committed Jul 10, 2025
commit 0674eca2f0c4ac45b7cf1a66fd4df44dfc603e7e
2 changes: 1 addition & 1 deletion compiler/rustc_errors/src/diagnostic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> {
self.push_suggestion(CodeSuggestion {
substitutions,
msg: self.subdiagnostic_message_to_diagnostic_message(msg),
style: SuggestionStyle::ShowCode,
style: SuggestionStyle::ShowAlways,
applicability,
});
self
Expand Down
30 changes: 18 additions & 12 deletions tests/ui/derives/deriving-copyclone.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ error[E0277]: the trait bound `B<C>: Copy` is not satisfied
--> $DIR/deriving-copyclone.rs:31:26
|
LL | is_copy(B { a: 1, b: C });
| ------- ^
| | |
| | the trait `Copy` is not implemented for `B<C>`
| | help: consider borrowing here: `&`
| ------- ^ the trait `Copy` is not implemented for `B<C>`
| |
| required by a bound introduced by this call
|
note: required for `B<C>` to implement `Copy`
Expand All @@ -18,15 +16,17 @@ note: required by a bound in `is_copy`
|
LL | fn is_copy<T: Copy>(_: T) {}
| ^^^^ required by this bound in `is_copy`
help: consider borrowing here
|
LL | is_copy(B { a: 1, b: &C });
| +

error[E0277]: the trait bound `B<C>: Clone` is not satisfied
--> $DIR/deriving-copyclone.rs:32:27
|
LL | is_clone(B { a: 1, b: C });
| -------- ^
| | |
| | the trait `Clone` is not implemented for `B<C>`
| | help: consider borrowing here: `&`
| -------- ^ the trait `Clone` is not implemented for `B<C>`
| |
| required by a bound introduced by this call
|
note: required for `B<C>` to implement `Clone`
Expand All @@ -39,15 +39,17 @@ note: required by a bound in `is_clone`
|
LL | fn is_clone<T: Clone>(_: T) {}
| ^^^^^ required by this bound in `is_clone`
help: consider borrowing here
|
LL | is_clone(B { a: 1, b: &C });
| +

error[E0277]: the trait bound `B<D>: Copy` is not satisfied
--> $DIR/deriving-copyclone.rs:35:26
|
LL | is_copy(B { a: 1, b: D });
| ------- ^
| | |
| | the trait `Copy` is not implemented for `B<D>`
| | help: consider borrowing here: `&`
| ------- ^ the trait `Copy` is not implemented for `B<D>`
| |
| required by a bound introduced by this call
|
note: required for `B<D>` to implement `Copy`
Expand All @@ -60,6 +62,10 @@ note: required by a bound in `is_copy`
|
LL | fn is_copy<T: Copy>(_: T) {}
| ^^^^ required by this bound in `is_copy`
help: consider borrowing here
|
LL | is_copy(B { a: 1, b: &D });
| +

error: aborting due to 3 previous errors

Expand Down
9 changes: 5 additions & 4 deletions tests/ui/for/issue-20605.current.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ error[E0277]: `dyn Iterator<Item = &'a mut u8>` is not an iterator
--> $DIR/issue-20605.rs:6:17
|
LL | for item in *things { *item = 0 }
| -^^^^^^
| |
| the trait `IntoIterator` is not implemented for `dyn Iterator<Item = &'a mut u8>`
| help: consider mutably borrowing here: `&mut`
| ^^^^^^^ the trait `IntoIterator` is not implemented for `dyn Iterator<Item = &'a mut u8>`
|
= note: the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
= note: required for `dyn Iterator<Item = &'a mut u8>` to implement `IntoIterator`
help: consider mutably borrowing here
|
LL | for item in &mut *things { *item = 0 }
| ++++

error: aborting due to 1 previous error

Expand Down
9 changes: 5 additions & 4 deletions tests/ui/for/issue-20605.next.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ error[E0277]: `dyn Iterator<Item = &'a mut u8>` is not an iterator
--> $DIR/issue-20605.rs:6:17
|
LL | for item in *things { *item = 0 }
| -^^^^^^
| |
| the trait `IntoIterator` is not implemented for `dyn Iterator<Item = &'a mut u8>`
| help: consider mutably borrowing here: `&mut`
| ^^^^^^^ the trait `IntoIterator` is not implemented for `dyn Iterator<Item = &'a mut u8>`
|
= note: the trait bound `dyn Iterator<Item = &'a mut u8>: IntoIterator` is not satisfied
= note: required for `dyn Iterator<Item = &'a mut u8>` to implement `IntoIterator`
help: consider mutably borrowing here
|
LL | for item in &mut *things { *item = 0 }
| ++++

error: aborting due to 1 previous error

Expand Down
9 changes: 6 additions & 3 deletions tests/ui/impl-trait/in-trait/default-body-type-err-2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ error[E0308]: mismatched types
LL | async fn woopsie_async(&self) -> String {
| ------ expected `String` because of return type
LL | 42
| ^^- help: try using a conversion method: `.to_string()`
| |
| expected `String`, found integer
| ^^ expected `String`, found integer
|
help: try using a conversion method
|
LL | 42.to_string()
| ++++++++++++

error: aborting due to 1 previous error

Expand Down
9 changes: 6 additions & 3 deletions tests/ui/inference/deref-suggestion.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ error[E0308]: mismatched types
--> $DIR/deref-suggestion.rs:8:9
|
LL | foo(s);
| --- ^- help: try using a conversion method: `.to_string()`
| | |
| | expected `String`, found `&String`
| --- ^ expected `String`, found `&String`
| |
| arguments to this function are incorrect
|
note: function defined here
--> $DIR/deref-suggestion.rs:5:4
|
LL | fn foo(_: String) {}
| ^^^ ---------
help: try using a conversion method
|
LL | foo(s.to_string());
| ++++++++++++

error[E0308]: mismatched types
--> $DIR/deref-suggestion.rs:14:10
Expand Down
9 changes: 6 additions & 3 deletions tests/ui/repeat-expr/typo-in-repeat-expr-issue-80173.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:32:29
|
LL | let e = [String::new(), 10];
| ^^- help: try using a conversion method: `.to_string()`
| |
| expected `String`, found integer
| ^^ expected `String`, found integer
|
help: try using a conversion method
|
LL | let e = [String::new(), 10.to_string()];
| ++++++++++++

error[E0308]: mismatched types
--> $DIR/typo-in-repeat-expr-issue-80173.rs:36:19
Expand Down
9 changes: 6 additions & 3 deletions tests/ui/static/bad-const-type.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ error[E0308]: mismatched types
--> $DIR/bad-const-type.rs:1:20
|
LL | static i: String = 10;
| ^^- help: try using a conversion method: `.to_string()`
| |
| expected `String`, found integer
| ^^ expected `String`, found integer
|
help: try using a conversion method
|
LL | static i: String = 10.to_string();
| ++++++++++++

error: aborting due to 1 previous error

Expand Down
10 changes: 6 additions & 4 deletions tests/ui/suggestions/imm-ref-trait-object-literal.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ error[E0277]: the trait bound `S: Trait` is not satisfied
--> $DIR/imm-ref-trait-object-literal.rs:13:7
|
LL | foo(s);
| --- ^
| | |
| | the trait `Trait` is not implemented for `S`
| | help: consider mutably borrowing here: `&mut`
| --- ^ the trait `Trait` is not implemented for `S`
| |
| required by a bound introduced by this call
|
note: required by a bound in `foo`
--> $DIR/imm-ref-trait-object-literal.rs:7:11
|
LL | fn foo<X: Trait>(_: X) {}
| ^^^^^ required by this bound in `foo`
help: consider mutably borrowing here
|
LL | foo(&mut s);
| ++++

error: aborting due to 2 previous errors

Expand Down
10 changes: 6 additions & 4 deletions tests/ui/suggestions/issue-104961.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ error[E0277]: the trait bound `String: Pattern` is not satisfied
--> $DIR/issue-104961.rs:9:19
|
LL | x.starts_with("hi".to_string())
| ----------- -^^^^^^^^^^^^^^^
| | |
| | the trait `Pattern` is not implemented for `String`
| | help: consider borrowing here: `&`
| ----------- ^^^^^^^^^^^^^^^^ the trait `Pattern` is not implemented for `String`
| |
| required by a bound introduced by this call
|
= note: required for `String` to implement `Pattern`
note: required by a bound in `core::str::<impl str>::starts_with`
--> $SRC_DIR/core/src/str/mod.rs:LL:COL
help: consider borrowing here
|
LL | x.starts_with(&"hi".to_string())
| +

error: aborting due to 2 previous errors

Expand Down
11 changes: 7 additions & 4 deletions tests/ui/suggestions/issue-52820.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ error[E0308]: mismatched types
--> $DIR/issue-52820.rs:13:17
|
LL | brains: guts.clone(),
| ^^^^^-----^^
| | |
| | help: try using a conversion method: `to_string`
| expected `String`, found `&str`
| ^^^^^^^^^^^^ expected `String`, found `&str`
|
help: try using a conversion method
|
LL - brains: guts.clone(),
LL + brains: guts.to_string(),
|

error: aborting due to 2 previous errors

Expand Down
23 changes: 15 additions & 8 deletions tests/ui/suggestions/issue-53692.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,31 @@ error[E0308]: mismatched types
--> $DIR/issue-53692.rs:7:33
|
LL | let items_clone: Vec<i32> = ref_items.clone();
| -------- ^^^^^^^^^^-----^^
| | | |
| | | help: try using a conversion method: `to_vec`
| | expected `Vec<i32>`, found `&[i32]`
| -------- ^^^^^^^^^^^^^^^^^ expected `Vec<i32>`, found `&[i32]`
| |
| expected due to this
|
= note: expected struct `Vec<i32>`
found reference `&[i32]`
help: try using a conversion method
|
LL - let items_clone: Vec<i32> = ref_items.clone();
LL + let items_clone: Vec<i32> = ref_items.to_vec();
|

error[E0308]: mismatched types
--> $DIR/issue-53692.rs:14:26
|
LL | let string: String = s.clone();
| ------ ^^-----^^
| | | |
| | | help: try using a conversion method: `to_string`
| | expected `String`, found `&str`
| ------ ^^^^^^^^^ expected `String`, found `&str`
| |
| expected due to this
|
help: try using a conversion method
|
LL - let string: String = s.clone();
LL + let string: String = s.to_string();
|

error: aborting due to 2 previous errors

Expand Down
10 changes: 7 additions & 3 deletions tests/ui/suggestions/issue-59819.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ error[E0308]: mismatched types
--> $DIR/issue-59819.rs:34:21
|
LL | let g: String = f;
| ------ ^- help: try using a conversion method: `.to_string()`
| | |
| | expected `String`, found `Bar`
| ------ ^ expected `String`, found `Bar`
| |
| expected due to this
|
help: try using a conversion method
|
LL | let g: String = f.to_string();
| ++++++++++++

error: aborting due to 3 previous errors

Expand Down
10 changes: 6 additions & 4 deletions tests/ui/suggestions/issue-62843.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ error[E0277]: the trait bound `String: Pattern` is not satisfied
--> $DIR/issue-62843.rs:4:32
|
LL | println!("{:?}", line.find(pattern));
| ---- -^^^^^^
| | |
| | the trait `Pattern` is not implemented for `String`
| | help: consider borrowing here: `&`
| ---- ^^^^^^^ the trait `Pattern` is not implemented for `String`
| |
| required by a bound introduced by this call
|
= note: required for `String` to implement `Pattern`
note: required by a bound in `core::str::<impl str>::find`
--> $SRC_DIR/core/src/str/mod.rs:LL:COL
help: consider borrowing here
|
LL | println!("{:?}", line.find(&pattern));
| +

error: aborting due to 1 previous error

Expand Down
9 changes: 6 additions & 3 deletions tests/ui/suggestions/issue-83943.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ LL | | "A".to_string()
| | --------------- expected because of this
LL | | } else {
LL | | "B"
| | ^^^- help: try using a conversion method: `.to_string()`
| | |
| | expected `String`, found `&str`
| | ^^^ expected `String`, found `&str`
LL | | };
| |_____- `if` and `else` have incompatible types
|
help: try using a conversion method
|
LL | "B".to_string()
| ++++++++++++

error: aborting due to 1 previous error

Expand Down
10 changes: 6 additions & 4 deletions tests/ui/suggestions/issue-84973-2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ error[E0277]: the trait bound `i32: Tr` is not satisfied
--> $DIR/issue-84973-2.rs:11:9
|
LL | foo(a);
| --- ^
| | |
| | the trait `Tr` is not implemented for `i32`
| | help: consider mutably borrowing here: `&mut`
| --- ^ the trait `Tr` is not implemented for `i32`
| |
| required by a bound introduced by this call
|
note: required by a bound in `foo`
--> $DIR/issue-84973-2.rs:7:11
|
LL | fn foo<T: Tr>(i: T) {}
| ^^ required by this bound in `foo`
help: consider mutably borrowing here
|
LL | foo(&mut a);
| ++++

error: aborting due to 1 previous error

Expand Down
10 changes: 6 additions & 4 deletions tests/ui/suggestions/issue-84973-negative.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ error[E0277]: the trait bound `f32: Tr` is not satisfied
--> $DIR/issue-84973-negative.rs:11:9
|
LL | bar(b);
| --- ^
| | |
| | the trait `Tr` is not implemented for `f32`
| | help: consider borrowing here: `&`
| --- ^ the trait `Tr` is not implemented for `f32`
| |
| required by a bound introduced by this call
|
note: required by a bound in `bar`
--> $DIR/issue-84973-negative.rs:5:11
|
LL | fn bar<T: Tr>(t: T) {}
| ^^ required by this bound in `bar`
help: consider borrowing here
|
LL | bar(&b);
| +

error: aborting due to 2 previous errors

Expand Down
Loading