Commit Graph

60396 Commits

Author SHA1 Message Date
bors
467a7f049b Auto merge of #38533 - jseyfried:legacy_custom_derive_deprecation, r=nrc
Allow legacy custom derive authors to disable warnings in downstream crates

This PR allows legacy custom derive authors to use a pre-deprecated method `registry.register_custom_derive()` instead of `registry.register_syntax_extension()` to avoid downstream deprecation warnings.

r? @nrc
2016-12-23 18:43:12 +00:00
Jeremy Soller
a0a600f0c6 Add Debug to OpenOptions and DirBuilder 2016-12-23 09:42:38 -07:00
bors
00b4019f28 Auto merge of #38529 - nrc:save-sig, r=nikomatsakis
save-analysis: add signature info

These 'signatures' for definitions contain enough info for the RLS to create Rustdoc-style info on the fly.
2016-12-23 15:59:07 +00:00
bors
ce4461f4cf Auto merge of #38511 - Mark-Simulacrum:drop-glue, r=eddyb
Make drop glue for unsized value pass two arguments instead of *(data, meta)

Fixes #36457

r? @eddyb
2016-12-23 11:56:50 +00:00
bors
99913c5ead Auto merge of #38401 - redox-os:redox_cross, r=brson
Redox Cross Compilation

I will admit - there are things here that I wish I did not have to do. This completes the ability to create a cross compiler from the rust repository for `x86_64-unknown-redox`. I will document this PR with inline comments explaining some things.

