Auto merge of #36601 - jseyfried:build_reduced_graph_in_expansion, r=nrc
Assign def ids and build the module graph during expansion r? @nrc
This commit is contained in:
commit
a059cb2f33
16 changed files with 321 additions and 281 deletions
|
|
@ -45,8 +45,8 @@ impl IndexMut<usize> for Indexable {
|
|||
}
|
||||
|
||||
|
||||
//~ TRANS_ITEM fn overloaded_operators::{{impl}}[2]::eq[0]
|
||||
//~ TRANS_ITEM fn overloaded_operators::{{impl}}[2]::ne[0]
|
||||
//~ TRANS_ITEM fn overloaded_operators::{{impl}}[4]::eq[0]
|
||||
//~ TRANS_ITEM fn overloaded_operators::{{impl}}[4]::ne[0]
|
||||
#[derive(PartialEq)]
|
||||
pub struct Equatable(u32);
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ pub struct Equatable(u32);
|
|||
impl Add<u32> for Equatable {
|
||||
type Output = u32;
|
||||
|
||||
//~ TRANS_ITEM fn overloaded_operators::{{impl}}[3]::add[0]
|
||||
//~ TRANS_ITEM fn overloaded_operators::{{impl}}[2]::add[0]
|
||||
fn add(self, rhs: u32) -> u32 {
|
||||
self.0 + rhs
|
||||
}
|
||||
|
|
@ -63,7 +63,7 @@ impl Add<u32> for Equatable {
|
|||
impl Deref for Equatable {
|
||||
type Target = u32;
|
||||
|
||||
//~ TRANS_ITEM fn overloaded_operators::{{impl}}[4]::deref[0]
|
||||
//~ TRANS_ITEM fn overloaded_operators::{{impl}}[3]::deref[0]
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
#![no_std]
|
||||
|
||||
extern crate core;
|
||||
extern crate rand;
|
||||
extern crate serialize as rustc_serialize;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate bäz; //~ ERROR non-ascii idents
|
||||
extern crate core as bäz; //~ ERROR non-ascii idents
|
||||
|
||||
use föö::bar; //~ ERROR non-ascii idents
|
||||
|
||||
|
|
|
|||
|
|
@ -38,11 +38,17 @@ pub fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
use std::option::Option as Self;
|
||||
//~^ ERROR expected identifier, found keyword `Self`
|
||||
mod m1 {
|
||||
extern crate core as Self;
|
||||
//~^ ERROR expected identifier, found keyword `Self`
|
||||
}
|
||||
|
||||
extern crate Self;
|
||||
//~^ ERROR expected identifier, found keyword `Self`
|
||||
mod m2 {
|
||||
use std::option::Option as Self;
|
||||
//~^ ERROR expected identifier, found keyword `Self`
|
||||
}
|
||||
|
||||
trait Self {}
|
||||
//~^ ERROR expected identifier, found keyword `Self`
|
||||
mod m3 {
|
||||
trait Self {}
|
||||
//~^ ERROR expected identifier, found keyword `Self`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue