Vadim Petrochenkov
dd0a766e06
Prohibit using macro-expanded macro_export
macros through module-relative paths
2018-08-12 22:07:09 +03:00
whitequark
66fd1ebfae
Make LLVM emit assembly comments with -Z asm-comments.
...
Fixes #35741 .
2018-08-12 17:59:33 +00:00
Zack M. Davis
58f660f025
wherein we suggest float for integer literals where a float was expected
...
Sunjay Varma pointed out that this is a nice thing that we could do.
Resolves #53280 .
2018-08-12 10:20:35 -07:00
Ralf Jung
376a6b2663
unions are not always trivially dropable
...
Fixes #52786
2018-08-12 18:59:08 +02:00
Simonas Kazlauskas
dc02a6070f
Do not generate assumes for plain integer casts
2018-08-12 18:38:46 +03:00
Esteban Küber
54e11c96a6
Extend documentation of rustc_on_unimplemented
2018-08-11 15:01:06 -07:00
varkor
5c814e2e4e
Clean up and add extra tests
2018-08-11 21:25:48 +01:00
varkor
49e9c5fe90
Add E0642 to parser error
2018-08-11 21:08:24 +01:00
varkor
e4c3b49fe7
Emit an error during parsing
2018-08-11 21:08:24 +01:00
varkor
a478cd41e3
Improve diagnostics
2018-08-11 21:08:24 +01:00
varkor
235905c080
Fix handling of trait methods with bodies and improve efficiency
2018-08-11 21:08:24 +01:00
varkor
b05f0bec1a
Suggest replacing patterns with underscores
2018-08-11 21:08:24 +01:00
varkor
90a6954327
Emit error for pattern arguments in trait methods
...
The error and check for this already existed, but the parser didn't try to parse trait method arguments as patterns, so the error was never emitted. This surfaces the error, so we get better errors than simple parse errors.
2018-08-11 21:08:24 +01:00
Havvy (Ryan Scheel)
0070b46626
Fix indent
2018-08-11 13:02:49 -07:00
Corey Farwell
ec18991492
Add links to std::char::REPLACEMENT_CHARACTER from docs.
...
There are a few places where we mention the replacement character in the
docs, and it could be helpful for users to utilize the constant which is
available in the standard library, so let’s link to it!
2018-08-11 15:42:35 -04:00
ljedrz
535bd13fe4
A few cleanups for fmt_macros, graphviz, apfloat, target, serialize and term
2018-08-11 20:56:29 +02:00
Guillaume Gomez
f9f934f7fd
Add let keyword doc
2018-08-11 20:06:46 +02:00
bjorn3
44af068388
Remove statics field from CodegenCx
2018-08-11 18:54:36 +02:00
Vadim Petrochenkov
e7ee6fb2a2
Do not consider built-in attributes as candidates when resolving non-attribute macro invocations
...
This is needed to avoid regressions on stable channel
2018-08-11 17:02:47 +03:00
Vadim Petrochenkov
d2f56378da
Feature gate arbitrary tokens in non-macro attributes with a separate gate
...
Feature gate `rustc_` and `derive_` with their own gates again instead of `custom_attribute`
2018-08-11 16:41:17 +03:00
Ryan Scheel
53d308fdf8
Show that Command can be reused and remodified
...
The prior documentation did not make it clear this was possible.
2018-08-11 05:26:12 -07:00
Guillaume Gomez
5a801c89d0
Fix styles
2018-08-11 13:34:15 +02:00
Nick Cameron
4076dc46ae
Update RLS
2018-08-11 14:54:21 +08:00
Sam Rijs
6411aef609
improve diagnostics for tests with custom return values
...
fixes #52436
2018-08-11 14:36:55 +10:00
Linus Färnstrand
cbe80a9752
Replace _.. with just .. in slice pattern
2018-08-10 23:42:33 +02:00
Jonathan A. Kollasch
538d1ba6d7
aarch64-unknown-netbsd: add openssl configuration
2018-08-10 15:53:20 -05:00
Pazzaz
894c9ca1a7
Add benchmark for VecDeque append
2018-08-10 21:52:00 +02:00
bors
0aa8d03202
Auto merge of #53177 - nikomatsakis:nll-redundant-borrows-and-escaping-values, r=pnkfelix
...
optimize redundant borrows and escaping paths in NLL
This builds on https://github.com/rust-lang/rust/pull/53168 and adds a commit that addresses https://github.com/rust-lang/rust/issues/53176 -- or at least I think it does. I marked this as WIP because I want to see the test results (and measure the performance). I also want to double check we're not adding in any unsoundness here.
2018-08-10 19:18:22 +00:00
Linus Färnstrand
f0eed1e3ff
Make use of match ergonomics in ip methods
2018-08-10 21:06:37 +02:00
Linus Färnstrand
2f1f43fcd4
Use slice patterns to check IP octets
2018-08-10 21:06:36 +02:00
Oliver Middleton
7b0bafe749
Don't accept none str literals for the format string in writeln
2018-08-10 19:01:54 +01:00
Guillaume Gomez
e37391b389
Remove unwanted console log
2018-08-10 18:48:36 +02:00
Tom Tromey
8a76656435
Link compiler test documentation to rustc-guide
...
Update the compiler test documentation to point to the relevant
rustc-guide page.
2018-08-10 08:05:48 -06:00
Niko Matsakis
1341e669b1
skip trivial T: Sized
predicates
2018-08-10 10:00:05 -04:00
memoryruins
0123ac12e2
[nll] librustc_codegen_llvm: remove unused mut annotation
2018-08-10 06:31:40 -04:00
memoryruins
085535bbe1
[nll] librustc_codegen_llvm: change Child signature to fix error pointed out by nll
...
As explained by eddyb in #53221 , "An &ArchiveChild doesn't point into the archive itself, it points to an owned object that itself points to the archive, and LLVMRustArchiveMemberNew copies the ArchiveChild (whereas the current signature suggests it keeps the &ArchiveChild)."
2018-08-10 06:31:10 -04:00
memoryruins
46b818e276
[nll] librustc_codegen_llvm: enable feature(nll) for bootstrap
2018-08-10 06:28:24 -04:00
memoryruins
5d6ca8e4c5
[nll] librustc_mir: enable feature(nll) for bootstrap
2018-08-10 06:27:35 -04:00
memoryruins
e8d95a5ba1
[nll] libstd: enable feature(nll) for bootstrap
2018-08-10 06:27:10 -04:00
Andre Bogus
945f0325e3
Add individual documentation for <integer>.swap_bytes
/.reverse_bits
2018-08-10 12:10:07 +02:00
Michael Woerister
88d84b38f1
Introduce SmallCStr and use it where applicable.
2018-08-10 11:13:00 +02:00
Michael Woerister
9585c5dc1f
Introduce const_cstr!() macro and use it where applicable.
2018-08-10 10:22:44 +02:00
Niko Matsakis
ff7f6d57de
don't walk MIR if no local variables need liveness
...
This is true for tuple-stress and html5ever
2018-08-10 04:17:46 -04:00
bors
a77dfcc79f
Auto merge of #53131 - davidtwco:issue-52663-thread-local-static, r=nikomatsakis
...
NLL says something "does not live long enough" when talking about a (thread-local) static
Part of #52663 .
r? @nikomatsakis
2018-08-10 06:54:11 +00:00
ljedrz
b187c4268c
Consider changing assert! to debug_assert! when it calls visit_with
2018-08-10 08:40:30 +02:00
Hideki Sekine
c2b612ac0c
[CI] run-make/thumb: remove -j 1
from cargo run
2018-08-10 13:35:12 +09:00
bors
f6d43ed842
Auto merge of #53124 - davidtwco:issue-52742, r=nikomatsakis
...
region error messages involving impls are confusing
Part of #52742 .
r? @nikomatsakis
2018-08-10 02:18:21 +00:00
bors
db1acaac7f
Auto merge of #53073 - Mark-Simulacrum:data-structures, r=pnkfelix
...
Cleanup to librustc::session and related code
No functional changes, just some cleanup.
This also creates the `rustc_fs_util` crate, but I can remove that change if desired. It felt a little odd to force crates to depend on librustc for some fs utilities; and also seemed good to generally keep the size of librustc lower (for compile times); fs_util will compile in parallel with essentially the first crate since it has no dependencies beyond std.
2018-08-10 00:14:52 +00:00
Josh Stone
763e72110a
rustc_codegen_llvm: Restore the closure env alloca hack for LLVM 5.
...
This hack was removed in #50949 , but without it I found that building
`std` with full debuginfo would print many LLVM `DW_OP_LLVM_fragment`
errors, then die `LLVM ERROR: Failed to strip malformed debug info`.
It doesn't seem to be a problem for LLVM 6, so we can re-enable the hack
just for older LLVM.
This reverts commit da579ef75e4a8ca11fb98b24a0a3ea0c7ccffeeb.
Fixes #53204 .
r? @eddyb
2018-08-09 16:35:25 -07:00
Jorge Aparicio
a0911cf95d
address review comments
2018-08-09 17:18:08 -05:00