Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
98d3012
Use version-sorting for all sorting
joshtriplett Aug 21, 2023
127e052
Make an implementation note on version-sorting accurate
joshtriplett Aug 21, 2023
47bb076
Clarify that version-sorting looks for the *longest* sequence of digits
joshtriplett Aug 21, 2023
95eb1e2
Streamline description of versionsort (incorporate suggestion from Ralf)
joshtriplett Aug 22, 2023
f06df22
Clarify "as normal" -> "lexicographically"
joshtriplett Aug 28, 2023
2e931b5
style-guide: Rework version-sorting algorithm
joshtriplett Dec 23, 2023
c9276ea
Pass LLVM error message back to pass wrapper.
aoli-al Jan 5, 2024
07d5f19
Add an error path to the algorithm
Nadrieril Jan 7, 2024
4b2e8bc
Abort analysis on type error
Nadrieril Jan 1, 2024
f051185
Don't mix combinators and `let else`
Nadrieril Jan 9, 2024
894d1d4
change function name in comments
mj10021 Jan 9, 2024
af3c2c9
Fix all_trait* methods to return all trait available
celinval Jan 9, 2024
ba27e22
Use a ty::Error instead of patching up a type after erroring
oli-obk Jan 9, 2024
972c95a
Turn some free functions into methods
oli-obk Jan 9, 2024
0e82aae
Avoid follow up errors
oli-obk Jan 9, 2024
1ed855d
Stabilize mutex_unpoison feature
tmccombs Jan 10, 2024
dee657f
Add test case for #119778
Nadrieril Jan 10, 2024
f49b0dc
Check reveal and can_define_opaque_ty in try_normalize_ty_recur
compiler-errors Jan 10, 2024
3799568
More comments
compiler-errors Jan 10, 2024
427c55c
Simplify some redundant names
compiler-errors Dec 13, 2023
7d61535
Add project const traits to triagebot config
fmease Jan 10, 2024
06cf881
Rename `TRACK_DIAGNOSTICS` as `TRACK_DIAGNOSTIC`.
nnethercote Jan 9, 2024
0e388f2
Change how `force-warn` lint diagnostics are recorded.
nnethercote Jan 9, 2024
12ba450
Reset `lint_err_count` in `DiagCtxt::reset_err_count`.
nnethercote Jan 9, 2024
8866780
Move `DiagCtxtInner::deduplicated_warn_count`.
nnethercote Jan 9, 2024
56c3265
Replace `warn_count`.
nnethercote Jan 9, 2024
dd61eba
Simplify lint error counting.
nnethercote Jan 9, 2024
4621357
Make is_global/is_unicast_global special address handling complete
jstasiak Dec 16, 2023
3cc4e02
Rollup merge of #115046 - joshtriplett:master, r=compiler-errors
matthiaskrgr Jan 11, 2024
859874f
Rollup merge of #118915 - compiler-errors:alias-nits, r=lcnr
matthiaskrgr Jan 11, 2024
0f2d12e
Rollup merge of #119006 - jstasiak:fix-special-ip-ranges, r=cuviper
matthiaskrgr Jan 11, 2024
b6ef8b6
Rollup merge of #119637 - aoli-al:master, r=cuviper
matthiaskrgr Jan 11, 2024
4dcc5a0
Rollup merge of #119715 - Nadrieril:graceful-type-error, r=compiler-e…
matthiaskrgr Jan 11, 2024
88493fc
Rollup merge of #119763 - nnethercote:cleanup-Diagnostic, r=oli-obk
matthiaskrgr Jan 11, 2024
6238698
Rollup merge of #119788 - mj10021:issue-119787-fix, r=oli-obk
matthiaskrgr Jan 11, 2024
d93df41
Rollup merge of #119790 - celinval:smir-all-traits, r=oli-obk
matthiaskrgr Jan 11, 2024
d37de53
Rollup merge of #119803 - oli-obk:even_more_follow_up_errors, r=compi…
matthiaskrgr Jan 11, 2024
f92cde4
Rollup merge of #119804 - tmccombs:stabilize-unpoison, r=cuviper
matthiaskrgr Jan 11, 2024
1189d23
Rollup merge of #119832 - fmease:project-const-traits-triagebot, r=co…
matthiaskrgr Jan 11, 2024
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
Add test case for #119778
  • Loading branch information
Nadrieril committed Jan 10, 2024
commit dee657f9f908136daa268540debf2c025855bb83
13 changes: 13 additions & 0 deletions tests/ui/pattern/usefulness/issue-119778-type-error-ice.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
fn main() {}

fn foo() {
#[derive(Copy, Clone)]
struct Foo([u8; S]);
//~^ ERROR cannot find value `S`
//~| ERROR cannot find value `S`

type U = impl Copy;
//~^ ERROR `impl Trait` in type aliases is unstable
let foo: U = Foo(());
let Foo(()) = foo;
}
35 changes: 35 additions & 0 deletions tests/ui/pattern/usefulness/issue-119778-type-error-ice.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
error[E0425]: cannot find value `S` in this scope
--> $DIR/issue-119778-type-error-ice.rs:5:21
|
LL | struct Foo([u8; S]);
| ^ not found in this scope
|
help: you might be missing a const parameter
|
LL | struct Foo<const S: /* Type */>([u8; S]);
| +++++++++++++++++++++

error[E0425]: cannot find value `S` in this scope
--> $DIR/issue-119778-type-error-ice.rs:5:21
|
LL | struct Foo([u8; S]);
| ^ not found in this scope
|
help: you might be missing a const parameter
|
LL | struct Foo<const S: /* Type */>([u8; S]);
| +++++++++++++++++++++

error[E0658]: `impl Trait` in type aliases is unstable
--> $DIR/issue-119778-type-error-ice.rs:9:14
|
LL | type U = impl Copy;
| ^^^^^^^^^
|
= note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
= help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0425, E0658.
For more information about an error, try `rustc --explain E0425`.