Oliver Schneider
e36872da5b
ImplItem_ -> ImplItemKind rename
2015-11-16 10:35:30 +01:00
Oliver Schneider
eaaa60dbea
rename ImplItem_::*ImplItem to ImplItem_::*
...
[breaking change]
2015-11-16 10:34:45 +01:00
Jonathan S
d842a54b25
Stop using dynamic borrowing in MoveErrorCollector
2015-11-14 17:39:15 -06:00
Seo Sanghyeon
0b3394a4d5
Suggest mut
for mutability errors
2015-11-10 13:05:28 +09:00
Ms2ger
9e135f7b15
Rename categorization and stop re-exporting its variants.
2015-10-29 09:38:11 +01:00
bors
8a72584f97
Auto merge of #28833 - jryans:borrowck-linear-errors, r=pnkfelix
...
Change error reporting of conflicting loans to stop earlier after printing
an error for a given borrow, instead of proceeding to error on possibly every
issued loan. This keeps us down to O(n) errors (for n problem lines), instead
of O(n^2) errors in some cases.
Fixes #27485 .
2015-10-27 21:04:59 +00:00
Cristi Cobzarenco
4b308b44e1
typos: fix a grabbag of typos all over the place
2015-10-08 19:49:31 +01:00
J. Ryan Stinnett
ba9c383790
Only report error for first issued loan with conflict
...
Change error reporting of conflicting loans to stop earlier after printing
an error for a given borrow, instead of proceeding to error on possibly every
issued loan. This keeps us down to O(n) errors (for n problem lines), instead
of O(n^2) errors in some cases.
Fixes #27485 .
2015-10-04 04:57:32 -05:00
Niko Matsakis
5600c6282e
move direct accesses of node
to go through as_local_node_id
, unless
...
they are being used as an opaque "position identifier"
2015-10-01 10:37:19 -04:00
Niko Matsakis
dc4a4ada58
move LOCAL_CRATE to cstore
2015-10-01 09:44:28 -04:00
Vadim Petrochenkov
f284cbc7af
Cleanup interfaces of Name, SyntaxContext and Ident
...
Make sure Name, SyntaxContext and Ident are passed by value
Make sure Idents don't serve as keys (or parts of keys) in maps, Ident comparison is not well defined
2015-09-24 23:05:02 +03:00
Vadim Petrochenkov
40ce80484c
Remove random Idents outside of libsyntax
2015-09-23 20:04:49 +03:00
Guillaume Gomez
1adcfb8c13
Add librustc_trans error codes
2015-09-19 17:04:27 +02:00
Guillaume Gomez
7badafa593
Add url to rust-book
2015-09-18 19:12:27 +02:00
Guillaume Gomez
bc72f540ac
Add span_err_with_code method for BorrowckCtxt struct
2015-09-17 23:31:37 +02:00
Guillaume Gomez
37cfa75d43
Add error codes for librustc_borrowck
2015-09-16 23:55:33 +02:00
Nick Cameron
e9f1b06329
Use ast attributes every where (remove HIR attributes).
...
This could be a [breaking-change] if your lint or syntax extension (is that even possible?) uses HIR attributes or literals.
2015-09-16 10:57:06 +12:00
Niko Matsakis
01de381b48
Treat loans of 'static data as extending to the end of the enclosing
...
fn. Fixes #27616 .
2015-09-09 16:04:55 -04:00
Nick Cameron
facdf2ebb1
Add an intital HIR and lowering step
2015-09-03 10:02:36 +12:00
bors
8f28c9b01e
Auto merge of #28007 - Ms2ger:FnKind, r=nrc
...
There is no longer a need for that pattern, since enums are now qualified.
2015-08-31 01:09:40 +00:00
Ms2ger
2076cddcf2
Rename FnKind variants and stop re-exporting them from the visit module.
...
There is no longer a need for that pattern, since enums are now qualified.
2015-08-26 12:02:58 +02:00
Ariel Ben-Yehuda
277eeb95c3
move destructors_for_type into AdtDef
2015-08-25 21:52:15 +03:00
Ariel Ben-Yehuda
65e9bc0c93
store the CodeExtent directly in FreeRegion
...
this makes the code cleaner
2015-08-24 20:46:52 +03:00
Ariel Ben-Yehuda
fc304384e6
Use a Vec instead of an HashMap for the scope hierarchy
...
This increases regionck performance greatly - type-checking on
librustc decreased from 9.1s to 8.1s. Because of Amdahl's law,
total performance is improved only by about 1.5% (LLVM wizards,
this is your opportunity to shine!).
before:
576.91user 4.26system 7:42.36elapsed 125%CPU (0avgtext+0avgdata 1142192maxresident)k
after:
566.50user 4.84system 7:36.84elapsed 125%CPU (0avgtext+0avgdata 1124304maxresident)k
I am somewhat worried really need to find out why we have this Red Queen's
Race going on here. Originally I suspected it may be a problem from RFC1214's
warnings, but it seems to be an effect from other changes.
However, the increase seems to be mostly in LLVM's time, so I guess
it's the LLVM wizards' problem.
2015-08-24 20:24:38 +03:00
Ariel Ben-Yehuda
316510f5e2
split ReInfer into ReVar and ReSkolemized
...
this should reduce the size of ty::Region to 24 bytes (from 32),
and they are treated differently in most cases anyway.
2015-08-24 20:10:25 +03:00
bors
797d0ba59c
Auto merge of #27857 - Manishearth:improve-fnkind, r=pnkfelix
...
Since enums are namespaced now, should we also remove the `Fk` prefixes from `FnKind` and remove the reexport? (The reexport must be removed because otherwise it clashes with glob imports containing `ItemFn`). IMO writing `FnKind::Method` is much clearer than `FkMethod`.
2015-08-24 12:47:57 +00:00
Niko Matsakis
c0de23de81
convert to use is_local
instead of == LOCAL_CRATE
2015-08-24 05:35:34 -04:00
Niko Matsakis
e91bef2e05
fallout from moving def-id
2015-08-24 05:35:34 -04:00
Manish Goregaokar
c03bf18b84
FnFnBlock -> FkClosure
2015-08-16 18:23:58 +05:30
Alex Crichton
2972b77134
Add issue for the rustc_private feature everywhere
2015-08-15 18:09:17 -07:00
bors
a4066271b7
Auto merge of #27758 - nathankleyn:diagnostics-386, r=Manishearth
...
This adds detailed diagnostics for E0386, 'cannot assign to data in an
immutable container'.
This is part of rust-lang/rust#24407 .
r? @Manishearth
2015-08-13 20:37:18 +00:00
Nathan Kleyn
b0b2952189
Improve interior mutability example for E0386.
2015-08-13 10:17:56 +01:00
Nathan Kleyn
75c6428e1b
Add details about types with interior mutability to E0386.
...
Types with interior mutability like `Cell` and `RefCell` can be used to
skirt the restriction on mutating mutable values inside an immutable
container.
2015-08-13 10:17:56 +01:00
Nathan Kleyn
55752a4bde
Add detailed diagnostics for E0386.
...
This adds detailed diagnostics for E0386, 'cannot assign to data in an
immutable container'.
2015-08-13 10:17:56 +01:00
Nathan Kleyn
67c7fd710b
Improve code examples for E0383 long diagnostic.
2015-08-13 09:11:06 +01:00
Nathan Kleyn
9c0d2b2465
Add detailed diagnostics for E0383.
...
This adds detailed diagnostics for E0383, 'partial reinitialization of
uninitialized structure'.
This is part of rust-lang/rust#24407 .
2015-08-13 09:06:29 +01:00
Alex Crichton
737397c584
rollup merge of #27622 : eefriedman/https-url
...
Also fixes a few outdated links.
2015-08-11 22:11:25 -07:00
Alex Crichton
93bb57e765
rollup merge of #27605 : AlisdairO/diagnostics387
...
As title :-)
Part of #24407 .
r? @Manishearth
2015-08-11 22:11:20 -07:00
Alisdair Owens
f0419661f0
fix import nit for long diagnostics on E0387
2015-08-10 20:35:27 +01:00
Alisdair Owens
78d28336fe
add info about cell types to diagnostic message E0387
2015-08-10 16:48:53 +01:00
Eli Friedman
bbbfed2f93
Use https URLs to refer to rust-lang.org where appropriate.
...
Also fixes a few outdated links.
2015-08-09 14:28:46 -07:00
Alisdair Owens
dadc717041
add long diagnostics for E0382
2015-08-08 20:17:03 +01:00
Alisdair Owens
d83a0fdf7d
add diagnostics for E0387
2015-08-08 17:38:50 +01:00
Ariel Ben-Yehuda
5f3c1412ad
use VariantDef instead of struct_fields
2015-08-06 16:54:40 +03:00
Ariel Ben-Yehuda
764310e7bb
introduce an ADTDef struct for struct/enum definitions
2015-08-06 14:16:56 +03:00
Agoston Szepessy
74787b98ba
Added error explanation for E0384.
2015-08-02 15:30:06 -04:00
bors
55ede7ed8e
Auto merge of #27234 - oli-obk:move_get_name_get_ident_to_impl, r=eddyb
...
this has quite some fallout. but also made lots of stuff more readable imo
[breaking-change] for plugin authors
2015-07-28 21:14:28 +00:00
Oliver Schneider
00a5e66f81
remove get_ident
and get_name
, make as_str
sound
2015-07-28 18:07:20 +02:00
Felix S. Klock II
22796c8bad
build fragmented map earlier to make its dependencies clearer.
2015-07-28 16:15:56 +02:00
Felix S. Klock II
d3d552b71b
rustc and rustc::borrowck: pass fragment info down into trans.
2015-07-28 16:12:32 +02:00