]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #47942 - estebank:macro-spans, r=nikomatsakis Minimize weird spans...
authorkennytm <kennytm@gmail.com>
Fri, 2 Feb 2018 08:29:24 +0000 (16:29 +0800)
committerkennytm <kennytm@gmail.com>
Fri, 2 Feb 2018 14:48:50 +0000 (22:48 +0800)
commit9d995d283289165278761a278bf5530e2336d348
treede93d75b82814593ba358f28699234643bcd8b36
parent7c6380cdcf60269bd11457eb00e8d18f4f6955f6
parentaaec60836761da35a8d0cf6179769eb9bc9f63c3
Rollup merge of #47942 - estebank:macro-spans, r=nikomatsakis Minimize weird spans involving macro context Sometimes the parser attempts to synthesize spans from within a macro context with the span for the captured argument, leading to non-sensical spans with very bad output. Given that an incorrect span is worse than a partially incomplete span, when detecting this situation return only one of the spans without merging them. Fix #32072, #47778. CC #23480.
src/libsyntax_pos/lib.rs