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
31 commits
Select commit Hold shift + click to select a range
e6d5f25
Fix #57730
Zoxc Jan 29, 2019
9d2a0b9
add regression test for #57979
nikomatsakis Feb 1, 2019
0d28a24
Remove code for updating copyright years in generate-deriving-span-tests
sugar700 Feb 8, 2019
df420aa
Remove initial newline from automatically generated span tests
sugar700 Feb 8, 2019
8f6d05b
Don't default on std crate when manipulating browser history
GuillaumeGomez Feb 8, 2019
719be24
fix Box::into_unique effecitvely transmuting to a raw ptr
RalfJung Feb 13, 2019
26ade1c
mark failures expected due to panics
RalfJung Feb 9, 2019
7f5dc49
review or fix miri failures in iter, slice, cell, time
RalfJung Feb 9, 2019
72be9a6
review or fix remaining miri failures in libcore
RalfJung Feb 9, 2019
e24af6c
the formatting issue got fixed
RalfJung Feb 13, 2019
b17ca01
review failures in binary_heap, str, vec_deque
RalfJung Feb 13, 2019
4c1a1c3
review failures in btree, string
RalfJung Feb 13, 2019
767dadf
review failures in heap, slice, vec
RalfJung Feb 13, 2019
c154bf7
miri: test with slightly larger BTrees
RalfJung Feb 13, 2019
a301655
Use posix_spawn_file_actions_addchdir_np when possible
cuviper Feb 13, 2019
283ffcf
Check the self-type of inherent associated constants
matthewjasper Feb 11, 2019
f565efd
mask `compiler_builtins` docs
euclio Feb 14, 2019
2c339ae
Add specific error for unstable const fn features
varkor Feb 5, 2019
feb3408
Update const fn tests
varkor Feb 5, 2019
519783a
Fix documentation typo
varkor Feb 5, 2019
cce2c89
add .stderr file
nikomatsakis Feb 14, 2019
8ca4406
Add updated NLL tests
varkor Feb 14, 2019
b9efe60
Rollup merge of #57981 - Zoxc:fix-57979, r=nikomatsakis
Centril Feb 14, 2019
634022c
Rollup merge of #58196 - varkor:const-fn-feature-gate-error, r=oli-obk
Centril Feb 14, 2019
2f5d8bc
Rollup merge of #58293 - xfix:patch-16, r=Mark-Simulacrum
Centril Feb 14, 2019
a62a203
Rollup merge of #58306 - GuillaumeGomez:crate-browser-history, r=Quie…
Centril Feb 14, 2019
983899b
Rollup merge of #58353 - matthewjasper:typeck-pattern-constants, r=ar…
Centril Feb 14, 2019
cef3d81
Rollup merge of #58429 - RalfJung:box, r=TimNN
Centril Feb 14, 2019
5cf28dd
Rollup merge of #58433 - RalfJung:miri-mark-tests, r=TimNN
Centril Feb 14, 2019
c88130d
Rollup merge of #58438 - cuviper:posix_spawn_file_actions_addchdir_np…
Centril Feb 14, 2019
2439466
Rollup merge of #58448 - euclio:missing-summaries, r=QuietMisdreavus
Centril Feb 14, 2019
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
Update const fn tests
  • Loading branch information
varkor committed Feb 14, 2019
commit feb3408f112cb362e15f5a33bdcc1e01724244ee
4 changes: 3 additions & 1 deletion src/test/ui/consts/min_const_fn/bad_const_fn_body_ice.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
error: heap allocations are not allowed in const fn
error[E0723]: heap allocations are not allowed in const fn (see issue #57563)
--> $DIR/bad_const_fn_body_ice.rs:2:5
|
LL | vec![1, 2, 3] //~ ERROR heap allocations are not allowed in const fn
| ^^^^^^^^^^^^^
|
= help: add #![feature(const_fn)] to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0723`.
21 changes: 16 additions & 5 deletions src/test/ui/consts/min_const_fn/cast_errors.stderr
Original file line number Diff line number Diff line change
@@ -1,32 +1,43 @@
error: unsizing casts are not allowed in const fn
error[E0723]: unsizing casts are not allowed in const fn (see issue #57563)
--> $DIR/cast_errors.rs:3:41
|
LL | const fn unsize(x: &[u8; 3]) -> &[u8] { x }
| ^
|
= help: add #![feature(const_fn)] to the crate attributes to enable

error: function pointers in const fn are unstable
error[E0723]: function pointers in const fn are unstable (see issue #57563)
--> $DIR/cast_errors.rs:5:23
|
LL | const fn closure() -> fn() { || {} }
| ^^^^
|
= help: add #![feature(const_fn)] to the crate attributes to enable

error: function pointers in const fn are unstable
error[E0723]: function pointers in const fn are unstable (see issue #57563)
--> $DIR/cast_errors.rs:8:5
|
LL | (|| {}) as fn();
| ^^^^^^^^^^^^^^^
|
= help: add #![feature(const_fn)] to the crate attributes to enable

error: function pointers in const fn are unstable
error[E0723]: function pointers in const fn are unstable (see issue #57563)
--> $DIR/cast_errors.rs:11:28
|
LL | const fn reify(f: fn()) -> unsafe fn() { f }
| ^^^^^^^^^^^
|
= help: add #![feature(const_fn)] to the crate attributes to enable

error: function pointers in const fn are unstable
error[E0723]: function pointers in const fn are unstable (see issue #57563)
--> $DIR/cast_errors.rs:13:21
|
LL | const fn reify2() { main as unsafe fn(); }
| ^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(const_fn)] to the crate attributes to enable

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0723`.
5 changes: 4 additions & 1 deletion src/test/ui/consts/min_const_fn/cmp_fn_pointers.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
error: function pointers in const fn are unstable
error[E0723]: function pointers in const fn are unstable (see issue #57563)
--> $DIR/cmp_fn_pointers.rs:1:14
|
LL | const fn cmp(x: fn(), y: fn()) -> bool { //~ ERROR function pointers in const fn are unstable
| ^
|
= help: add #![feature(const_fn)] to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0723`.
5 changes: 4 additions & 1 deletion src/test/ui/consts/min_const_fn/loop_ice.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
error: loops are not allowed in const fn
error[E0723]: loops are not allowed in const fn (see issue #57563)
--> $DIR/loop_ice.rs:2:5
|
LL | loop {} //~ ERROR loops are not allowed in const fn
| ^^^^^^^
|
= help: add #![feature(const_fn)] to the crate attributes to enable

error: aborting due to previous error

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