Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
17ce56f
Fix Iterator::advance_by contract inconsistency
the8472 Oct 14, 2021
7272b6f
Make char conversion functions unstably const
est31 Sep 25, 2021
afd9dfa
bootstap: create .cargo/config only if not present
aplanas Nov 11, 2021
ddc1d58
windows: Return the "Not Found" error when a path is empty
JohnTitor Nov 16, 2021
483cff7
Add SourceMap::indentation_before.
m-ou-se Nov 4, 2021
453e242
Improve suggestion for unit Option/Result at the end of a block.
m-ou-se Nov 4, 2021
b331b66
Improve compatible enum variant suggestions.
m-ou-se Nov 4, 2021
4877756
Update tests.
m-ou-se Nov 4, 2021
5a25751
Add new tests for compatible variant diagnostics.
m-ou-se Nov 4, 2021
09e4a75
Use span_suggestions instead of multipart_suggestions.
m-ou-se Nov 4, 2021
b66fb64
Update test output.
m-ou-se Nov 16, 2021
5520737
Remove unnecessary lifetime argument from arena macros.
nnethercote Nov 15, 2021
f1aeebf
add const generics test
lcnr Nov 4, 2021
f5dc388
Point at source of trait bound obligations in more places
estebank Oct 5, 2021
3fe48b2
Change `trait_defs.rs` incremental hash test
estebank Oct 6, 2021
412793f
Point at bounds when comparing impl items to trait
estebank Oct 6, 2021
abf70a9
Do not mention associated items when they introduce an obligation
estebank Oct 12, 2021
a6b31eb
Align multiline messages to their label (add left margin)
estebank Oct 13, 2021
70e8240
Point at `impl` blocks when they introduce unmet obligations
estebank Oct 13, 2021
8d443ea
Suggest constraining `fn` type params when appropriate
estebank Oct 13, 2021
1cadfe6
Move tests for missing trait bounds to their own directory
estebank Oct 14, 2021
2c173af
review comments
estebank Nov 18, 2021
a8dcc87
Move tests from ui directory
estebank Nov 18, 2021
2f1a1f5
fix CTFE/Miri simd_insert/extract on array-style repr(simd) types
RalfJung Nov 18, 2021
0304e16
CTFE SIMD: also test 1-element array
RalfJung Nov 18, 2021
8ace192
bless nll
lcnr Nov 18, 2021
0a89598
Add some comments.
nnethercote Nov 15, 2021
0e39dca
Rollup merge of #89258 - est31:const_char_convert, r=oli-obk
matthiaskrgr Nov 18, 2021
da32a0f
Rollup merge of #89580 - estebank:trait-bounds-are-tricky, r=nagisa
matthiaskrgr Nov 18, 2021
79d3077
Rollup merge of #89916 - the8472:advance_by-avoid-err-0, r=dtolnay
matthiaskrgr Nov 18, 2021
281b65a
Rollup merge of #90575 - m-ou-se:compatible-variant-improvements, r=e…
matthiaskrgr Nov 18, 2021
439afef
Rollup merge of #90578 - lcnr:add-test, r=Mark-Simulacrum
matthiaskrgr Nov 18, 2021
2f371b0
Rollup merge of #90800 - aplanas:fix_cargo_config, r=Mark-Simulacrum
matthiaskrgr Nov 18, 2021
b9414a8
Rollup merge of #90942 - JohnTitor:should-os-error-3, r=m-ou-se
matthiaskrgr Nov 18, 2021
d1662ee
Rollup merge of #90990 - nnethercote:arenas-cleanup, r=oli-obk
matthiaskrgr Nov 18, 2021
7131806
Rollup merge of #90999 - RalfJung:miri_simd, r=oli-obk
matthiaskrgr Nov 18, 2021
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
bless nll
  • Loading branch information
lcnr committed Nov 18, 2021
commit 8ace1929886d0bd8a0f7a56e291b002fe006d59a
26 changes: 26 additions & 0 deletions src/test/ui/const-generics/invariant.nll.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
warning: conflicting implementations of trait `SadBee` for type `for<'a> fn(&'a ())`
--> $DIR/invariant.rs:14:1
|
LL | impl SadBee for for<'a> fn(&'a ()) {
| ---------------------------------- first implementation here
...
LL | impl SadBee for fn(&'static ()) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a> fn(&'a ())`
|
= note: `#[warn(coherence_leak_check)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #56105 <https://github.com/rust-lang/rust/issues/56105>
= note: this behavior recently changed as a result of a bug fix; see rust-lang/rust#56105 for details

error[E0308]: mismatched types
--> $DIR/invariant.rs:27:5
|
LL | v
| ^ one type is more general than the other
|
= note: expected reference `&Foo<fn(&())>`
found reference `&Foo<for<'a> fn(&'a ())>`

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0308`.