Manish Goregaokar
37316e8d05
Rollup merge of #31264 - est31:block_coment_parent, r=alexcrichton
...
Block comments don't have to be in the format `/*! ... !*/`
in order to be read as doc comments about the parent block.
The format `/*! ... */` is enough.
2016-01-29 20:19:39 +05:30
est31
205f836ab8
Fix reference info about parent doc block comments
...
Block comments don't have to be in the format `/*! ... !*/`
in order to be read as doc comments about the parent block.
The format `/*! ... */` is enough.
2016-01-28 18:39:39 +01:00
Matt Brubeck
e23f8b095b
Fix examples that use missing_docs lint
...
The missing_docs lint only applies to public items in public modules, so this
example code did not actually generate any warnings or errors.
2016-01-26 09:49:26 -08:00
bors
077f4eeb84
Auto merge of #30567 - steffengy:master, r=alexcrichton
...
Add support to use functions exported using vectorcall.
This essentially only allows to pass a new LLVM calling convention
from rust to LLVM.
```rust
extern "vectorcall" fn abc(param: c_void);
```
references
----
http://llvm.org/docs/doxygen/html/CallingConv_8h_source.html
https://msdn.microsoft.com/en-us/library/dn375768.aspx
2016-01-16 23:30:30 +00:00
Manish Goregaokar
7208d25003
Rollup merge of #30776 - antonblanchard:powerpc64_merge, r=alexcrichton
...
This adds support for big endian and little endian PowerPC64.
make check runs clean apart from one big endian backtrace issue.
2016-01-15 17:28:28 +05:30
Oliver 'ker' Schneider
3ae71b1b69
the reference was inferring values that didn't fit into their target type
2016-01-13 14:50:04 +01:00
Anton Blanchard
b372910476
Add powerpc64 and powerpc64le support
...
This adds support for big endian and little endian PowerPC64.
make check runs clean apart from one big endian backtrace issue.
2016-01-13 01:39:00 +00:00
Steffen
8cdad627ae
add feature gate "abi_vectorcall" for the vectorcall calling convention
2016-01-11 23:45:33 +01:00
Tobias Bucher
ce6baa77fe
Clarify how Rust treats backslashes at end of line in string literals
...
Rust differs in that behavior from C: In C, the newline escapes are resolved
before anything else, and in Rust this depends on whether the backslash is
escaped itself.
A difference can be observed in the following two programs:
```c
#include <stdio.h>
int main()
{
printf("\\
n\n");
return 0;
}
```
```rust
fn main() {
println!("\\
n");
}
```
The first program prints two newlines, the second one prints a backslash, a
newline, the latin character n and a final newline.
2016-01-06 00:04:25 +01:00
bors
440ef8b154
Auto merge of #30184 - petrochenkov:ascr, r=nikomatsakis
...
This PR is a rebase of the original PR by @eddyb https://github.com/rust-lang/rust/pull/21836 with some unrebasable parts manually reapplied, feature gate added + type equality restriction added as described below.
This implementation is partial because the type equality restriction is applied to all type ascription expressions and not only those in lvalue contexts. Thus, all difficulties with detection of these contexts and translation of coercions having effect in runtime are avoided.
So, you can't write things with coercions like `let slice = &[1, 2, 3]: &[u8];`. It obviously makes type ascription less useful than it should be, but it's still much more useful than not having type ascription at all.
In particular, things like `let v = something.iter().collect(): Vec<_>;` and `let u = t.into(): U;` work as expected and I'm pretty happy with these improvements alone.
Part of https://github.com/rust-lang/rust/issues/23416
2015-12-19 02:45:15 +00:00
Vadim Petrochenkov
95fdaf2375
Require exact type equality + add tests
...
+ Rebase fixes
2015-12-18 20:00:19 +03:00
Vadim Petrochenkov
f3f27a5c64
Rewrite VisiblePrivateTypesVisitor
2015-12-18 04:12:31 +03:00
Vadim Petrochenkov
e3ed7b0501
Implement #[deprecated]
attribute (RFC 1270)
2015-12-12 19:39:37 +03:00
Steve Klabnik
ac2cb1fb7d
Rollup merge of #30224 - matklad:super-docs, r=steveklabnik
...
Make clear that `super` may be included in the path several times.
r? @steveklabnik
2015-12-09 00:01:17 -05:00
Aleksey Kladov
c8b7e24b14
DOCS: update reference about paths
2015-12-05 21:55:34 +03:00
Marvin Löbel
296c3613ca
Added stmt_expr_attribute feature gate
2015-11-26 21:47:44 +01:00
Vadim Petrochenkov
5127d24a3e
Remove #[staged_api]
2015-11-25 21:55:26 +03:00
Steve Klabnik
fab9dd6c80
Rollup merge of #30020 - Manishearth:unit, r=bluss
...
`unit` was in code formatting, which is wrong, since it's not actual code. The correct code is `()`.
2015-11-24 09:43:46 -05:00
Manish Goregaokar
c3600114cc
Update reference.md
2015-11-24 11:56:27 +05:30
Vadim Petrochenkov
a613059e3f
Rename #[deprecated] to #[rustc_deprecated]
2015-11-20 16:11:20 +03:00
Steve Klabnik
6e4f6c8f5f
Rollup merge of #29891 - steveklabnik:gh29470, r=alexcrichton
...
Fixes #29470
2015-11-17 18:13:06 -05:00
Steve Klabnik
cf384c21ea
Clear up the reference around let
...
First, re-word the section on if let/while let to be more clear.
Second, actually call them let statements in the statement section
Fixes #29801
2015-11-17 17:41:26 -05:00
Steve Klabnik
9ca257a5b6
Fix up escapes in the reference
...
Fixes #29470
2015-11-17 11:54:20 -05:00
mdinger
4e74f9b874
Document block doc comments better
2015-11-13 16:06:00 -05:00
Daniel Trebbien
9f7afd060b
reference: Remove struct_variant from Compiler Features
...
The struct_variant feature was accepted and is no longer feature gated.
See #19122 , #19124
§6.1.6 Enumerations shows an example of a struct-like enum variant.
2015-11-08 11:27:40 -05:00
Steve Klabnik
58628b3f79
Beef up macro designator docs
...
Fixes #28824
2015-11-05 16:46:56 +01:00
Aleksey Kladov
32e4ba8f50
reference: clarify impl
...
Another kind of nominal types in Rust are trait objects, so the following is valid
```rust
trait A {
}
impl A {
}
```
2015-10-26 12:31:17 +03:00
Manish Goregaokar
2172d2a4ec
Rollup merge of #29058 - tshepang:rename, r=steveklabnik
...
Shoud have been part of commit 0b13ee0ced39
2015-10-15 13:41:32 +05:30
Manish Goregaokar
d90f8f912b
Rollup merge of #29022 - apasel422:spell, r=steveklabnik
...
r? @steveklabnik
2015-10-15 13:41:32 +05:30
Manish Goregaokar
ad5159d52f
Rollup merge of #28906 - tshepang:link, r=nikomatsakis
2015-10-15 13:41:31 +05:30
Tshepang Lekhonkhobe
ea37fadebb
reference: 'struct' is more common that 'structure'
...
Shoud have been part of commit 0b13ee0ced39
2015-10-15 00:09:08 +02:00
Tshepang Lekhonkhobe
0dbc2ef8a1
reference: add link to the symbols
2015-10-14 23:48:26 +02:00
Manish Goregaokar
570756face
Rollup merge of #29028 - Seeker14491:patch-1, r=Manishearth
...
Having this code section hidden is misleading because it makes it look like implementing Circle for Foo automatically makes Foo implement Shape.
2015-10-14 12:50:57 +05:30
Seeker14491
12224bec21
Unhide some code from the Traits section
...
Having this code section hidden is misleading because it makes it look like implementing Circle for Foo automatically makes Foo implement Shape.
2015-10-13 13:45:10 -05:00
Andrew Paseltiner
1162b3752c
Correct spelling in docs
2015-10-13 09:44:11 -04:00
Vadim Petrochenkov
8a12c19171
Test and gate empty structures and variants better
2015-10-13 15:19:20 +03:00
Kyle Robinson Young
a6aa6456ee
doc: fixing typos
2015-10-10 09:15:55 -07:00
bors
87cd2c0827
Auto merge of #28861 - pnkfelix:fsk-nonparam-dropck-issue28498, r=arielb1
...
implement RFC 1238: nonparametric dropck.
cc #28498
cc @nikomatsakis
2015-10-10 00:39:29 +00:00
Steve Klabnik
8ca14251c9
Rollup merge of #28905 - tshepang:typo, r=steveklabnik
2015-10-08 13:54:04 -04:00
bors
95285c496f
Auto merge of #28621 - tshepang:move-safety, r=steveklabnik
2015-10-08 14:04:41 +00:00
Tshepang Lekhonkhobe
88506c2261
reference: fix typos
2015-10-08 07:34:58 +02:00
Felix S. Klock II
9868df2fd5
Non-parametric dropck; instead trust an unsafe attribute (RFC 1238).
...
Implement cannot-assume-parametricity (CAP) from RFC 1238, and add the
UGEH attribute.
----
Note that we check for the attribute attached to the dtor method, not
the Drop impl.
(This is just to match the specification of RFC and the tests; I am
not wedded to this approach.)
2015-10-06 14:16:20 +02:00
Simon Mazur
fcf8dedb99
docs: anchors fixes
2015-10-05 19:25:54 +03:00
Aleksey Kladov
eac9d71d8e
reference: fix markdown formatting
2015-10-02 23:53:20 +03:00
Steve Klabnik
0f6cea9a86
Rollup merge of #28771 - tshepang:upper-case, r=steveklabnik
2015-09-30 18:20:04 -04:00
Steve Klabnik
bc41536bb4
Rollup merge of #28770 - tshepang:awkward, r=steveklabnik
2015-09-30 18:20:03 -04:00
Steve Klabnik
2a787a23d1
Improve identifier defintion in the reference
...
Fixes #28706
2015-09-30 14:59:05 -04:00
bors
5f06607e23
Auto merge of #27273 - tshepang:claim-not-accurate, r=steveklabnik
2015-09-29 15:04:47 +00:00
Tshepang Lekhonkhobe
4a5e190d46
reference: Unsafe section does not fit under Functions
2015-09-28 11:13:00 +02:00
DenisKolodin
0f491bee69
Typo fix in use declaration section of reference
2015-09-26 12:16:55 +03:00