[View this gist to see how a cross compiler is built](https://gist.github.com/jackpot51/6680ad973986e84d69c79854249f2b7e)

Prior discussion of a smaller change is here: https://github.com/rust-lang/rust/pull/38366
2016-12-23 09:09:26 +00:00
Esteban Küber
346a442110 use same param name across methods 2016-12-22 23:20:22 -08:00
Chris Morgan
c9a6e874ca Fix rustdoc highlighting of & and *.
Whitespace tokens were included, so the span check used with `&` was
incorrect, and it was never highlighted as kw-2.

The `*` in `*foo` and `*const T` should also be highlighted kw-2, so I
added them. Note that this *will* cause mishighlighting of code like
`1*2`, but that should have been written `1 * 2`. Same deal with `1&2`.
2016-12-23 12:23:50 +05:30
bors
82611a0224 Auto merge of #38232 - jseyfried:refactor_global_paths, r=nrc
Refactor global paths

This PR removes the field `global: bool` from `ast::Path` and `hir::Path`, instead representing a global path `::foo::bar` as `{{root}}::foo::bar`, where `{{root}}` is a virtual keyword `keywords::CrateRoot`.

Also, fixes #38016.

r? @nrc
2016-12-23 06:22:45 +00:00
Jeffrey Seyfried
c12fc66a9d Allow legacy custom derive authors to disable warnings in downstream crates. 2016-12-23 05:49:34 +00:00
Jeremy Soller
4dcb867671 Convert fam to Symbol 2016-12-22 22:29:33 -07:00
Jeremy Soller
c59bb4979c Correct target_family mess 2016-12-22 22:20:47 -07:00
Jeremy Soller
474eb6223b Do not build emutls on Redox 2016-12-22 22:01:15 -07:00
Andrew Paseltiner
75fe66e349 Implement placement-in protocol for Vec 2016-12-23 04:16:28 +00:00
bors
c8e7ec4bfc Auto merge of #38562 - brson:rm-llvm-lock, r=brson
Delete the llvm submodule lockfile when configuring on the bots

This should fix the periodic error that .git/modules/src/llvm/index.lock
exists on the mac slaves.
2016-12-23 02:35:45 +00:00
Jeffrey Seyfried
1187e2173c Fix rustdoc ICE. 2016-12-23 02:32:53 +00:00
Jeffrey Seyfried
31d9cc3833 Fix import resolution bug and fold all idents in the AST. 2016-12-23 02:16:31 +00:00
Jeremy Soller
2ddd11788b Revert rt.rs 2016-12-22 16:19:05 -07:00
Jeremy Soller
1eb6c44b1c Remove start functions, use newlib instead of openlibm + ralloc 2016-12-22 16:13:14 -07:00
Brian Anderson
7d428b71de Delete the llvm submodule lockfile when configuring on the bots
This should fix the periodic error that .git/modules/src/llvm/index.lock
exists on the mac slaves.
2016-12-22 22:33:42 +00:00
bors
a173778d1d Auto merge of #38330 - ollie27:rustdoc_short_summaries, r=steveklabnik
rustdoc: Fix short summaries in search results

They should be run through a Markdown renderer in rustdoc to remove
links.

This also fixes the mouse over text for the Crates list on the sidebar.

[before](https://doc.rust-lang.org/nightly/std/index.html?search=ord) [after](https://ollie27.github.io/rust_doc_test/std/index.html?search=ord)
2016-12-22 22:28:41 +00:00
Michael Woerister
6a51d37490 ICH: Add test case for InlineAsm hashes. 2016-12-22 14:27:53 -05:00
Geoff Yoerger
fc9719c4ca Rename README.txt to README.md 2016-12-22 12:52:22 -06:00
Geoff Yoerger
531ac797a8 Add relative hyperlink 2016-12-22 12:51:31 -06:00
Michael Woerister
2432f69b35 ICH: Make InlineAsm hashes stable. 2016-12-22 12:01:59 -05:00
Christoph Schulz
a397add8a7 Partial fix for #38489. 2016-12-22 17:17:06 +01:00
Aidan Hobson Sayers
20b92db7eb Correct path of incremental artifacts 2016-12-22 16:00:21 +00:00
Michael Woerister
f0a630b8c3 ICH: Don't store hashes for individual foreign items. 2016-12-22 10:31:11 -05:00
Chris Morgan
40b9352aa3 Fix Markdown list formatting.
The Markdown engine used by the book can cope with a single leading space
on the list marker:

    Like this:

     * List item

    Rather than like this:

    * List item

… but it’s not the typical convention employed in the book, and moreover
the Markdown engine used for producing the error index *can’t* cope with
it (its behaviour looks like a bug, as it appears to lose one of the two
line breaks as well, but that’s immaterial here).

So, we shift to a single convention which doesn’t trigger bugs in the
Markdown renderer.
2016-12-22 17:35:53 +05:30
Ivan Molodetskikh
5e2cea9a4e
Cleaned up the code and added tests. 2016-12-22 14:54:42 +03:00
Peter Atashian
23cfcddd77
Fix fs tests on Windows systems with non-english locales. 2016-12-22 06:43:43 -05:00
Philip Craig
af34f91c27 Fix debuginfo for unsized struct members
The member was given the size of a fat pointer, which caused
llvm to emit DWARF attributes for a 128-bit bitfield.
2016-12-22 21:16:41 +10:00
bors
17d873c2db Auto merge of #38538 - estebank:outdated-fixme-3300, r=petrochenkov
Remove outdated FIXME comment

Removed outdated FIXME comment referencing #3300 to allow anonymous items.
2016-12-22 10:36:00 +00:00
Jeffrey Seyfried
098c9b69e1 Fix non-termination in resolve. 2016-12-22 08:58:10 +00:00
Esteban Küber
39d6483bc1 Remove outdated FIXME comment
Removed FIXME comment referencing #3300.
2016-12-22 00:38:10 -08:00
Esteban Küber
de69a3b7e5 fix String to &str cast 2016-12-21 23:13:11 -08:00
Jeffrey Seyfried
8a1acb2c69 Pretty-print $crate::foo::bar as ::foo::bar. 2016-12-22 06:14:36 +00:00
Jeffrey Seyfried
f10f50b426 Refactor how global paths are represented (for both ast and hir). 2016-12-22 06:14:35 +00:00
bluss
bf7d7ae7fa use &str instead of String 2016-12-21 21:27:31 -08:00
Jeremy Soller
e7b006d3dd In order to successfully build, go back to ralloc 2016-12-21 21:57:43 -07:00
Nick Cameron
c24b1928ca rebasing fix 2016-12-22 17:01:45 +13:00
Jeremy Soller
7d3ae87453 Add RawFd traits for net 2016-12-21 20:19:32 -07:00
Nick Cameron
5d971ab5f2 save-analysis signature stuff for json-api flavour. 2016-12-22 15:18:03 +13:00
Nick Cameron
d8492367bf signature info for other items (mods, fns, methods, etc.) 2016-12-22 15:18:03 +13:00
Nick Cameron
e9ecd8805d further lowering of signature data 2016-12-22 15:17:05 +13:00
Nick Cameron
eb27b5166e field signatures 2016-12-22 15:17:05 +13:00
Nick Cameron
c53fa9a898 save-analysis: fix ICE on partially resolved path
Occurs when we produce save-analysis before type checking is complete (due to errors).
2016-12-22 15:17:04 +13:00
Nick Cameron
5a6ca7a38d save-analysis: add Signature info to structs 2016-12-22 15:17:04 +13:00
Austin Hicks
b6b630a490 Disable field reordering 2016-12-21 19:57:29 -05:00
Corey Farwell
273cc30fb2 Clarify phrasing of MSYS2 dependencies in README.md.
Fixes https://github.com/rust-lang/rust/issues/36115.
2016-12-21 14:21:49 -08:00
Michael Woerister
6fac703293 ICH: Fix some omissions around foreign mods in hasher. 2016-12-21 17:16:28 -05:00