Oliver Scherer
ae0b00cada
Add and update tests
2018-12-04 10:17:37 +01:00
Oliver Scherer
137a640d61
Automatically generate imports for newtype_index Deserialize
impls
2018-12-04 10:17:37 +01:00
Oliver Scherer
3ce211dbd0
Increase code-reuse and -readability
2018-12-04 10:17:37 +01:00
Oliver Scherer
37ef5e43af
Add tests for stable unsafe features in const fn
2018-12-04 10:17:37 +01:00
Oliver Scherer
4497ff3762
Emit feature gate suggestion
2018-12-04 10:17:36 +01:00
Oliver Scherer
e5d90652e2
Comment on the unsafety code for layout constrained fields
2018-12-04 10:17:36 +01:00
Oliver Scherer
55abc0bc90
Also prevent mutation fields directly
2018-12-04 10:17:36 +01:00
Oliver Scherer
1894a5fe2c
Also make immutable references to non-freeze restricted value range types unsafe
2018-12-04 10:17:36 +01:00
Oliver Scherer
081c49783f
generalize the message about the creation of layout restricted types
2018-12-04 10:17:36 +01:00
Oliver Scherer
c4a850078c
Adjust a rustc test to the safety changes
2018-12-04 10:17:36 +01:00
Oliver Scherer
14218e3969
Trailing newlines again
2018-12-04 10:17:36 +01:00
Oliver Scherer
8bdb11c4d9
Forbid the creation of mutable borrows to fields of layout constrained types
2018-12-04 10:17:36 +01:00
Oliver Scherer
693c55372e
Move ref to packed struct field check into projection arm
2018-12-04 10:17:36 +01:00
Oliver Scherer
ec6573f33b
Make newtype_index
safe
2018-12-04 10:17:36 +01:00
Oliver Scherer
02b22323f1
Make sure the initialization of constrained int range newtypes is unsafe
2018-12-04 10:17:36 +01:00
Oliver Scherer
cc3470ce3b
Add test for dereferencing raw pointers and immediately referencing again
2018-12-04 10:17:36 +01:00
Oliver Scherer
906a49eef2
Document unsafe rules with comments and bug!
calls
2018-12-04 10:17:36 +01:00
Oliver Scherer
f2ae7b78d6
Allow calling const unsafe fn
in const fn
behind a feature gate
2018-12-04 10:17:36 +01:00
Bastian Gruber
450a8a6f35
Add extra comment slash
2018-12-04 10:10:07 +01:00
Oliver Scherer
ff97569dd9
Update doc-ui tests
2018-12-04 10:06:05 +01:00
Oliver Scherer
690439bb45
Update ui tests
2018-12-04 10:06:05 +01:00
Oliver Scherer
374a096cb1
Remove unused stderr file
2018-12-04 10:06:05 +01:00
Oliver Scherer
1b636b1cd9
Newlines.... newlines everywhere
2018-12-04 10:06:05 +01:00
Oliver Scherer
296398ab52
Add a test ensuring that we don't regress this
2018-12-04 10:06:05 +01:00
Oliver Scherer
61efc3b71b
Update tests
2018-12-04 10:06:05 +01:00
Oliver Scherer
2664aadaa2
Report failing tests without //~ ERROR
comments
2018-12-04 10:05:27 +01:00
Oliver Scherer
7181aa1763
No need to export functions only used in the same module
2018-12-04 10:03:21 +01:00
Oliver Scherer
982a9662c5
Mention alloc
in the name of the interning methods
2018-12-04 10:01:58 +01:00
Oliver Scherer
760df2c3d0
s/id_to_type/id_to_kind/
2018-12-04 09:59:36 +01:00
Oliver Scherer
66b2353a4c
Clear up comment
2018-12-04 09:58:36 +01:00
Oliver Scherer
d6250191a6
s/alloc_type/alloc_kind/
2018-12-04 09:39:09 +01:00
Dale Wijnand
ad765695d1
Fix ptr::hash, just hash the raw pointer
2018-12-04 08:06:26 +00:00
Dale Wijnand
6fab3f9c69
Make ptr::hash take a raw painter like ptr::eq
2018-12-04 07:48:22 +00:00
bors
596e10fd32
Auto merge of #55707 - GuillaumeGomez:file-sidebar, r=QuietMisdreavus
...
Add source file sidebar
This is just a start currently but that gives a good overview of what it'll look like:
<img width="1440" alt="screenshot 2018-11-06 at 01 39 15" src="https://user-images.githubusercontent.com/3050060/48035592-05336180-e165-11e8-82e1-5ead0c345eb9.png ">
r? @QuietMisdreavus
2018-12-04 07:00:19 +00:00
Shotaro Yamada
bc7c3dc71d
sort_by_cached_key -> sort_by
2018-12-04 15:38:48 +09:00
Shotaro Yamada
65aa0a6249
Remove redundant clone
2018-12-04 15:38:40 +09:00
bors
91d5d56c00
Auto merge of #55682 - GuillaumeGomez:primitive-sidebar-link-gen, r=QuietMisdreavus
...
Fixes primitive sidebar link generation
Fixes #50746 .
Fixes #55656 .
r? @QuietMisdreavus
2018-12-04 03:34:32 +00:00
bors
5912a690e0
Auto merge of #56467 - oli-obk:osx_stack_bump, r=nagisa
...
Bump stack size to 32MB
cc https://github.com/rust-lang/rust/issues/55471
A short term solution (really this time! Full fix being grown in https://github.com/rust-lang/rust/pull/55617 ) for stack overflows due to deeply recursive syntax trees.
r? @nagisa
cc @alexcrichton @eddyb @michaelwoerister @pietroalbini
2018-12-04 01:03:17 +00:00
Shotaro Yamada
4e3128223b
Fix test
2018-12-04 09:28:14 +09:00
Shotaro Yamada
11af6f66cb
Use iterator and pattern APIs instead of char_at
2018-12-04 09:27:24 +09:00
Matthew Jasper
d748712521
Propagate all closure requirements to the caller
2018-12-03 23:17:02 +00:00
bors
c8ae2de836
Auto merge of #55041 - evq:thumbv8m, r=alexcrichton
...
targets: thumbv8m: Add target for baseline ARMv8-M
Tested against a SAM L11 MCU.
2018-12-03 22:38:18 +00:00
Vadim Petrochenkov
d08f7dcdca
Address review comments
2018-12-04 01:13:03 +03:00
Guillaume Gomez
3f253f5394
Improve filter test
2018-12-03 23:05:09 +01:00
Guillaume Gomez
82a7b6fde8
Don't generate suffix for source-file.js
2018-12-03 22:37:34 +01:00
Vadim Petrochenkov
d415844f5e
syntax: Remove #[non_exhaustive]
from Edition
...
`Edition` is not a public API, we want users to break when a new edition is added
2018-12-04 00:30:27 +03:00
Vadim Petrochenkov
08f8faedd0
syntax: Rename some keywords
...
`CrateRoot` -> `PathRoot`, `::` doesn't necessarily mean crate root now
`SelfValue` -> `SelfLower`, `SelfType` -> `SelfUpper`, both `self` and `Self` can be used in type and value namespaces now
2018-12-04 00:30:27 +03:00
Vadim Petrochenkov
101467c152
syntax: dyn
is a used keyword now
2018-12-04 00:30:27 +03:00
Mark Mansi
0b40be696e
link to raw identifiers
2018-12-03 13:05:04 -06:00
Mark Mansi
9c8802dc01
Explain raw identifer syntax
2018-12-03 13:05:04 -06:00